Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Feb 2012
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    XML File online parsed into HTML Form?

    Please feel free to move this if its in an irrelevant section.

    Basically I have a HTML Form that passes information to a server, and then the server returns to us an XML document on the site.

    Now with that XML document, it is about cars and there are constant fields for example how many doors the car has, miles, etc.

    How can populate a new set of HTML fields with the information that was in the XML file?

  • #2
    New Coder
    Join Date
    Oct 2010
    Posts
    56
    Thanks
    2
    Thanked 0 Times in 0 Posts
    You'll probably want to start reading up on javascript or php.

    This would be a good place to start: http://www.w3schools.com/xml/xml_dom.asp

  • #3
    New to the CF scene
    Join Date
    Feb 2012
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts
    When I press a button on the corresponding form, it will generate (serverside) an XML document, and take me to it in the browser. I don't want to go to it, but rather just use that document and go to a new HTML page and fill out a HTML form using the XML document... Is this not possible :?

  • #4
    New Coder
    Join Date
    Oct 2010
    Posts
    56
    Thanks
    2
    Thanked 0 Times in 0 Posts
    That depends on if you have access to the code that creates that file, and if you can put your html (really it would be either some js or php script, not plain html) file on the same server. Nothing that I know of will let you access a file off another server. You could save the xml to a local file (or locally, then upload to your own server), then you could manipulate it.

    If you're controlling the creation of the file and have access to the server it resides on, it isn't very hard.


  •  

    Posting Permissions

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