PDA

View Full Version : opening multiple windows from the same parent with javascript


prasadcnair
05-26-2008, 08:26 PM
hi all,

this is my code with troubles

echo '<td><a href="javascript:void(0)" onClick="window.open(\'chatSupport.php?cid='.$cid.'\',\'miniwin\',\'toolbar=0,location=0,directories=0,status =0,menubar=0,scrollbars=1,resizable=1,width=500,height=450\')"> Connect </a></td>';

this code opens up new window as per the code, but only once. Later on the content in the first opened window changes and no new windows. I think it will work fine if i could unset the parent-child relationship of windows. i tried window.opener and window.parent.. but still confused.. any help is highly appreciated.

thanks and regards

A1ien51
05-31-2008, 12:30 AM
This question has nothing to do with Ajax to start off with.

You should give each window a unique name. Right now you are hardcoding them all with miniwin

Eric

prasadcnair
06-03-2008, 08:21 AM
i was a bit late to check this.. anyway, thank you..