[thelist] Php/Netscape pop-up problem

John finewine at ihug.co.nz
Tue May 21 06:03:01 CDT 2002


--
[ Picked text/plain from multipart/alternative ]
Hi all, can anyone see what's going on here with this php/netscape problem?.......

I have a popup script that pops a new web page, and it works fine in IE (6),
however in latest Netscape (6.2.3) it loses the "http://"  :

the link is on a php page as:
<?php echo sprintf(POPUP_WEBPAGE, urlencode($product_info_values['products_url'])); ?>

POPUP_WEBPAGE references a language file:
<?php define ('POPUP_WEBPAGE', 'For more information, please visit this products
<a href="javascript:popupWebpage(\'http://%s\')"><u>webpage</u></a>.'); ?>

with the javascript in that file:
<script language="javascript"><!--
function popupWebpage(url) {

window.open(url,'popupImageWindow','toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=740,height=550,screenX=150,screenY=150,top=150,left=150')
}
//--></script>

On mousing over the link the status bar displays exactly the same in both
browsers:
javascript:popupWebpage('http://www.somesite.com/somepage.html')

In IE, the new window appears and loads, in NN, the new window starts, then
this message appears :
Alert: www.somesite.com%2fsomepage.html could not be found. Please check the
name and try again.

TIA    John

--




More information about the thelist mailing list