Results 1 to 5 of 5

Thread: JavaScript that saves HTML form to XML

  1. #1
    Join Date
    Dec 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default JavaScript that saves HTML form to XML

    Hi,
    I need a JavaScript code that saves HTML form's data and fields in a XML file for further processing in server.

    Cheers

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Javascript cannot save files on the server. You can use AJAX to make a serverside language do this, but there's no real advantage if you're submitting a form anyway. Look into a serverside language like PHP or ASP.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Dec 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by djr33 View Post
    Javascript cannot save files on the server. You can use AJAX to make a serverside language do this, but there's no real advantage if you're submitting a form anyway. Look into a serverside language like PHP or ASP.
    I wish to process that XML via a server side language so there is no problem with that. But I need a JavaScript or Ajax code by which I produce that XML file when user fills in the HTML form and presses submit button. Thanks for reply.
    Last edited by usyd; 12-27-2010 at 10:34 AM.

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    It can produce XML formatted text, but it will not produce a file. Is that what you want?
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  5. #5
    Join Date
    Dec 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by djr33 View Post
    It can produce XML formatted text, but it will not produce a file. Is that what you want?
    Hi,
    Actually I was wrong and now got the point so for my purpose I can't use JavaScript at all. Thanks for your help.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •