pijat 0 Report post Posted August 12, 2004 assalamualaikum.............nak tanye skit ape org panggil x button kat sebelah kanan/atas window tu yg ade button minimize n maximize tu? camne nak capture event nie mase user close window tu, in case user tak close window gune button yg ade dlm satu form/app....ade sesape tau....... Quote Share this post Link to post Share on other sites
azuan 2 Report post Posted August 12, 2004 amenda ko cerita ni, tak paham la aku. kalau ko maksudkan javascript link bila ko click dia close window, guna a href="JavaScript:onClick=window.close()" je. Quote Share this post Link to post Share on other sites
pijat 0 Report post Posted August 12, 2004 bukan yg tu la....yg tu tak jadi masalah. yg saya tanye tu button X kat IE tuk close tu.kat sebelah minimize n maximize tu. problem saya cam nie.......katakan kite ade satu form yang ade button close/cancel.//cth camnie<form name="taskeditor" action="test.php" method="post"><input name='close' type='submit' id='close' value='Cancel' onclick="window.close();"/></form>dlm test.php tu plak ;<?if(isset($close)){//do something}?>klau user tu klik kat button close makne kite leh execute arahan dlm test.php tu tp bile user tak klik kat close button dlm form tu tp klik x (kat windows tu) camne? satu rasenye takleh kite disablekan close kat windows tu. tulah soalanya camne nak detect x close kat windows tu........... Quote Share this post Link to post Share on other sites
aRmsTer 0 Report post Posted August 12, 2004 aku xpaham pae ko nak buat tp kalau ko nak bukak kat custom IE window(boleh set sendiri nak letak apa) ko bukak kat link nichromeless window Quote Share this post Link to post Share on other sites
mohdfadly 24 Report post Posted August 12, 2004 aku pun kurang faham, tapi dia nak program yang boleh capture window event. Dalam Microsoft Visual Studio ada satu program yang boleh capture window punyer event, cuba check. 3rd party pun ada cuba cari kat google. Sejauh mana event ni boleh membantu aku tak pastilah, tapi for sure tak banyak boleh membantu.. Quote Share this post Link to post Share on other sites
pijat 0 Report post Posted August 12, 2004 sekali lg...mcm cth gmbr kat bwah nie..... yg ade tande merah tulah ape yg aku maksudkan. mslhnye camne nak tahu user klik kat button close kat situ.................. Quote Share this post Link to post Share on other sites
pijat 0 Report post Posted August 12, 2004 tambah lagi chromeless window tu mmg takleh gune la dlm konqueror. Quote Share this post Link to post Share on other sites
aRmsTer 0 Report post Posted August 12, 2004 laaa dah aku cakap awal2 kan utk buat custom IE window.. ko pon xcakap nak bukak pakai ape... Quote Share this post Link to post Share on other sites
pijat 0 Report post Posted August 12, 2004 jadi ade solution tak? Quote Share this post Link to post Share on other sites
C-Fu 0 Report post Posted August 12, 2004 hmm kalo gitu ko nak check if user dah exit/close window tu kan?gune statement if la kot.if (window.close()) { //do something }taktau la samada javascript ade event handler ke idak, but care atas probably leh jalan?ako boleh carik bebetul, pasal kat browser ako, tiap2 kali ade site yang nak simpan cookies die akan prompt ako. and ade satu site yang ako tak ingat sori yang bile ko tutup browser die akan store info kat cookies and probably die gune javascript la tu. Quote Share this post Link to post Share on other sites
mohdfadly 24 Report post Posted August 12, 2004 (edited) jadi ade solution tak? ko tau kan php ni skrip server side? dan mmg takde sebarang kawalan pada client side eventsso the solution is to output a javascript function as C-Fu & azuan suggestedwindow.close(); Edited August 12, 2004 by puteranetwork Quote Share this post Link to post Share on other sites
pijat 0 Report post Posted August 13, 2004 saye ade try gune nie...........<body onUnload="do_something();">masalahnye skrg dlm konqueror 3.2 menda alah tak jln, saye dah try guna Mozilla n Netscape boleh berfungsi. susah bebenor aa dah tak tau event ape lg nak pakai..........ade sesape yg tahu hrp dpt tolong noo............ Quote Share this post Link to post Share on other sites
mohdfadly 24 Report post Posted August 13, 2004 browser compatibility..konqueror 3.2 is the latest version ke? try upgrade browser, else kena tunggulah latest update dari developer . nothing we can do here. Quote Share this post Link to post Share on other sites
pijat 0 Report post Posted August 14, 2004 konqueror 3.2 tu latest punye...mmg tak tau nak buat camne skrg...............???? Quote Share this post Link to post Share on other sites
C-Fu 0 Report post Posted August 14, 2004 konq ako tak suke gune, so ako taktau camner. tapi kalo die betul2 follow standards, then maybe, just maybe, ko kene set sebelum tag HEAD untuk pilih doctype yang macam HTML4.2 ke, xhtml transitional ke. then maybe boleh kot.kalo taktau then right click opage ni then view source, tengok line paling atas. Quote Share this post Link to post Share on other sites