Search Results

Showing results 1 to 40 of 253
Search took 0.02 seconds.
Search: Posts Made By: Airshow
Forum: JavaScript / DHTML / AJAX 20 Hours Ago
Replies: 5
Views: 178
Posted By Airshow
CommDave

Aha, I undertstand now!!. The problem was that your question was posted as a "Code Snippet", which is not the normal way to ask a question on Daniweb. Maybe a moderator can change it.
...
Forum: JavaScript / DHTML / AJAX 1 Day Ago
Replies: 5
Views: 178
Posted By Airshow
Maybe I'm being dumb but I don't get it.

That's a very ordinary piece of HTML that could have been written manually or generated by a script.

Why does this qualify as a Code Snippet? How does...
Forum: JavaScript / DHTML / AJAX 2 Days Ago
Replies: 2
Views: 189
Posted By Airshow
Rouse,

Please, STOP CODING AND DO SOME READING - for about a day.

You need to look at the jquery documentation and some examples. In particular you need to learn how to frame your code in a...
Forum: JavaScript / DHTML / AJAX 6 Days Ago
Replies: 7
Views: 303
Posted By Airshow
XMLHttpRequest can behave either synchronously or asynchronously, as determined by the third parameter in the line of the form xmlhttp.open("GET", url, true);.

With synchronous behaviour,...
Forum: JavaScript / DHTML / AJAX 7 Days Ago
Replies: 3
Views: 327
Posted By Airshow
LizzyJo,

Consider this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Airshow ::...
Forum: JavaScript / DHTML / AJAX 8 Days Ago
Replies: 3
Views: 341
Posted By Airshow
Neogy,

First thing to try is to combine the two code blocks above into a single $(document).ready(function(){.....}); structure.

Airshow
Forum: JavaScript / DHTML / AJAX 8 Days Ago
Replies: 2
Views: 432
Posted By Airshow
Carl,

There's a number of things here ....

First - how to get the selected option's value from a select menu:

//within function calculatePrice
var menu = document.getElementById("state");...
Forum: PHP 11 Days Ago
Replies: 4
Views: 195
Posted By Airshow
lifeworks,

I'm not certain but think you have to compose your mod_rewrite (http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html) rule such that it passes on the originally request url as a...
Forum: HTML and CSS 12 Days Ago
Replies: 4
Views: 352
Posted By Airshow
Nomad,

I would do it with <h1> and <h2> tags, thus making the two lines independent of each other. I think you will find that the :first-line approach will superimpose its 3.5em on the 1.8em...
Forum: JavaScript / DHTML / AJAX 13 Days Ago
Replies: 8
Views: 500
Posted By Airshow
OK, here it is in "longhand".

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Moultrie...
Forum: JavaScript / DHTML / AJAX 14 Days Ago
Replies: 8
Views: 500
Posted By Airshow
It was made with winrar and I changed the extension from .rar to .zip, which is normally OK. Try changing your local copy back to .rar and see if it that's any better. If not then I'll post the...
Forum: JavaScript / DHTML / AJAX 14 Days Ago
Replies: 8
Views: 500
Posted By Airshow
Rblalock,

OK, a fully worked up version of your page is attached, complete with my calc() function and several events to stimulate it.

You will find exactly the same approach used here...
Forum: JavaScript / DHTML / AJAX 15 Days Ago
Replies: 3
Solved: rolling dice
Views: 378
Posted By Airshow
Kadjii,

In a nutshell, you serve the page with <img> tags in all relevant table cells. Then, in response to whatever events, javascript changes the images by dynamically setting the <img>'s src.
...
Forum: JavaScript / DHTML / AJAX 15 Days Ago
Replies: 7
Views: 439
Posted By Airshow
Mekmiotek,

I'm not too sure what's wrong there, however here's the whole page, significantly simplified to make it more understandable and maintainable.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML...
Forum: JavaScript / DHTML / AJAX 15 Days Ago
Replies: 7
Views: 439
Posted By Airshow
Mekmiotek,

You're right about it being ridiculously long!! It's also ridiculously complex. I guess it was written some years ago. It's certainly not the way we write our javascript today.

The...
Forum: JavaScript / DHTML / AJAX 16 Days Ago
Replies: 7
Views: 439
Posted By Airshow
Mekmiotek,

At line 71 try replacing
fwLoad[image]=new image; with
fwLoad[image]=new Image();.

Airshow
Forum: JavaScript / DHTML / AJAX 16 Days Ago
Replies: 8
Views: 500
Posted By Airshow
Rblalock,

In my experience, the best approach for form calculations of this type is to have a single (or supervisor) function which performs all calcs throughout the whole form...
Forum: JavaScript / DHTML / AJAX 32 Days Ago
Replies: 7
Views: 486
Posted By Airshow
Pleased to be of help Dangari. It seems that sometimes the blind can lead the blind. I will follow up "Jeremy Keith" myself.

Airshow
Forum: JavaScript / DHTML / AJAX 33 Days Ago
Replies: 7
Views: 486
Posted By Airshow
You might want to research "HIJAX" which is an approach (like "AJAX" neither a product nor a language).

HIJAX gets a mention (but no more than that) in one of my reference books - "Beginning...
Forum: PHP 33 Days Ago
Replies: 4
Views: 240
Posted By Airshow
Either you have or I have jomanlk. :ooh:

Given that Javascript is well equipped with setTimeout and setInterval I can't see that a cookie would be necessary.

My solution does assume that on...
Forum: JavaScript / DHTML / AJAX 33 Days Ago
Replies: 7
Views: 486
Posted By Airshow
Dangari,

