473,698 Members | 2,704 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 1617

"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
1853
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
8407
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
1481
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
7106
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
5507
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
7824
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
23500
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
2948
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
10554
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
9023
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8893
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8861
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...
0
7721
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6518
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
5860
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
4615
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3045
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
1999
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.