Go Back   CodingForums.com > :: Client side development > XML

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-20-2012, 04:17 PM   PM User | #1
Glitch100
New to the CF scene

 
Join Date: Feb 2012
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Glitch100 is an unknown quantity at this point
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?
Glitch100 is offline   Reply With Quote
Old 02-21-2012, 02:36 AM   PM User | #2
Prime8
New Coder

 
Join Date: Oct 2010
Posts: 51
Thanks: 2
Thanked 0 Times in 0 Posts
Prime8 is an unknown quantity at this point
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
Prime8 is offline   Reply With Quote
Old 02-22-2012, 12:51 PM   PM User | #3
Glitch100
New to the CF scene

 
Join Date: Feb 2012
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Glitch100 is an unknown quantity at this point
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 :?
Glitch100 is offline   Reply With Quote
Old 02-23-2012, 12:24 AM   PM User | #4
Prime8
New Coder

 
Join Date: Oct 2010
Posts: 51
Thanks: 2
Thanked 0 Times in 0 Posts
Prime8 is an unknown quantity at this point
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.
Prime8 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:27 PM.


Advertisement
Log in to turn off these ads.