sabret00the
11-21-2005, 06:32 PM
<script type="text/javascript">
/**
* Opens an IM Window
*
* @param string IM type
* @param integer User ID
* @param integer Width of window
* @param integer Height of window
*
* @return window
*/
function grps_imwindow(imtype, userid, width, height)
{
return openWindow(
grps_bburl + '/sendmessage.php?' + SESSIONURL + 'do=im&type=' + imtype + '&u=' + userid,
width, height
);
}
</script>
the grps_bburl is what i'm trying to pass, that's defined as $grps_bburl = $vbulletin->options['bburl'];
shortly before the template with the jscript is.
i am now the js master :D
i simply approached it like it was php and it works lol.
/**
* Opens an IM Window
*
* @param string IM type
* @param integer User ID
* @param integer Width of window
* @param integer Height of window
*
* @return window
*/
function grps_imwindow(imtype, userid, width, height)
{
return openWindow(
grps_bburl + '/sendmessage.php?' + SESSIONURL + 'do=im&type=' + imtype + '&u=' + userid,
width, height
);
}
</script>
the grps_bburl is what i'm trying to pass, that's defined as $grps_bburl = $vbulletin->options['bburl'];
shortly before the template with the jscript is.
i am now the js master :D
i simply approached it like it was php and it works lol.