• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

XML AND JavaScript

 
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Vivek Shrivastava
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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/ .
 
reply
    Bookmark Topic Watch Topic
  • New Topic