Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Feb 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Javascript Execute Link Event?

    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?

    Code:
    <?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'' '>')");
    ?>

  • #2
    New to the CF scene
    Join Date
    Feb 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Before I was using an AJAX prototype.js pop, where after execJS( I would just put:
    Code:
    winAjaxReq('information.php','','500','400','winNewMsg','Title?')
    and I would get a popup. But this uses a lot of js files and resources, so that is why I want to switch to ibox.

    Would it be a direct input from the ibox.js http://ibegin.com/labs/ibox/ibox/ibox.js

    Like:
    Code:
    execJS(iBoxPlugin_Document(information.php);)
    Something like that??

    I don't care how it is coded, I would just like to get the ibox AJAX pop to execute.
    Code:
    if($something[0]['event']=='1'&&($pi['event2']=='3'||$pi['event3']=='4'))
                    echo execJS(" JS CODE GOES HERE TO GET IBOX TO POPUP");
    ?>


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •