I use ASP and I need to know how to attaches an Iframe Id with its page so I
can load menu options ( eg. 1.htm, 2.htm, 3.htm, ect...) into the Iframe
from any given page on my website.
The problem is for me that I cannot use _top because I am not always on the
page that holds the Iframe in question ( page_iframe.htm ). that holds the
Iframe ( Iframe001). I can load any given page into the iframe only when I
am 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
which is located on ( page_frame.htm ) How do we do that?

Here is one idea but its client-side . Is there a better way to do it
server-side?

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

mainpage.asp -
<%
ifpsrccode="document.getElementbyid.Iframe001.src='" & request("ifp") & "'"
%>
<html>
...
<body onload="<%=ifpsrccode%>">
<iframe id=Iframe001 name=Iframe001></iframe>
...
</html>
--------------End of client side code----------------------

Thanks in advance for reading this post. :)

Paul

Re: How to we reference a Iframe with Page ( server side if possible) by Kevin

Kevin
Fri Jul 22 07:12:16 CDT 2005

Hi Paul,

Actually, that is a combination of client-side JavaScript and server-side
HTML. You could certainly avoid the JavaScript part by simply
dynamically-generating the iframe tag with server-side code. Example:

<iframe src="<%=Request.QueryString("ifp")%>"></iframe>

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
The sun never sets on
the Kingdom of Heaven

"Paul" <paul.dallaire@sympatico.ca> wrote in message
news:uP8s5zmjFHA.576@tk2msftngp13.phx.gbl...
>I use ASP and I need to know how to attaches an Iframe Id with its page so
>I can load menu options ( eg. 1.htm, 2.htm, 3.htm, ect...) into the Iframe
>from any given page on my website.
> The problem is for me that I cannot use _top because I am not always on
> the page that holds the Iframe in question ( page_iframe.htm ). that holds
> the Iframe ( Iframe001). I can load any given page into the iframe only
> when I am 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
> which is located on ( page_frame.htm ) How do we do that?
>
> Here is one idea but its client-side . Is there a better way to do it
> server-side?
>
> --------------Client side code----------------------------
> - From Menu -
> <a href="mainpage.asp?ifp=subpage.asp">Click</a>
>
> mainpage.asp -
> <%
> ifpsrccode="document.getElementbyid.Iframe001.src='" & request("ifp") &
> "'"
> %>
> <html>
> ...
> <body onload="<%=ifpsrccode%>">
> <iframe id=Iframe001 name=Iframe001></iframe>
> ...
> </html>
> --------------End of client side code----------------------
>
> Thanks in advance for reading this post. :)
>
> Paul
>
>



Re: How to we reference a Iframe with Page ( server side if possible) by Paul

Paul
Fri Jul 22 17:19:11 CDT 2005

HI! Thanks, I think I will try that :)

Paul

"Kevin Spencer" <kevin@DIESPAMMERSDIEtakempis.com> wrote in message
news:%23qVTbarjFHA.3656@TK2MSFTNGP09.phx.gbl...
> Hi Paul,
>
> Actually, that is a combination of client-side JavaScript and server-side
> HTML. You could certainly avoid the JavaScript part by simply
> dynamically-generating the iframe tag with server-side code. Example:
>
> <iframe src="<%=Request.QueryString("ifp")%>"></iframe>
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> .Net Developer
> The sun never sets on
> the Kingdom of Heaven
>
> "Paul" <paul.dallaire@sympatico.ca> wrote in message
> news:uP8s5zmjFHA.576@tk2msftngp13.phx.gbl...
>>I use ASP and I need to know how to attaches an Iframe Id with its page so
>>I can load menu options ( eg. 1.htm, 2.htm, 3.htm, ect...) into the Iframe
>>from any given page on my website.
>> The problem is for me that I cannot use _top because I am not always on
>> the page that holds the Iframe in question ( page_iframe.htm ). that
>> holds the Iframe ( Iframe001). I can load any given page into the iframe
>> only when I am 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
>> which is located on ( page_frame.htm ) How do we do that?
>>
>> Here is one idea but its client-side . Is there a better way to do it
>> server-side?
>>
>> --------------Client side code----------------------------
>> - From Menu -
>> <a href="mainpage.asp?ifp=subpage.asp">Click</a>
>>
>> mainpage.asp -
>> <%
>> ifpsrccode="document.getElementbyid.Iframe001.src='" & request("ifp") &
>> "'"
>> %>
>> <html>
>> ...
>> <body onload="<%=ifpsrccode%>">
>> <iframe id=Iframe001 name=Iframe001></iframe>
>> ...
>> </html>
>> --------------End of client side code----------------------
>>
>> Thanks in advance for reading this post. :)
>>
>> Paul
>>
>>
>
>



