I need to load some sql query data into a page element in order to access it with JS and perform some calcs with it. The data is NOT from a db connection, it comes in the form of unformatted text from the server after clicking on an anchor with an encrypted url as the href. I've tried loading the data into an Iframe and accessing it with

document.getElementById('myFrame').InnerHTML and InnerText

but this does not seem to work. nor does

document.getElementById('myframe').document.body

because the returned page does not contain <body> tags. Could someone point me in the right direction here? I'm a bit lost... C/Java programmer trying to write HTML/JS (ack!).

I'd appreciate any assistance.