ray Posted December 3, 2006 Report Share Posted December 3, 2006 ir javascript kods: <script type="text/javascript"> function jauns_logs(theURL,winName,features) { window.open(theURL,winName,features); } </script> un saitā links: <a href="java script:jauns_logs('bla_bla.php','BLA BLA BLA','width=100,height=100')">links</a> respektīvi kodam jāatver jauns logs ar izmēru 100x100. lieta tāda, ka ar FireFox viss strādā normāli, bet uz IE nekas nenotiek :/ Link to comment Share on other sites More sharing options...
bubu Posted December 3, 2006 Report Share Posted December 3, 2006 Vai tik šitā problēma nebija, ka otrajā parametrā lieto atstarpes? Kādu javaskripta kļūdu IE met ārā? (ja nerāda, tad ieslēdz, lai parāda) Link to comment Share on other sites More sharing options...
andrisp Posted December 3, 2006 Report Share Posted December 3, 2006 Ir, ir tas pats. Tas winName parametrs būs reference ar ko pēc tam var piekļūt šim jauizveidotajam logam. Un parasti references un mainīgo nosaukumi nevar sastāvāt no atstarpēm un speciālajiem simboliem. Link to comment Share on other sites More sharing options...
Val Posted December 3, 2006 Report Share Posted December 3, 2006 atstarpe starp "java" un "script" Link to comment Share on other sites More sharing options...
andrisp Posted December 3, 2006 Report Share Posted December 3, 2006 Val, tas ir triks, ko veic IPB forums. Link to comment Share on other sites More sharing options...
Val Posted December 3, 2006 Report Share Posted December 3, 2006 Nesapratu domu... To atstarpi ar citu javascriptu noņem? Link to comment Share on other sites More sharing options...
andrisp Posted December 3, 2006 Report Share Posted December 3, 2006 Nē nē, vienkārši, kad šeit posto skriptu, tad IPB forums tur iemet atstarpi, lai ja nu kaut kas nogļuko, tad neizpildītos tas javascripts. Kaut kā tā. Link to comment Share on other sites More sharing options...
ray Posted December 3, 2006 Author Report Share Posted December 3, 2006 es jau iepostoju bez atstarpes. kā var uzlikt, lai rāda javascript kļūdas? Link to comment Share on other sites More sharing options...
Val Posted December 3, 2006 Report Share Posted December 3, 2006 skaidrīte ;) Link to comment Share on other sites More sharing options...
Kristabs Posted December 3, 2006 Report Share Posted December 3, 2006 <a href="java script:jauns_logs('bla_bla.php','BLA BLA BLA','width=100,height=100')">links</a> vietā raksti: <a href="java script:jauns_logs('bla_bla.php','BLA','width=100,height=100')">links</a> Win name neizmanto atstarpes un speciālos simbolus, kā jau bubu minēja. Link to comment Share on other sites More sharing options...
ray Posted December 3, 2006 Author Report Share Posted December 3, 2006 Win name neizmanto atstarpes un speciālos simbolus, kā jau bubu minēja. bet uz firefox viss iet, uz IE neiet :/ Link to comment Share on other sites More sharing options...
andrisp Posted December 3, 2006 Report Share Posted December 3, 2006 Nu un ? FF vienkārši noignorē droši vien to. Citāts no http://developer.mozilla.org/en/docs/DOM:window.open: This is the string that just names the new window. Such string can be used to be the target of links and forms when the target attribute of an <a> element or of a <form> is specified. This string parameter should not contain any blank space. strWindowName does not specify the title of the new window. Link to comment Share on other sites More sharing options...
ray Posted December 3, 2006 Author Report Share Posted December 3, 2006 (edited) Paldies, viss iepriekšējais darbojas, bet ir atkal problēma tāda pati tikai šoreiz ar šādu kodu: echo '<a href="java script:jauns_logs(\'../bla.php?id='.$mainigais.'\',\'BLĀ\',\'toolbar=yes,location=yes,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width=1000,height=700\')">'.$mainigais.'</a>'; Edited December 4, 2006 by ray Link to comment Share on other sites More sharing options...
Recommended Posts