Re: How to we reference a Iframe with Page ( server side if possible) by Paul

Paul
Fri Jul 22 17:43:19 CDT 2005

HI! I am a little confused how to use it though?

I can see from the QueryString that it will request the ifp(var) from the
href ( which will be the subpage that the user has choosen).

Now do I put the Query string in place where the Iframe should go and remove
the following.

<%
ifpsrccode="document.getElementbyid.Iframe001.src='" & request("ifp") & "'"
%>
<body onload="<%=ifpsrccode%>">
<iframe id=Iframe001 name=Iframe001></iframe>


Paul


"Kevin Spencer" <kevin@DIESPAMMERSDIEtakempis.com> wrote in message
news:%23qVTbarjFHA.3656@TK2MSFTNGP09.phx.gbl...
> Hi Paul,
>
> Actually, that is a combination of client-side JavaScript and server-side
> HTML. You could certainly avoid the JavaScript part by simply
> dynamically-generating the iframe tag with server-side code. Example:
>
> <iframe src="<%=Request.QueryString("ifp")%>"></iframe>
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> .Net Developer
> The sun never sets on
> the Kingdom of Heaven
>
> "Paul" <paul.dallaire@sympatico.ca> wrote in message
> news:uP8s5zmjFHA.576@tk2msftngp13.phx.gbl...
>>I use ASP and I need to know how to attaches an Iframe Id with its page so
>>I can load menu options ( eg. 1.htm, 2.htm, 3.htm, ect...) into the Iframe
>>from any given page on my website.
>> The problem is for me that I cannot use _top because I am not always on
>> the page that holds the Iframe in question ( page_iframe.htm ). that
>> holds the Iframe ( Iframe001). I can load any given page into the iframe
>> only when I am 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
>> which is located on ( page_frame.htm ) How do we do that?
>>
>> Here is one idea but its client-side . Is there a better way to do it
>> server-side?
>>
>> --------------Client side code----------------------------
>> - From Menu -
>> <a href="mainpage.asp?ifp=subpage.asp">Click</a>
>>
>> mainpage.asp -
>> <%
>> ifpsrccode="document.getElementbyid.Iframe001.src='" & request("ifp") &
>> "'"
>> %>
>> <html>
>> ...
>> <body onload="<%=ifpsrccode%>">
>> <iframe id=Iframe001 name=Iframe001></iframe>
>> ...
>> </html>
>> --------------End of client side code----------------------
>>
>> Thanks in advance for reading this post. :)
>>
>> Paul
>>
>>
>
>



Re: How to we reference a Iframe with Page ( server side if possible) by Paul

Paul
Sat Jul 23 13:13:41 CDT 2005

Hi! I got it now. thanks :)

Paul
"Paul" <paul.dallaire@sympatico.ca> wrote in message
news:%23p9oK7wjFHA.708@TK2MSFTNGP09.phx.gbl...
> HI! I am a little confused how to use it though?
>
> I can see from the QueryString that it will request the ifp(var) from the
> href ( which will be the subpage that the user has choosen).
>
> Now do I put the Query string in place where the Iframe should go and
> remove the following.
>
> <%
> ifpsrccode="document.getElementbyid.Iframe001.src='" & request("ifp") &
> "'"
> %>
> <body onload="<%=ifpsrccode%>">
> <iframe id=Iframe001 name=Iframe001></iframe>
>
>
> Paul
>
>
> "Kevin Spencer" <kevin@DIESPAMMERSDIEtakempis.com> wrote in message
> news:%23qVTbarjFHA.3656@TK2MSFTNGP09.phx.gbl...
>> Hi Paul,
>>
>> Actually, that is a combination of client-side JavaScript and server-side
>> HTML. You could certainly avoid the JavaScript part by simply
>> dynamically-generating the iframe tag with server-side code. Example:
>>
>> <iframe src="<%=Request.QueryString("ifp")%>"></iframe>
>>
>> --
>> HTH,
>>
>> Kevin Spencer
>> Microsoft MVP
>> .Net Developer
>> The sun never sets on
>> the Kingdom of Heaven
>>
>> "Paul" <paul.dallaire@sympatico.ca> wrote in message
>> news:uP8s5zmjFHA.576@tk2msftngp13.phx.gbl...
>>>I use ASP and I need to know how to attaches an Iframe Id with its page
>>>so I can load menu options ( eg. 1.htm, 2.htm, 3.htm, ect...) into the
>>>Iframe from any given page on my website.
>>> The problem is for me that I cannot use _top because I am not always on
>>> the page that holds the Iframe in question ( page_iframe.htm ). that
>>> holds the Iframe ( Iframe001). I can load any given page into the iframe
>>> only when I am 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 which is located on ( page_frame.htm ) How do we do that?
>>>
>>> Here is one idea but its client-side . Is there a better way to do it
>>> server-side?
>>>
>>> --------------Client side code----------------------------
>>> - From Menu -
>>> <a href="mainpage.asp?ifp=subpage.asp">Click</a>
>>>
>>> mainpage.asp -
>>> <%
>>> ifpsrccode="document.getElementbyid.Iframe001.src='" & request("ifp") &
>>> "'"
>>> %>
>>> <html>
>>> ...
>>> <body onload="<%=ifpsrccode%>">
>>> <iframe id=Iframe001 name=Iframe001></iframe>
>>> ...
>>> </html>
>>> --------------End of client side code----------------------
>>>
>>> Thanks in advance for reading this post. :)
>>>
>>> Paul
>>>
>>>
>>
>>
>
>



