Call Java onclick function from Addoutput
Posted: Sat Dec 11, 2010 3:54 am
This is for making a 400 x 200 window open with a specified page I need from the output of $hidehex4 = False ( utilizing the else statement )
Here is my if statement:
Here is my java function
I utilize the javascript in the php page between ?> and <?PHP yet it will not call the function how can I resolve this?
Here is my if statement:
Code: Select all
if ($hideHex4) {
$m1->AddOutput("<input type='hidden' id='Hex4' value='".$hex4."'>\n");
}
else {
$m1->AddOutput("<input type='text' id='Hex4' value='".$hex4."'>
<img src='aud.png' width='35' height='30' onclick='MM_openBrWindow('http://xx.xx.xx.xx/xxxxxxxx/audiouploaderk.php?userid=7777','audio','resizable=yes,width=400,height=200')'/>\n");
}Code: Select all
<script type='text/javascript'>
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//--></script>I utilize the javascript in the php page between ?> and <?PHP yet it will not call the function how can I resolve this?