Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IFrame issue

Status
Not open for further replies.

REK2

Programmer
Apr 30, 2003
22
CA
Hi Guy's

I have a web page with this code in it using iFrames.
<Iframe width=&quot;95%&quot; height=&quot;800&quot; border=0 scrolling=&quot;yes&quot; MARGINWIDTH=10 SRC=&quot;</Iframe>

This is working fine and the &quot;thepage.aspx&quot; returns with good values..

However, I don't want to use the iFrame anymore, but just want to have this code display normally within my page. Any ideas?

The &quot;thepage.aspx&quot; is on another server...

Thanks All
Regards
 
Hi jemminger,
Thanks for your reply, unfortunatly this method as I read it and unless I am not misunderstanding it, only serve to return data, what I am actually doing also is processing the page that is in the iframe with some input text and so on. I do not only need to retreive data but I need the user to interact with the page also...

So XMLHTTP wont be helfull for my case here.

Thanks

 
did you read page 2?

Posting Data
It's also very easy to do POST requests to remote web sites. This example searches the Internet Movie Database for &quot;The Usual Suspects&quot;.

<%
Response.Buffer = True
Dim objXMLHTTP, xml
Set xml = Server.CreateObject(&quot;Microsoft.XMLHTTP&quot;)

' Notice the two changes in the next two lines:
xml.Open &quot;POST&quot;, &quot; False
xml.Send &quot;select=All&for=The Usual Suspects&quot;

Response.Write xml.responseText

Set xml = Nothing
%>


[View the live demo!]

The Open method takes the argument POST instead of GET and the Send method contains the POST data. POST data has exactly the same syntax as query string data, only you don't need to include the ? at the beginning of the string. The only way to know what to post is to examine the form doing the posting, and see what the elements are and what sort of values they submit.




=========================================================
try { succeed(); } catch(E) { tryAgain(); }
-jeff
 
Hum.. yep. I've saw this one and did not work for me for my particular script... I'll have a look in more details and make it work.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top