javascript - What is the Exact Function to Popup a Window? -


this code popup box:

<?php $getbtsid = $_request['uid']; $btsid = substr($getbtsid, 0, -1); ?>  <center>  <?php confunc($db); // connection function  $congestedsite = mysql_query("select * `rollout_tracker` `site_id` '%".$btsid."'"); while($rows = mysql_fetch_array($congestedsite)) {     echo "<b>bts id:</b> " . $btsid . "<br />";     echo "<b>sector id:</b> " . substr($getbtsid, -1) . "<br />"; } echo "<br /><br /><br />"; echo '<a href="javascript:window.close();">close window</a>';   ?> 

and how popup box called:

echo "<a href=javascript:popcontact('btsdetails.php?uid=" . $row["bs_id"] . "')>" . $row['bs_id'] . "</a>";  

and javascript function goes below:

function popcontact(url) {     var popup_width = 600;     var popup_height = 400;     var day = new date();     var id = day.gettime(); eval("page" + id + " = window.open(url, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width='+popup_width+',height='+popup_height+'');"); } 

though code working, somehow effecting other javascript codes.

i not understanding reason. probably, have missed within code.

can me solve issue? please?

works me

function opencustomerinfo(orderid) {     customerinfowin = window.open('customer_details.asp?orderid=' + orderid,      'customerinfowin',     'width=600,       height=300,       left=200,       top=200,       resizable=yes,      scrollbars=no,      menubar=yes')      customerinfowin.focus();  } 

Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -