getting new xml sheet on form submit

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top