View Single Post
Old 11-02-2012, 07:52 PM   PM User | #9
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,233
Thanks: 59
Thanked 3,997 Times in 3,966 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
You know, there may be an easier way to do this.

Since that *IS* HTML, don't even try to treat it as XML.

Instead, put a HIDDEN <iframe> on your page and load the HTML in that <iframe>.

Then you can just use HTML DOM methods in your JS code to grab the relevant data out of the <iframe>!
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is online now   Reply With Quote