IntelliJ Java IDE
The moose likes HTML, CSS and JavaScript and the fly likes alert box contents as XML Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "alert box contents as XML" Watch "alert box contents as XML" New topic
Author

alert box contents as XML

Yell Srik
Ranch Hand

Joined: Mar 10, 2004
Posts: 61
Hi,
using javascript, i am generating XML in an alert box ie
for eg,
var str="<employee>\n";
str+="<name>\n";
str+="<age>\n";
str+="</employee>";
alert(str)

from the above code, the XML tags are now written into an alert box. now i want to save these tags as a separate xml file.
is it possible to do so and if yes, how should i proceed?
thanks in advance
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
You can use activex object to and write the string to a file like..(but you may get a security warning).


Spritle Software Blogs
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Moving this to Javascript forum.
 
 
subject: alert box contents as XML
 
Threads others viewed
Re:Assign jsp variable into javascript variable
XMLHttpRequest problem
saving XML files
XSL Question
How to pass value to JavaScript function
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com