We've expanded our news coverage and improved our search! Visit
news.oreilly.com for the latest or search for all things across O'Reilly!
Article:
 |
|
Remote Scripting with IFRAME
|
| Subject: |
|
How to retrieve a HTTP response using IFrames? |
| Date: |
|
2003-07-10 16:00:24 |
| From: |
|
anonymous2
|
|
|
|
Hi,
I'm using a Form and an IFrame that is used by the client to submit a Post request to a web server. The target of the Form is the IFrame name. The IFrame has an "onload" event handler which I use to retrieve the response from the server. The response is pure text (no HTML) and consists of a string that is formatted based on a protocol. My question is: How do I get access to the reponse string from within my "onload" event handler? I tried using the following but don't get anything:
var resp = document.getElementById("frameID").innerHTML;
How do I solve this problem? Any help would be greatly appreciated! Thanks!
|