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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

iframe z index pls

Status
Not open for further replies.

iamsw00sh

Programmer
May 21, 2003
92
RO
hi there


i have a question:

I am using an <iframe> in a screen.
Inside that <iframe> I have a link, what is going to open an other <iframe> :

like this:

function AddDriver()
{
var TheSearchWindowHeight = 300;
var TheSearchWindowWidth = 550;
var topAlign = document.body.scrollTop+15;
var leftAlig = (document.body.scrollWidth - TheSearchWindowWidth)/2;

var STRsrc = '../Driver/Add.asp?ref=<%= rnd() %>&CompanyID=<%= CompanyID %>';
iframeNameDriver = document.getElementById(&quot;iframeDriver&quot;);

if (!(iframeNameDriver))
{
iframeNameDriver = document.createElement(&quot;<iframe id='iframeDriver' src='&quot;+STRsrc+&quot;' STYLE='display:none; border : 1px solid #6D7997; position:absolute ; width: &quot;+TheSearchWindowWidth+&quot; ; height: &quot;+TheSearchWindowHeight+&quot; ; z-index=100' MARGINHEIGHT='0' MARGINWIDTH='0' NORESIZE FRAMEBORDER='0' SCROLLING='YES'></iframe>&quot;);
document.body.insertBefore(iframeNameDriver);
}
else
{
document.all.iframeDriver.src = STRsrc;
iframeNameDriver = document.all.iframeDriver;
}

iframeNameDriver.style.position = &quot;absolute&quot;;
iframeNameDriver.style.left = leftAlig;
iframeNameDriver.style.top = topAlign;

iframeNameDriver.style.display = &quot;none&quot;;
iframeNameDriver.style.display = &quot;block&quot;;
}






my problem is, that i cannot open a bigger <iframe> from te inside of this one because this is a small one.

Can I do some Z-index stuff?
i mean I could put this javascript function in the &quot;parent&quot; (i am doing it...) but it would be much easier from this one...

i wonder:
am i clear enough?

thanks :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top