Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using button to call SSI in main HTM page

Status
Not open for further replies.

subtvshow

Technical User
Jul 14, 2002
21
US
I would like to call other pages onto my main page
using a drop down menu that has tags that look like:

linkset[0]='<div class=&quot;menuitems&quot;><a href=&quot; button text</a></div>'

I have tried an iframe, but it causes problems. So I am
tryingto use SSI, or ASP to include the htm page
inside my parent page so that I can avoid the function
problem that I am having. How do I change the htmls
inside of my layer from the above button? The layer looks
like this:

<div id=&quot;Layer2&quot; style=&quot;position:absolute; left:643px; top:235px; width:137px; height:107px; z-index:102&quot;></div>
 
Once the page is written out to the client, its written end of story. You can either a) reload the page with an area of content being selected (using asp or javascript) depending on what was submitted on the form or b) use DHTML.

If you use DHTML, be especially careful to test on both IE and Netscape, and bear in mind it will only work with browsers version 4+

With DHTML you can either position layers on the same place and hide or display them depending on the value that the form is giving you, or change what is written in a layer using innerHTML (for IE) and document.layer[name].open, document.layer[name].write and document.layer[name].close for NN

helped me out with DHTML in the past.

Hope that helps dawnbudge@hotmail.com
 
thanks for your response. but I dont know how to
incorporate the dhtml. Not sure where to put the code
and where to put the if then statements to turn the layers
on and off. Is it possible to get the function inside
the iframe to send the variables the main page needs
in order to play the embeded media player?

parent.frames[ifram].setBandwidth (connectionSpeed) {
if ((navigator.userAgent.indexOf(&quot;IE&quot;) > -1) && (navigator.platform == &quot;Win32&quot;)) {
MediaPlayer.autoStart = true;
MediaPlayer.Filename = connectionSpeed + '.asx';
} else {
document.MediaPlayer.SetAutoStart(true);
document.MediaPlayer.SetFileName(connectionSpeed + '.asx');

here is the javascript inside the iframe page. It needs to
send the connectionSpeed + '.asx' variable to the
media player in the main page. How can I do that?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top