W
windandwaves
Hi Gurus,
I want to get a new xml datasheet when a user submits a form, rather
than reloading the page with the new xml sheet hardwired into it. I
have no idea how to do this. Can you give me some hints?
Here is what I have as the current javascript function (simplified),
loading the xml:
function initMap() {
.....
var loader = new Loader(); //a function from elsewhere
loader.load("myxml.php?myPostVariables");
....
}
This function is within a regular html form. Everytime, someone
submits the form, the page is reloaded and the new variables (from the
form) are added to the xml sheet loaded.
Now, what I want to do is that, when people submit the form, the page
is not reloaded, but the variables for the xml sheet are recalculated
AND the xml is reloaded.
I imagine what I can do is the following:
a. SUBMIT.onclick load myjavascript.php
b. create a php file called myjavascript.php that runs a function which
reloades the xml with the new variables.
Is this the best way to go about it?
Thank you
Nicolaas
I want to get a new xml datasheet when a user submits a form, rather
than reloading the page with the new xml sheet hardwired into it. I
have no idea how to do this. Can you give me some hints?
Here is what I have as the current javascript function (simplified),
loading the xml:
function initMap() {
.....
var loader = new Loader(); //a function from elsewhere
loader.load("myxml.php?myPostVariables");
....
}
This function is within a regular html form. Everytime, someone
submits the form, the page is reloaded and the new variables (from the
form) are added to the xml sheet loaded.
Now, what I want to do is that, when people submit the form, the page
is not reloaded, but the variables for the xml sheet are recalculated
AND the xml is reloaded.
I imagine what I can do is the following:
a. SUBMIT.onclick load myjavascript.php
b. create a php file called myjavascript.php that runs a function which
reloades the xml with the new variables.
Is this the best way to go about it?
Thank you
Nicolaas