473,395 Members | 1,941 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

iFrame with a long url

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.

Mar 22 '07 #1
3 8778
On Mar 22, 7:46 pm, "chico" <talta...@gmail.comwrote:
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
Mar 23 '07 #2
On Mar 22, 11:48 pm, "Kevin Darling" <kdarl...@basit.comwrote:
<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

Mar 23 '07 #3
On Mar 23, 5:48 am, "Kevin Darling" <kdarl...@basit.comwrote:
On Mar 22, 7:46 pm, "chico" <talta...@gmail.comwrote:
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
That works perfectly!
Thanks!

Mar 23 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: John Chen | last post by:
I need to use iframe to create a floating frame. But the contents in the iframe is not a external html file. Rather, it will be dynamically created by jsp. How can I set the src attribute to a URL...
3
by: Andres Mas Torrecillas | last post by:
Hi! I'm having a little trouble with an IFRAME added in an HTML page. IFRAME has a fixed size and it contains another HTML page, which only has some text paragraphs and a pair of images aligned...
6
by: SF RVN | last post by:
I have searched NUMEROUS sources in an effort to find the magic (script, styles, syntax, etc.) that will allow me to create a web page with the following format: ...
7
by: Patrick.O.Ige | last post by:
Can i use Frameset in ASP.NET?What are other options I have a question :- I have an asp.net page and i'm using TreeView control as links The links are on the left side of the page inside a iframe!...
5
by: pbd22 | last post by:
Hi. I am trying to poll a long-running process via a hidden IFrame. I am noticing that the online errata gives advice for handling a server response: window.parent.handleServerResponse(); ...
3
by: laredotornado | last post by:
Hi, Does anyone know a cross-browser way of making an iframe just as big as the HTML content of its source, but no bigger, either width or height wise. Using 100% attributes for iframe width...
1
by: jaimebienlesfruits | last post by:
Hi, I'm moving my old website to my new domain name and I need help redirecting. The thing is this, my old website (with a very long long long URL) was given a domain name by my host, but the...
0
by: johnw182 | last post by:
Ok, I have a asp.net project. Everything works great. HOWEVER, this project was made to be called from within a frame or iframe. When being used within the iframe the user gets a blank frame when...
23
by: vunet | last post by:
It is recommended by some sources I found to create IFrames in IE using document.createElement('<iframe src="#">') instead of document.createElement('iframe'). Why and what browser versions to...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.