Re: How to we reference a Iframe with Page ( server side if possible) by Kevin

Kevin
Mon Jul 25 08:44:01 CDT 2005

Sorry, Paul. I was away during the weekend.

Glad you got it solved!

--

Kevin Spencer
Microsoft MVP
.Net Developer
The sun never sets on
the Kingdom of Heaven

"Paul" <paul.dallaire@sympatico.ca> wrote in message
news:e3dLDJ7jFHA.2156@TK2MSFTNGP14.phx.gbl...
> Hi! I got it now. thanks :)
>
> Paul
> "Paul" <paul.dallaire@sympatico.ca> wrote in message
> news:%23p9oK7wjFHA.708@TK2MSFTNGP09.phx.gbl...
>> HI! I am a little confused how to use it though?
>>
>> I can see from the QueryString that it will request the ifp(var) from the
>> href ( which will be the subpage that the user has choosen).
>>
>> Now do I put the Query string in place where the Iframe should go and
>> remove the following.
>>
>> <%
>> ifpsrccode="document.getElementbyid.Iframe001.src='" & request("ifp") &
>> "'"
>> %>
>> <body onload="<%=ifpsrccode%>">
>> <iframe id=Iframe001 name=Iframe001></iframe>
>>
>>
>> Paul
>>
>>
>> "Kevin Spencer" <kevin@DIESPAMMERSDIEtakempis.com> wrote in message
>> news:%23qVTbarjFHA.3656@TK2MSFTNGP09.phx.gbl...
>>> Hi Paul,
>>>
>>> Actually, that is a combination of client-side JavaScript and
>>> server-side HTML. You could certainly avoid the JavaScript part by
>>> simply dynamically-generating the iframe tag with server-side code.
>>> Example:
>>>
>>> <iframe src="<%=Request.QueryString("ifp")%>"></iframe>
>>>
>>> --
>>> HTH,
>>>
>>> Kevin Spencer
>>> Microsoft MVP
>>> .Net Developer
>>> The sun never sets on
>>> the Kingdom of Heaven
>>>
>>> "Paul" <paul.dallaire@sympatico.ca> wrote in message
>>> news:uP8s5zmjFHA.576@tk2msftngp13.phx.gbl...
>>>>I use ASP and I need to know how to attaches an Iframe Id with its page
>>>>so I can load menu options ( eg. 1.htm, 2.htm, 3.htm, ect...) into the
>>>>Iframe from any given page on my website.
>>>> The problem is for me that I cannot use _top because I am not always on
>>>> the page that holds the Iframe in question ( page_iframe.htm ). that
>>>> holds the Iframe ( Iframe001). I can load any given page into the
>>>> iframe only when I am 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 which is located on ( page_frame.htm ) How do we do that?
>>>>
>>>> Here is one idea but its client-side . Is there a better way to do it
>>>> server-side?
>>>>
>>>> --------------Client side code----------------------------
>>>> - From Menu -
>>>> <a href="mainpage.asp?ifp=subpage.asp">Click</a>
>>>>
>>>> mainpage.asp -
>>>> <%
>>>> ifpsrccode="document.getElementbyid.Iframe001.src='" & request("ifp") &
>>>> "'"
>>>> %>
>>>> <html>
>>>> ...
>>>> <body onload="<%=ifpsrccode%>">
>>>> <iframe id=Iframe001 name=Iframe001></iframe>
>>>> ...
>>>> </html>
>>>> --------------End of client side code----------------------
>>>>
>>>> Thanks in advance for reading this post. :)
>>>>
>>>> Paul
>>>>
>>>>
>>>
>>>
>>
>>
>
>