PDA

View Full Version : iframe question



jackavin
07-29-2007, 10:57 PM
1) Script Title:
iframe
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm
3) Describe problem:

index.html have
subpage.html( in iframe ) and they have a link let say link1.html

question how can i load link1 at the same iframe as subpage.html ?

thx

jscheuer1
07-30-2007, 04:48 AM
If the link is on subpage.html, it will load in the iframe. If it is on the top page, the iframe must be given a unique name attribute (if it doesn't have one already), ex:


<iframe name="bob" id="myframe" src="externalpage.htm" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100&#37;; display:none"></iframe>

Now you can target it from the top page like so:


<a href="link1.html" target="bob">Link 1</a>

jackavin
07-30-2007, 05:26 AM
thx you very much
i will try :)

jackavin
07-30-2007, 08:03 PM
i use this format
<a href="javascript:loadintoIframe('myframe', 'http://localhost/backoffice/customer/view.php' )" target="bob">ID</a>

and i have add target but i the page can't open
help please:confused:

jackavin
07-30-2007, 08:04 PM
it done thx you