phpinfo()
08-13-2008, 05:17 AM
I am trying to get an ibox (http://www.ibegin.com/labs/ibox/) popup to execute on a certain event. As opposed to a window.open regular popop.
I need help with the JS code after echo execJS(
Any thoughts on how to get an AJAX ibox popup to execute?
<?php
function execJS($jscode) {
$result = '<script type="text/javascript">';
$result.=$jscode;
$result.= '</script>';
return $result;
}
if($something[0]['event']=='1'&&($pi['event2']=='3'||$pi['event3']=='4'))
echo execJS("javascript:document.open('<a href=' + 'page.php' + 'rel='ibox'' '>')");
?>
I need help with the JS code after echo execJS(
Any thoughts on how to get an AJAX ibox popup to execute?
<?php
function execJS($jscode) {
$result = '<script type="text/javascript">';
$result.=$jscode;
$result.= '</script>';
return $result;
}
if($something[0]['event']=='1'&&($pi['event2']=='3'||$pi['event3']=='4'))
echo execJS("javascript:document.open('<a href=' + 'page.php' + 'rel='ibox'' '>')");
?>