Click to See Complete Forum and Search --> : Transforming XML with DOM and JavaScript and/or JApplet
I'm working on a project for my school. The project is transforming an XML document in Server/Client model.
My questions are :
1. I know that a script can call an Applet method. Is it possible to program the modification with JavaDOM as Applet Methods that will be called by the Script ?
2. Is it more difficult to do like this (Script + Apllet) or to operate the modifications directely with JavaScript.
PS : the modifications are done client side
Thanks a lot for your help
Khalid Ali
03-16-2004, 10:43 PM
question 1 is hard to understand that what are you after..
2. using script to modify xml may work only if you have some means to pass the changed DOM object to some server side program that can save the changes
In fact modification has to be done client side. The client, first, download an XML document from the server and visulized with his browser. After, the client asks the server to send command to modify the document already dowloaded. Typically, the application is used to zoom on a svg MAP. Imagine you've to visualize the MAP of USA. the hole documment is at least 5 Mo size and it's verry long to dowload this in one time. the idea is to download the first just the squeletoon of the XML document and after if the client wants to zoom on one particular state, he juast has to send a request to the server with the name of the for example, California, and the server sends back the fragment to be added to the XML document available client side. The addition has to be made client side. To do thid I projected to use a script with an applet with makes a lot of treatements on a DOM given as argument. ANd for that I've to Know if is possible to communicate a DOM from the script to the Applet.
Or, perhaps I don't need to use an Applet ??
thanks for any help!