Page with Iframe

  • Thread starter Thread starter Ted
  • Start date Start date
T

Ted

Hi
From page1.asp I want to link to page2.asp that contains an Iframe.
Depending on what link the user click on I want different dokuments to be
opened in the Iframe. Is it possible to include that in the hyperlink.
Thanks for your answer
Ted
 
Hi Ted,

Once your site visitor gets to page2.asp you could use a DD menu for
navigating the iFrame contents.

Be sure to substitute the name for your iFrame where it appears in the code.
------------------------------
Dropdown Navigation to iFrame

Courtesy Art Lung: Lots of useful code there.

http://lab.artlung.com/scripting/dropdown/
------------------------------

<select name="dest"
onchange="window.open(this.options[this.selectedIndex].value,'myIFrame')">
<option>Choose a destination for your IFrame!</option>
<option value="http://www.yahoo.com/">YAHOO</option>
<option value="http://www.google.com/">GOOGLE</option>
<option value="http://www.altavista.com/">ALTAVISTA</option>
<option value="http://www.amazon.com/">AMAZON</option>
<option value="http://artlung.com/">ARTLUNG</option>
</select>
</Form>

<iframe src="http://www.google.com/" name="myIFrame" width="400" height="200">
You can't see this because your browser does not support iframes.
</iframe>
 
Yes I know
I also have a menu in that page for navigating. Actually page1 is an
html-mail, when the reader click on the link "If you can´t read this mail,
click here" I want to bring up page2 with the current mail directly in the
IFrame (thats the problem) then they can navigate if they wish, and read the
other newsletters.
I really appreciate if you could give me a clue.
Ted


FrontPageForms said:
Hi Ted,

Once your site visitor gets to page2.asp you could use a DD menu for
navigating the iFrame contents.

Be sure to substitute the name for your iFrame where it appears in the
code.
------------------------------
Dropdown Navigation to iFrame

Courtesy Art Lung: Lots of useful code there.

http://lab.artlung.com/scripting/dropdown/
------------------------------

<select name="dest"
onchange="window.open(this.options[this.selectedIndex].value,'myIFrame')">
<option>Choose a destination for your IFrame!</option>
<option value="http://www.yahoo.com/">YAHOO</option>
<option value="http://www.google.com/">GOOGLE</option>
<option value="http://www.altavista.com/">ALTAVISTA</option>
<option value="http://www.amazon.com/">AMAZON</option>
<option value="http://artlung.com/">ARTLUNG</option>
</select>
</Form>

<iframe src="http://www.google.com/" name="myIFrame" width="400"
height="200">
You can't see this because your browser does not support iframes.
</iframe>

Ted said:
Hi
From page1.asp I want to link to page2.asp that contains an Iframe.
Depending on what link the user click on I want different dokuments to be
opened in the Iframe. Is it possible to include that in the hyperlink.
Thanks for your answer
Ted
 
HI Ted,

If I understand, you want them to click on a link to take them to page2.asp.

When they get to there, you want the iFrame to display the current news.
Is this news from your website which changes periodically?

If so, as long it is uopdated on the same page, substitute that page where
Google appears in this part of the script.

===============================
<iframe src="http://www.google.com/"
name="myIFrame" width="400"
height="200">
You can't see this because your browser does not support iframes. </iframe>
===============================

If thats not what you are referring to, then I am lost!


Ted said:
Yes I know
I also have a menu in that page for navigating. Actually page1 is an
html-mail, when the reader click on the link "If you can´t read this mail,
click here" I want to bring up page2 with the current mail directly in the
IFrame (thats the problem) then they can navigate if they wish, and read the
other newsletters.
I really appreciate if you could give me a clue.
Ted


FrontPageForms said:
Hi Ted,

Once your site visitor gets to page2.asp you could use a DD menu for
navigating the iFrame contents.

Be sure to substitute the name for your iFrame where it appears in the
code.
------------------------------
Dropdown Navigation to iFrame

Courtesy Art Lung: Lots of useful code there.

http://lab.artlung.com/scripting/dropdown/
------------------------------

<select name="dest"
onchange="window.open(this.options[this.selectedIndex].value,'myIFrame')">
<option>Choose a destination for your IFrame!</option>
<option value="http://www.yahoo.com/">YAHOO</option>
<option value="http://www.google.com/">GOOGLE</option>
<option value="http://www.altavista.com/">ALTAVISTA</option>
<option value="http://www.amazon.com/">AMAZON</option>
<option value="http://artlung.com/">ARTLUNG</option>
</select>
</Form>

<iframe src="http://www.google.com/" name="myIFrame" width="400"
height="200">
You can't see this because your browser does not support iframes.
</iframe>

Ted said:
Hi
From page1.asp I want to link to page2.asp that contains an Iframe.
Depending on what link the user click on I want different dokuments to be
opened in the Iframe. Is it possible to include that in the hyperlink.
Thanks for your answer
Ted
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top