rizal 1 Report post Posted November 28, 2008 Assalamualaikum,.... saya minta pandangan korang semua bagaimana caranya untuk link kan button dari java gui ke button dr javascript .ada x caranya?tq. Quote Share this post Link to post Share on other sites
rizal 1 Report post Posted November 28, 2008 eh cemana ndak link kan function dlm javascript kepada button gui java?link secara direct... pehtu... boleh memanipulasikan function dlm javascript tu just tekan button dlm gui java.huhu.... Quote Share this post Link to post Share on other sites
MatchMaker 0 Report post Posted December 1, 2008 QUOTE(rizal @ Nov 28 2008, 09:33 PM) <{POST_SNAPBACK}>eh cemana ndak link kan function dlm javascript kepada button gui java?link secara direct... pehtu... boleh memanipulasikan function dlm javascript tu just tekan button dlm gui java.huhu....emmm betul ke "javascript" or just java?kalau boleh tunjukkan contoh yang ada (gui & java file).nanti kitorang akan tolong dari situ. Quote Share this post Link to post Share on other sites
rizal 1 Report post Posted December 1, 2008 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 upJava Button------------>Javascript functionBila 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! Quote Share this post Link to post Share on other sites
rizal 1 Report post Posted December 1, 2008 hmmm..... http://www.savefile.com/files/1911118sy dah uploadkan fail dia...java gui guna button cam biasa.maybe guna action listener atau runtime.tatawlah... Matchmaker fikir boleh x linkkan pakai bat file?tq.Ini ada lah salah satu option penyelesaian bg projek yg sy fikirkan. Quote Share this post Link to post Share on other sites
dzila_87 0 Report post Posted January 6, 2009 guna jsp Quote Share this post Link to post Share on other sites