Forum Moderators: open

Message Too Old, No Replies

Popup in firefox

         

RockBop

8:33 am on Nov 15, 2005 (gmt 0)

10+ Year Member



Hi,

I've made an jsp page that list 100 faq's when clicking on one of the questions one should open the answer in an new popup 400x500. and if one click at another question and the pop up is open. it should open i the same pop up window. in the pop up window there is an link to another page outside the site. when clicking on this the popup should close and an new window should open.

this functionality works well in IE but in firefox the new window opends in the popup. and the popup dont close. tried to use selfe.close() on the external link but then firefox crashes.

any help would be apriciated.

The link in the 100 faq questions page:
<a href="javascript:openWindow('<url:url isHelp="true" baseurl="travel/useful/medicine/singlefaq" appendargs="true" />documentid=<output:showvalue field="documentid" />',400,500,'popup')" /><output:showvalue field="title" /></a>

the link to the external page in the popup:
<a href="<%=displayValue%>" onclick="javascript:window.close();" target="_blank"/>Les mer »</a>

thanx

Scally_Ally

9:00 am on Nov 15, 2005 (gmt 0)

10+ Year Member



I think i had the same problem, so i put the open window into a function along with the close.

function haveIt(){
window.open("<%=displayValue%>", "myWin");
window.close();
}

<a href="<%=displayValue%>" onclick="haveIt();" target="_blank"/>Les mer »</a>

RockBop

9:36 am on Nov 15, 2005 (gmt 0)

10+ Year Member



thanks It works better, when i try to close the popup now i don't get the question. "do you want to close the 2 tabs" so it has obvioslu "killed" the original but the new page still opends in the same popup window in the same size, without toolbars.

RockBop

11:57 am on Nov 15, 2005 (gmt 0)

10+ Year Member



Changed it a little bit and then it worked

function haveIt(url){
window.open(url,"_blank","toolbar=yes, location=yes, directories=yes, status=yes, menubar=yes, scrollbars=yes, resizable=yes, copyhistory=yes")
window.close();
}