473,399 Members | 2,774 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,399 software developers and data experts.

How do we load page into iframe when not on iframe page?

HI! how do we load a page from the menu into an iframe when you are not
on the iframe page?

I want to be able to load pages (options in my menu ) into a iframe no
matter if I am on the iframe page or not.

how do we do this.

Right I have two menu's because I dont know how to do this. one for
other pages that dont have the iframe in question and another for the
iframe page with the options available.

Look here to see what I mean.

http://www.webcandesign.com/Without_...Templates.html

Paul
*** Sent via Developersdex http://www.developersdex.com ***
Jul 23 '05 #1
3 9483
VK
> I want to be able to load pages (options in my menu )
into a iframe no matter if I am on the iframe page or not.


If you click a link in your iframe, then it will be loaded into iframe
by default, no actions from your side are needed.

If you click a link on the parent page (containing iframe), you should
target the link in the conventional way:

<a href="foo.html" target="iframeName">Link</a>

Please note that:
(1) target attribute refers to the NAME of frame/iframe, not its ID
(2) despite not directly prohibited, but setting both NAME and ID for
frame/iframe may lead for all kind of bizzare things. So I suggest to
set NAME only.

Jul 23 '05 #2
HI! Thanks for responding. its not that. my link is not in the iframe.
Its on a different page completly.

eg. Index.htm is does not hold the IFRAME001 iframe. so on this page I
want to have a menu that hold the options pages to go into the Iframe
BUT on Another page called "Premium_templates" with holds the Iframe001.

Right now I have two menus because I dont know how to call a URL (
premium_templates.htm) and also load another specific page ( from the
menu ) into the Iframe on ( premium_template.htm) from Index.htm.

Go to my site an see what I mean.

http://www.webcandesign.com/Without_fl/html/index.html

This is the index page. if you hover over Templates there is NO options
right now. ( But I want to have them )

NOW go to this page and you will see the options when you hover this
time over templates.

http://www.webcandesign.com/Without_...Templates.html

The options here when clicked will load the selections into the
iframe001 and at this point all is well. BUT how do I load them from the
index.htm page?

Paul :)

*** Sent via Developersdex http://www.developersdex.com ***
Jul 23 '05 #3
VK
As much as I understood, you have:
StarterPage (index.html)
DisplayPage (with iframe on it)
The StarterPage spits out DisplayPage, and you want to address
DisplayPage.Iframe from the StarterPage. If it's correct, then from
StarterPage you do:
<span onclick="DisplayPage.frames[0].src = 'foo.html';">Link</span>

I'm not suggesting you any <a> (with default behavior overpass) because
you solution is too havy relies on JavaScript so no reasonnable
roll-back can be proposed (if JavaScript is not presented).

Jul 23 '05 #4

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

Similar topics

0
by: mcorrea | last post by:
There is any way to get the total load time of a page when you get an "IFRAME" on it? In all the tests, I got only the base page time without the "IFRAME" time.... <?php $bench = new...
6
by: adnanx82 | last post by:
Hi, I was wondering if anyone knew how to perform the following 2 tasks in Javascript: 1) distinguish between frames and iframes (during an onload event for example) 2) figure out whether a...
5
by: jim.frantzen | last post by:
You have an active XMLHTTP request on the main page (localhost/App1/index.aspx) The XMLHTTP request takes about 60 seconds to receive a response back from localhost/App1/getxml.aspx. You have an...
2
by: hgl1976 | last post by:
Hi! I have a web page that from a query that loads the search result into an iframe on the page. In the search result inside the iframe i would like to be able to load content into div tag that...
4
by: eyalrab | last post by:
I am trying to load page into iframe in IE7 and change the page bgColor after the page has loaded. I tried 2 options: 1. Change the iframe.src from the parent to the new URL. 2. Write div...
0
Fuhrer
by: Fuhrer | last post by:
Hi all, i have a web page(.aspx) and i have a button and an iFrame in it. What i'm trying to do is: when i click this button i want that an rpt file load into the iFrame. what i'm doing now is...
2
by: pratimapaudel | last post by:
Hi I have page LotteryResultPage.aspx . And i have one control which has two drop down and value is like this <option value="SelectStates">Select a Country</option> <option...
5
by: BerlinBrown | last post by:
Do you know if it is possible to wait for the iframe page to load and then manipulate the iframe DOM. E.g. mypage: <script> function myinit() { theiframe.location = "iframe_with_frames.html"...
2
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hi misters, I have a aspx page that loads PDF files into a frame (I call an ShowFile.aspx file that uses Response.BinaryWrite). I want that the user can see div with the message loading and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.