Sorry -but I am having a hard time understanding what you are trying to accomplish and why. But you might try this. I moved your final alert into the callback function and placed it after the...
I'm not sure you can. You need to look at the DB documentation to see if you can do this. If you cannot the usual thing to do is to divide the function that uses an asynch call into two functions...
It would appear that the function which queries the database is asynchronous. Its launched and the rest of the code continues executing the 'outer' alert before the DB query has been...
Maybe I'm not understanding the exact why of it but it seems to me that you ought to be parsing the information files on the server and then spitting it out as a JSON structure. The javascript on...
/
/given persistent outside variables which are in the same scope
//as this function, and a function where xtimer is just a holder, and
// val is the value...
Normally you shouldn't give more than one element on a page the same id. The "getElementById" method will only return the first element with that id. You can do it, but its considered bad form.
...
If you have new data AND pre-existing data you must:
(1) retrieve the old data from local storage
(2) add the new data to the old data.
(3) store it ALL again in localStorage
(4) Do it in the...
Maybe I'm misunderstanding what's going on but if you want a list you can't use the same name variables for separate entries, otherwise you are just overwriting the previous data. You need to keep...
Actually I would do this on the server side. Since real users can't see the "hidden" input, just have the server script reject it if it does indeed have a value other than an empty string.
I think your problem is the positioning. If you are positioning an element in quirksmode (without a DOCTYPE) a bare number will suffice and the browser will assume you meant pixels. With a DOCTYPE...
Basically the process would consist of:
(1) grabbing the values set by the user in the form and assembling them in a manner suitable for a POST request (or GET request if you are using that)
(2)...
There may be an easier cross-browser solution but one way that should work everywhere is to have your form not really "submit" at all. Send the data by AJAX and then close the window when the...
So far as I know, the "open" method/function of an httpXMLrequest object has no return value. The question is whether it gets the value from the server for you.
Sorry--I have no idea what the problem may be. A status code of zero usually means that the network cannot be reached. Since the initial page loads I am somewhat mystified. Try this to see if it...
How do you activate the page that contains the javascript that makes the AJAX request? Is it also served up from the server? For example, does it start out because you've pointed your browser at...