iFrame with a long url

C

chico

Hello,
I hope you can help me on this one.

I would like to have an iFrame pointing to dynamic url that gets
parameters, for example:
iframe .... src="blabla?myparm1=par1&myparam2=par2.... ,

The problem with this method, is that when the src url is too long
(over 2400 characters) then the IE will not read it correctly.

Is there any way to pass these parameters to the target not by the
url ?
maybe in a similar way to a form submission - by post parameters?

Thanks.
 
K

Kevin Darling

I would like to have an iFrame pointing to dynamic url that gets
parameters, for example:
iframe .... src="blabla?myparm1=par1&myparam2=par2.... ,

Is there any way to pass these parameters to the target not by the
url ?
maybe in a similar way to a form submission - by post parameters?

<form name="MyForm" method="post" target="theIFrame"
action="whatever">
<input type="hidden" blah blah your parameters to Post>
</form>

<iframe id="theIFrame" src="blank.html" width etc ></iframe>

Thus the submission of MyForm is a POST with the result sent to
theIFrame.

If you're going to use SSL, be sure the iframe src points to a blank
page from the same server, otherwise you can get warnings about mixing
secure and insecure pages.

Kev
 
K

Kevin Darling

<form name="MyForm" method="post" target="theIFrame"
action="whatever">
<input type="hidden" blah blah your parameters to Post>
</form>

<iframe id="theIFrame" src="blank.html" width etc ></iframe>

Actually, probably has to be... name="theIFrame" instead of id, but
not sure right now. Too tired ;-)

Kev
 
C

chico

<form name="MyForm" method="post" target="theIFrame"
action="whatever">
<input type="hidden" blah blah your parameters to Post>
</form>

<iframe id="theIFrame" src="blank.html" width etc ></iframe>

Thus the submission of MyForm is a POST with the result sent to
theIFrame.

If you're going to use SSL, be sure the iframe src points to a blank
page from the same server, otherwise you can get warnings about mixing
secure and insecure pages.

Kev

That works perfectly!
Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top