I've not heard the term "degradable AJAX" and can only guess at what it might mean.

As Will G says, AJAX simply won't work at all if Javascript is turned off.

However, you may...
Forum: PHP 33 Days Ago
Replies: 4
Views: 240
Posted By Airshow
DemonGal,

There's a couple of ways to go.

1) AJAX: A script, which is scheduled to grab a new image url from a corresponding server-side script every 5 minutes, then DHTML it into the DOM. This...
Forum: JavaScript / DHTML / AJAX Oct 25th, 2009
Replies: 2
Views: 566
Posted By Airshow
Ali,

The problem may be that toggleBox doesn't actually have a toggle action. It shows/hides a dom element depending on what is passed to it as iState.

In other words, the reponsibility for...
Forum: HTML and CSS Oct 24th, 2009
Replies: 6
Views: 359
Posted By Airshow
Sid,

But of course, I'm being stupid.

Just use a regular <input type="button" ...> instead, and script it to give a submit action.
<input type="button" name="login" value="Login"...
Forum: HTML and CSS Oct 24th, 2009
Replies: 6
Views: 359
Posted By Airshow
Sid,

In that case I don't think you can avoid it. At least not in IE, which renders the effect as something in addition to the normal box-model.

If you set border-width to something large - eg....
Forum: HTML and CSS Oct 24th, 2009
Replies: 6
Views: 359
Posted By Airshow
Sid,

The effect you describe is designed to indicate which button's action will be triggered if the user hits enter when a form element has focus.

Personally I think this is a good idea as it...
Forum: JavaScript / DHTML / AJAX Oct 23rd, 2009
Replies: 12
Views: 1,029
Posted By Airshow
darkRoom,

Here's a demo showing how to use my QueryParser object for passing parameters from page to page.

Three files attached (zipped together) - save all to same directory then browse...
Forum: JavaScript / DHTML / AJAX Oct 23rd, 2009
Replies: 12
Views: 1,029
Posted By Airshow
darkRoom,

Firstly, in both files there is a problem at the <body> tag. You should change:

<div id="apDiv8"><body onload='showHot=true;self.focus();' bgcolor=#000000'>
......
</div>

to
Forum: JavaScript / DHTML / AJAX Oct 23rd, 2009
Replies: 12
Views: 1,029
Posted By Airshow
darkRoom,

I will see if I can find time to make a two-page demo showing how to use the code.

Airshow
Forum: JavaScript / DHTML / AJAX Oct 22nd, 2009
Replies: 2
Views: 916
Posted By Airshow
Scotty,

I have to ask why you might want to send image captions back to the server?

The reasons I ask are that :

Captions are not necessarily unique. In a typical gallery for example, you...
Forum: JavaScript / DHTML / AJAX Oct 21st, 2009
Replies: 12
Views: 1,029
Posted By Airshow
darkRoom,

Please don't worry about asking questions. Javascript is superficialy simple but hides a multidude of complexity.

The script I posted above is designed to go in your 2nd page(s) in...
Forum: JavaScript / DHTML / AJAX Oct 20th, 2009
Replies: 12
Views: 1,029
Posted By Airshow
darkRoom,

Put this in document head (replacing current script):

<script type="javascript/text">
function QueryParser(str) {
/******************** Query Parser *********************
...
Forum: JavaScript / DHTML / AJAX Oct 20th, 2009
Replies: 9
Views: 604
Posted By Airshow
Graphix,

I can see it now. The problem is caused by the line var startPos = myArea.value.indexOf(selection); which will always find the first occurrence of selection regardles of which occurrence...
Forum: JavaScript / DHTML / AJAX Oct 20th, 2009
Replies: 9
Views: 604
Posted By Airshow
Graphix,

On first look, I would guess that the code you posted above is OK in that it is correctly identifying the content of the highlighted string.

The problem would appear to be in some...
Forum: JavaScript / DHTML / AJAX Oct 19th, 2009
Replies: 12
Views: 1,029
Posted By Airshow
DarkRoom,

There's not a lot to go on there.

For a diagnosis, you will have to post some actual code.

Airshow
Forum: JavaScript / DHTML / AJAX Oct 17th, 2009
Replies: 3
Views: 655
Posted By Airshow
Serendipity,

The easiest way, in my experience, is not to use a submit button.

Instead, use a regular <input type="button" value="Submit" onclick"this.form.submit();">. The script gives the...
Forum: HTML and CSS Oct 10th, 2009
Replies: 11
Solved: Table border
Views: 626
Posted By Airshow
I'm sure you're right URO. I tested quickly in IE6 which is not the most representative of browsers (to put it politely).

Airshow
Forum: HTML and CSS Oct 10th, 2009
Replies: 11
Solved: Table border
Views: 626
Posted By Airshow
There's a problem with using "rules" to control a table's appearance - namely that the HTML specification doesn't specify what the appearance should be and each browser renders differently.
...
Forum: HTML and CSS Oct 7th, 2009
Replies: 11
Solved: Table border
Views: 626
Posted By Airshow
Ytregnn,

"take away"?

Best way is to serve the table without the row you don't want.

Airshow
Forum: JavaScript / DHTML / AJAX Oct 6th, 2009
Replies: 3
Views: 475
Posted By Airshow
First, you must understand HTML/XHTML and Javascript. Otherwise you will be trying to run before you can walk.

Then, get your mind round the fact the the Document Object Model (DOM) is a tree...
Showing results 1 to 40 of 253

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC