kerz Posted October 8, 2006 Report Share Posted October 8, 2006 (edited) man vajadzīgs ir lai no datubāzes nolasītu adresi un ar javascript atvērtu popup logu parastais būtu, kurā ir toolbar menubar location utt: echo "<a title=\"tiripiri!\" target=_blank href=\"$row[address]\">"; echo $row['title']; echo "</a>"; bet man vajadzētu lai atveras popup bez toolbar menubar utt.. bet ja priekšā ir echo tad js nedarbojas.. Edited October 8, 2006 by kerz Link to comment Share on other sites More sharing options...
andrisp Posted October 8, 2006 Report Share Posted October 8, 2006 kā tas ir "bet ja priekšā ir echo tad js nedarbojas" ? Link to comment Share on other sites More sharing options...
kerz Posted October 8, 2006 Author Report Share Posted October 8, 2006 (edited) piemēram echo "<a onClick="window.open('$row[address]','mywindow','location=0,width=500,height=570,titlebar=0,toolbar=0,hotkeys=0')">"; echo "tiripiri"; echo "</a>"; Edited October 8, 2006 by kerz Link to comment Share on other sites More sharing options...
andrisp Posted October 8, 2006 Report Share Posted October 8, 2006 (edited) ja gribi taisīt echo "bl"ab"la"; tad obligāti jāeskeipo iekšējās pēdiņas: echo "bl\"ab\"la"; Tāpat arī ar vienpēdiņām: echo 'bl\'ab\'la'; Šādi drīkst darīt: echo 'bl"ab"la'; echo "bl'ab'la"; Edited October 8, 2006 by andrisp Link to comment Share on other sites More sharing options...
v3rb0 Posted October 8, 2006 Report Share Posted October 8, 2006 (edited) ?><a onClick="window.open('<?php echo $row[address]; ?>', 'mywindow', 'location=0,width=500,height=570,titlebar=0,toolbar=0,hotkeys=0')"><?php Edited October 8, 2006 by v3rb0 Link to comment Share on other sites More sharing options...
kerz Posted October 8, 2006 Author Report Share Posted October 8, 2006 <a onClick="window.open('<?php echo $row[address]; ?>', 'mywindow', 'location=0,width=500,height=570,titlebar=0,toolbar=0,hotkeys=0')"> shis der paldies :) Link to comment Share on other sites More sharing options...
Recommended Posts