Jump to content

rizal

Members
  • Content Count

    249
  • Joined

  • Last visited

Posts posted by rizal


  1. function getsetting()
    {
    var str="set=";
    var tmpstr="";
    var val=0;
    if(nodeid.value=="65535" || groupid.value=="255")
    {
    window.alert("BroadCast is not permitted");
    return;
    }
    str=str+nodeid.value+","+groupid.value;

    return str;
    }

    function wakefunc()
    {
    var str="";
    var exstr="estr=0";
    str=getsetting();
    var param="xcmd.cgi?cmd=3&val=0&"+exstr+"&"+str;
    window.parent.frames["botFrame"].document.location.replace(param);
    }


    <td width="146" align="right"><input name="WakeBtn" type="submit" id="WakeBtn" value="WAKE" onClick="wakefunc()"></td>
    <td width="141" align="right"><input name="SleepBtn" type="submit" id="SleepBtn" value="SLEEP" onClick="sleepfunc()"></td>

    saya ndak hook up wakefunc() dan sleepfunc() dlm dlm javascript ni dengan button java yg dinamakan wake dan sleep guna apa2 cara sekalipun.

    hook up
    Java Button------------>Javascript function

    Bila tekan button function wake atau sleep dlm gui java, dia terus linkkkan atau hook up ke javascript yg mengandungi command cgi (perl script) tersebut...tq firestarter....

    Java != Javascript kan.tp cemaner ndak linkkan funtion dlm javascript dengan button java dlm gui java.thanks!
×
×
  • Create New...