-
InnerHTML problem
Hi,
I have an html page which has a div tag. I can use the innerhtml property to change the text between the two tags. But how can I use java script to get the html from another file, such as an include or an asp file?
Can I call an asp file from javascript and print the output to the innerhtml property?
Please help, project might depend on it!:eek:
-
You cant read the content of another file using client-side javascript. The only way to do it is to use either a server-side language or something like an IFrame or ILayer (not advised).
-
I am using javascript client side and vb server side. But how do I call the asp from the client side script and get html back without replacing the current page? I would like to use the returned html in a div tag using the innerhtml property.
-
You might be able to use Remote Scripting to do this
http://www.aspfree.com/authors/salim...escripting.asp
-
I see that remote scripting is not recommended. Do you have any information about SOAP?
-
I don't know anything about it, but I've been curious.
http://www.w3.org/TR/SOAP/
-
I only know little bits of it as I've used it briefly with XML.
W3Schools has a good introduction or guide
http://www.w3schools.com/soap/default.asp