Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
|
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 21st, 2007, 03:18 AM
Registered User
 
Join Date: Nov 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to pass values from javascript to xml file

i have written a code that could dynamically add elements into a listbox using javascript ,
how could i pass this values into a xml file or a jsp page to store it

please help me out its very urgent

SATHISH KUMAR.D
 
Old November 24th, 2007, 07:27 PM
Friend of Wrox
 
Join Date: Jun 2007
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts
Default

Javascript will only manipulate things on the client side. If you're building a javascript application, you can write to an XML file that's part of the installation package that's on the client side. (Like, Google Earth has components that you have to download to use it. That's over my head, but I'm guessing what you're actually going to be using is your server side technology (Java, though the outlines would be the same if you're using ASP.NET or PHP).

You're actually looking at two issues. One is to pass the information back to the server, two you're looking at storing the information somewhere. The first problem is easy, you're going to post the information back to the server. Once you have the information stored in variables on the server you can process them. You can then store them as you like, whether it's back into the next page that you're serving up, a file (XML or otherwise), or into a database. But executing those actions will depend on your server side technology. That gives you the outlines and you can ask more detailed questions in the appropriate server side forum.

-------------------------

Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to avoid duplicate values from the xml file us balasundarrao XSLT 2 June 4th, 2014 11:56 PM
How to pass the dynamic XML file name to XSL jle XSLT 3 March 13th, 2008 04:20 PM
how to pass values to anther page using javascript yuki Javascript How-To 3 March 6th, 2005 06:24 AM
LOAD A XML FILE FROM JAVASCRIPT nen Javascript How-To 1 December 20th, 2004 11:03 AM
unable to pass values from include file kuehhc Beginning PHP 1 June 8th, 2004 10:46 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.