HTML Code:
<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
PHP Code:
$grps_bburl = $vbulletin->options['bburl'];
shortly before the template with the jscript is.
i am now the js master
i simply approached it like it was php and it works lol.