473,624 Members | 2,026 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Associating Iframe pages with a specific page. Server side

HI! I need to associate a iframe pages to a specific page for my menu
system.

I want to be able to click on my menu system anywhere on my site and the
options that is clicked will load that options ( iframe page ) into a
specific page that holds the iframe.

Right now the options are only available when on the page that holds the
Iframe in question ( templates.htm )but if you are on another page (
index.htm) how do we tell it to load that option into ( templates.htm ) ?

I think I need some kind of ASP script that would associate any Iframe page
that I specify to the ( Templates.htm ) page.

How do we do this? does anyone have any ideas/examples ?

Paul

Jul 22 '05 #1
6 1613

"paul dallaire" <pa***********@ sympatico.ca> wrote
HI! I need to associate a iframe pages to a specific page for my menu
system.
I want to be able to click on my menu system anywhere on my site and the
options that is clicked will load that options ( iframe page ) into a
specific page that holds the iframe.
Paul


Total air code, but may give you some ideas...

Menu -
<a href="mainpage. asp?ifp=subpage .asp">Click</a>

mainpage.asp -
<%
ifpsrccode="doc ument.getElemen tbyid.if1.src=' " & request("ifp") & "'"
%>
<html>
....
<body onload="<%=ifps rccode%>">
<iframe id=if1 name=if1></iframe>
....
</html>

However, there must be easier (and non-clientside) ways! Try looking at
server.execute, or XMLHTTP etc
IME "clever coding" is a nightmare for someone else to pick up if they have
to work with your coding in future. Often better just to write the extra
pages as stand-alones unless it is more than 100 or so...
Giles
Jul 22 '05 #2
Cool. Thanks, that's what I was looking for. I will see about server
side.

Thanks again. :)

Paul

*** Sent via Developersdex http://www.developersdex.com ***
Jul 22 '05 #3
paul dallaire wrote:
I want to be able to click on my menu system anywhere on my site and
the options that is clicked will load that options ( iframe page )
into a specific page that holds the iframe.


What's wrong with target="_top" ?
http://www.w3.org/TR/html401/types.h...e-frame-target

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 22 '05 #4
HI! _top will not work because its not always on the page which holds
the Iframe.

The menu is on all pages and the user could be on index.htm and the page
which holds the iframe is called premium.htm.

So if the user clicks the menu when on index.htm we have to put the
iframe_page into the premium.htm and display it.

Paul

*** Sent via Developersdex http://www.developersdex.com ***
Jul 22 '05 #5
NOTE: I will not respond further if you don't quote the text you are
replying to.

Paul wrote:
HI! _top will not work because its not always on the page which
holds the Iframe.
_top will always target the outermost window, so its behavior will be
identical no matter where it is clicked. That said, ...
The menu is on all pages and the user could be on index.htm and
the page which holds the iframe is called premium.htm.
Please stop confusing pages with frames. You don't target pages.

