Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 21st, 2007, 03:18 AM
Registered User
 
Join Date: Nov 2007
Location: Banglore, Karnataka, India.
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
Reply With Quote
  #2 (permalink)  
Old November 24th, 2007, 07:27 PM
Friend of Wrox
Points: 1,749, Level: 16
Points: 1,749, Level: 16 Points: 1,749, Level: 16 Points: 1,749, Level: 16
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2007
Location: San Diego, CA, USA.
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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 12:35 AM.


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