This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes XML AND JavaScript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML AND JavaScript" Watch "XML AND JavaScript" New topic
Author

XML AND JavaScript

Vivek Shrivastava
Ranch Hand

Joined: Jun 03, 2000
Posts: 277
Hi,
I have couple of questions.
1. is it possible to use javascript and XML(DOM)? ( I think we can do it using a thin clien applet that basically provide XML document or DOM by accessing a servlet. but i have heard that people don't like to use applet because you have to download the class file to client.)
2. if yes, what is the main advantage of doing this? because we can do same thing with JSP. Using JSP u don't have to download the class file to client.)
Please feel free to correct me.
vivek
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
JavaScript and XML are very different things. One is a regular programming language (JavaScript), and one is a document markup language (XML). I have used them both, and sometimes in a single document. If you can give a few more details of what you need to do, we should be able to give you simne suggestions.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Vivek Shrivastava
Ranch Hand

Joined: Jun 03, 2000
Posts: 277
Thanks Frank Carver!
I wanted to know that can we fill a html form using javascript while we have our data in form of XML or DOM ?( i think we can create DOM on serverside using servlet or whatever then send it to client, may be an applet can recieve it on client side on same page then use javascript to fill the form.)

Somebody has suggested me to do so, but i am trying to understand why he/she does not want to use JSP? what is the advantage of process he/she suggestimg me over the JSP process?
as u said "sometimes in a single document" means u have tried to access XML or DOM using javascript. tell me how and what is the advantage of doint it? while we can create dynamic page using JSP.
I really need your help. please help me.
waiting for your reply.
vievk

[This message has been edited by Vivek Shrivastava (edited November 07, 2000).]
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
I think I begin to understand what you want. I have never sent XML all the way to a client browser, what I have done is to use a combination of XML, XSL and sometimes JSP to generate pages which include JavaScript. There are some tutorials for this approach at http://www.caucho.com/ .
 
Don't get me started about those stupid light bulbs.
 
subject: XML AND JavaScript
 
Similar Threads
XML transformation
What are advantages of applets?
Prototype and Scriptaculous
JSP Debugging
maintain single session from applet