target = frame-target [CI]
This attribute specifies the name of a frame where a document
is to be opened.
(http://www.w3.org/TR/html401/present...ml#adef-target)
So if the user clicks the menu when on index.htm we have to put
the iframe_page into the premium.htm and display it.


This is a solved problem. Consider this URL:
http://msdn.microsoft.com/library/de...ence_entry.asp

The links in the tree at left target the right. What do you suppose the link
to [Properties] looks like? I'll share:

<a
href="/library/default.asp?url =/workshop/author/dhtml/reference/properties.asp"
title="Properti es" target="_top">P roperties</a>

See how that works? It still changes the content of the content frame, even
though it targets _top. That is one way to get consistent behavior.

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 22 '05 #6
HI! sorry about the quote problem. I never has too before. I always just
response to the actuall users post in question. I am not sure how to quote
as I have never done so.

Has for _top well I can use it if I am on the page ( eg. page_frame.htm )
that holds the Iframe ( Iframe001). I can load any given page into the
Iframe while on page_frame.htm.

Now what if I am on index.asp and I have a menu with sub options. I want
those sub options (eg, 1.htm, 2.htm, 3.htm..ect..) to load into Iframe001.
How do we do that?

Paul.
"Dave Anderson" <GT**********@s pammotel.com> wrote in message
news:eQ******** ******@TK2MSFTN GP14.phx.gbl...
NOTE: I will not respond further if you don't quote the text you are
replying to.

Paul wrote:
HI! _top will not work because its not always on the page which
holds the Iframe.


_top will always target the outermost window, so its behavior will be
identical no matter where it is clicked. That said, ...
The menu is on all pages and the user could be on index.htm and
the page which holds the iframe is called premium.htm.


Please stop confusing pages with frames. You don't target pages.

target = frame-target [CI]
This attribute specifies the name of a frame where a document
is to be opened.
(http://www.w3.org/TR/html401/present...ml#adef-target)
So if the user clicks the menu when on index.htm we have to put
the iframe_page into the premium.htm and display it.


This is a solved problem. Consider this URL:
http://msdn.microsoft.com/library/de...ence_entry.asp

The links in the tree at left target the right. What do you suppose the
link to [Properties] looks like? I'll share:

<a
href="/library/default.asp?url =/workshop/author/dhtml/reference/properties.asp"
title="Properti es" target="_top">P roperties</a>

See how that works? It still changes the content of the content frame,
even though it targets _top. That is one way to get consistent behavior.

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message.
Use of this email address implies consent to these terms. Please do not
contact me directly or ask me to contact you directly for assistance. If
your question is worth asking, it's worth posting.

Jul 22 '05 #7

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

Similar topics

2
1848
by: google | last post by:
I have a HTML file that contains an iframe. The HTML file is served by one server. The iframe contains a link to a completely different server. My question is, can any action in the iframe (such as a form submit) cause the look and feel of the containing HTML to change, such as I want some table elements in the parent (that contains the iframe) to change or disappear. For example, a HTML file has a table with 3 rows, the first and...
1
8404
by: Marcin Okraszewski | last post by:
Hi, I would like to include one page inside an other page, almost like a IFRAME does it. The problem is that I would like the included part to occupy as much space as it needs, so it would be treaded as a DIV. In other words if it the included page exceeds a given size it would resize to to show full included page. Normally, the IFRAME would create scrollbars. I also tried with <object data="page.html" type="text/html">, but the result is...
3
1480
by: Hugh G. Johnson | last post by:
I have a knowledgebase (KB) system I installed into my existing dynamicly driven site. I used iFrame to grab the KB and place it in the content area of the page. This works great, but I realize now that I can't reference a certain article, such as /article.aspx?id=10221. Adding the record number does nothing since the iFrame references the article.aspx. What can I do to pass a variable to the iFrame? Thanks!
16
7086
by: Mcginkel | last post by:
I am trying to find a way to load XHTML content in an Iframe. I use to do this in html by using the following code : var iframeObject = document.createElement("iframe"); MyDiv.appendChild(iframeObject); var data = "<html><head><title>testing</title></head><body>data</body></html>" iframeObject.contentDocument.open(); iframeObject.contentDocument.writeln(data);
4
5502
by: seans | last post by:
Hi, Is there some way from preventing the JavaScript code in a document loaded into an iframe from executing? I don't have access to the pages being loaded into the i-frame so I can't modify then. They are being loaded from a server. thanks again. sean
4
7792
by: Richard St?en | last post by:
Hi! We are experiencing a problem with running an .aspx page inside an iframe. The .aspx page is loading perfectly the first time (on load), but when we try to interact/navigate within the .aspx page (press a button/calendar control e.g.) the response is loaded in a new separate browser window. What we want is that the .aspx page is preserved and running inside the IFRAME, not only on load, but also when the user tries to interact
2
23492
by: Jeronimo Bertran | last post by:
Hi, I have a page with a very data intensive grid which needs to be automatically refreshed constantly if a change is detected. In order to not refresh the complete page so often, I created an iframe on my page whose html has the refresh meta as follows : <meta http-equiv="refresh" content="10"> The iframe is effectivelyh refreshed every 10 seconds without having the
21
2933
by: matvdl | last post by:
I have a system that was originally developed in asp - the pages are saved in SQL (there are over 10,000 pages) and saved to a temp directory in the server when requested by a client. I have updated this system and changed the pages that are saved to the server as aspx - everything works fine and pages can be served - but Its not impossible for a single client to request 100 plus pages in one session - as each page is requested it is...
6
10553
by: howa | last post by:
Since it is part fo the standard, why I always heard that we should avoid iframe? any comments? thanks.
0
8238
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8174
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8680
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8478
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6111
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5565
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4082
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1786
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.