Jump to content
php.lv forumi

nestrādā uz IE


ray

Recommended Posts

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

<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

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

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 by ray
Link to comment
Share on other sites

×
×
  • Create New...