ya it is but I thought that when I am creating the new popup it should not be a problem. The reason it is null is because I am making it null. Here is the function for the popup,<div><br></div><div><div>if (!popup) {</div>
<div> popup = new GeoExt.Popup({</div><div> title: "Feature Info",</div><div> width: 200,</div><div> maximizable: true,</div><div> collapsible: true,</div><div> map: panel.map,</div>
<div> location: loc,</div><div> anchored: true,</div><div> listeners: {</div><div> close: function () {</div><div> // closing a popup destroys it, but our reference is truthy</div>
<div> popup = null;</div><div> }</div><div> }</div><div> });</div><div>}</div><div><br></div><div>Thanks,</div><div>Smaran</div><br><div class="gmail_quote">On Wed, Oct 10, 2012 at 7:26 PM, Phil Scadden <span dir="ltr"><<a href="mailto:p.scadden@gns.cri.nz" target="_blank">p.scadden@gns.cri.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 11/10/2012 3:16 p.m., Smaran Harihar wrote:<br>
> Thanks Phil. I was basically creating popups and closing them, if they<br>
> were open, using,<br>
><br>
> if (popup) popup.close();<br>
><br>
> Not sure why that causes the error?<br>
<br>
</div>I gather that fixed it? I'm guessing the scope allowed js to remove it.<br>
You might need code to see if pop needs to be created. If you leave that<br>
line in, then step through code on response and see what value popup has<br>
in the error creating situation. I'd guess null.<br>
<div class="HOEnZb"><div class="h5"><br>
Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.<br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Thanks & Regards<div>Smaran Harihar</div><br>
</div>