Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Send an iFrame to back

Reply
Thread Tools

Send an iFrame to back

 
 
Sunil Menon
Guest
Posts: n/a
 
      07-09-2003
Dear All,
I am using a menu control that is inside an iFrame...the parent
page contains around three iFrames...after rendering the menu
control...on click of the menu..the sub menus appear behind the
iFrame...how do I get the sub menus in front....

The menus are plain HTML tags...

Please help...

TALIA
Many Regards
Sunil
 
Reply With Quote
 
 
 
 
Vidar Petursson
Guest
Posts: n/a
 
      07-09-2003
Hi

Depends on the browser... Did you try z-Index for your menu?
http://msdn.microsoft.com/library/de...ies/zindex.asp

Or createPopup for IE5.5+
http://msdn.microsoft.com/library/de...reatepopup.asp

--
Best Regards
Vidar Petursson
==============================
Microsoft Internet Client & Controls MVP
==============================
"Sunil Menon" <> wrote in message
news: om...
> Dear All,
> I am using a menu control that is inside an iFrame...the parent
> page contains around three iFrames...after rendering the menu
> control...on click of the menu..the sub menus appear behind the
> iFrame...how do I get the sub menus in front....
>
> The menus are plain HTML tags...
>
> Please help...
>
> TALIA
> Many Regards
> Sunil



 
Reply With Quote
 
 
 
 
Sunil Menon
Guest
Posts: n/a
 
      07-09-2003
Dear Vidar,
Thanks for the quick reply...we tried using the z-index but the
z-index applies only to the iFrame...and since the Page contains the
iFrames...the menus still appear behind one of the iFrames...I cannot
use createpopup as I need to send menu clicks to the page that is loaded
inside a iframe...the clicks will be client side clicks or server side
clicks...

If u have any idea...it will be of great help...

Thanks & Regards
Sunil


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
Vidar Petursson
Guest
Posts: n/a
 
      07-09-2003
Hi

So the menus are located in the page hosting the iframe(s)?

iframe is window-less as of IE5.5 and should work fine with z-index

Basic example:
<HTML><HEAD>
<SCRIPT>
function toggle(sElID){
if(!document.getElementById ) return;
var e = document.getElementById(sElID);
if(e!=null) e.style.display = ( e.style.display == "none" ) ? "block" :
"none";
}
</SCRIPT>
</head>
<BODY>
<div onmouseover="toggle('myDiv')" onmouseout="toggle('myDiv')"
style="cursor:hand">Menu</div>
<DIV id="myDiv" style="Z-INDEX: 2; POSITION:
absolute;background-Color:blue;display:none">
blah<BR>
<BR>blah
</DIV>
<IFRAME src="about:blank" frameBorder=1></IFRAME>
</BODY></HTML>

For browsers that do not support the z-index you can simply hide the iframe
when menu appears
myIframe.style.visibility = ( myIframe.style.visibility == "hidden" ) ?
"visible" : "hidden";

If this does not help send me the URL and I will take a look
--
Best Regards
Vidar Petursson
==============================
Microsoft Internet Client & Controls MVP
==============================
"Sunil Menon" <> wrote in message
news:%...
> Dear Vidar,
> Thanks for the quick reply...we tried using the z-index but the
> z-index applies only to the iFrame...and since the Page contains the
> iFrames...the menus still appear behind one of the iFrames...I cannot
> use createpopup as I need to send menu clicks to the page that is loaded
> inside a iframe...the clicks will be client side clicks or server side
> clicks...
>
> If u have any idea...it will be of great help...
>
> Thanks & Regards
> Sunil
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
iframe within a pop up / send info back to parent ?? Erich93063 Javascript 2 01-03-2007 06:07 PM
Targeting a parent iframe from a sub-iframe albanitus@yahoo.com HTML 0 11-15-2006 04:40 PM
Need help on how to send a variable value from an Iframe back to its parent? paul Javascript 6 01-18-2006 06:54 AM
How can I send back(Post back) some values from client machine Joby ASP .Net 0 05-14-2004 04:19 AM
Get form values from iframe (1) to iframe (2) inside a layer in iframe (1) Daedalous Javascript 3 01-16-2004 11:08 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57