Click to See Complete Forum and Search --> : Can those functions co-exist?


kindra
04-06-2003, 08:51 PM
I have an I-frame un my document and several links outside of it that should open contents inside I-frame, and I have another link that should open a new browser window, but it doesn't work anymore since the I-frame is in the page...

<script language="JavaScript">
<!--
ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false

function load(page) {
if (ns4) document.textLayer.src = page
else if (ie4) parent.textFrame.document.location = page
}

function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_openBrWindow(theURL,winName,features) { //v2.0
var URL = theURL + "?varid=" + document.referencia.varid.value + "?envio1=" + document.form1.envio1.value + "?envio2=" + document.form1.envio2.value + "?envio3=" + document.form1.envio3.value + "?envio4=" + document.form1.envio4.value + "?envio5=" + document.form1.envio5.value + "?envio6=" + document.form1.envio6.value;

window.open(URL,winName,features);
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
</script>

kindra
04-06-2003, 08:53 PM
I forgot it, the link that opens the new window is this:

<input type="image" src="images/lupa2.gif" alt="iniciar busqueda" width="36" height="51" border="0" onClick="MM_openBrWindow('resultados.html','resultados','scrollbars=yes')" name="image">
:cool:

kindra
04-06-2003, 09:34 PM
It seems like it reloads the I-frame, sorry I forget to tell U.

kindra
04-06-2003, 10:20 PM
No, I didn't.
Any hints?
:confused:

kindra
04-07-2003, 05:55 AM
Here you have a link, jump tthe intro with the "saltar intro" link, and then you will have the page, it looks like a 3 frames one, the buttons at the bottom in flash (I know, is 100% DERBAUER) are inside the I-frame. At the top, there's a search engine with a button, the button is a magnifier lens.
Click over it and you will see the problem.
http://www.bpoem.com/pantoja/mas/index3.html

kindra
04-07-2003, 07:31 AM
Thanks a lot!!
It was so easy but I didn't realize!!