<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Cool.&nbsp; I wonder why.&nbsp; &lt;scratching head&gt; :)<br>
<br>
G<br>
<br>
Zac Spitzer wrote:
<blockquote
 cite="mid:7a85053e0810222049s3372694aieeade14c8bbcac08@mail.gmail.com"
 type="cite">
  <pre wrap="">yep, that's worked :)

On Thu, Oct 23, 2008 at 2:41 PM, Greg Ederer <a class="moz-txt-link-rfc2396E" href="mailto:greg@ergonosis.com">&lt;greg@ergonosis.com&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi Zac,

Try removing OpenLayers.Event.stop(evt) at the end of your event handler
method body.  This seems to have fixed the problem (though, I have no idea
why).  I may go digging into the sources to figure it out.  Please let me
know if this works for you.

Anyone have a clue?

Cheers,

Greg

Zac Spitzer wrote:

I am also seeing exactly the same problem, first click error,
subsequent ones work

On Thu, Oct 23, 2008 at 11:26 AM, Greg Ederer <a class="moz-txt-link-rfc2396E" href="mailto:greg@ergonosis.com">&lt;greg@ergonosis.com&gt;</a> wrote:


Here's line 224 expanded:

var factory=null;
if(typeof GearsFactory!='undefined')
{
  factory=new GearsFactory();
}
else
{
  try
  {
    factory=new ActiveXObject('Gears.Factory');
    if(factory.getBuildInfo().indexOf('ie_mobile')!=-1)
    {
      factory.privateSetGlobalObject(this);
    }
  }
  catch(e)
  {
    if((typeof
navigator.mimeTypes!='undefined')&amp;&amp;navigator.mimeTypes["application/x-googlegears"]){
      factory=document.createElement("object");
      factory.style.display="none";
      factory.width=0;
      factory.height=0;
      factory.type="application/x-googlegears";
      document.documentElement.appendChild(factory);
    }
  }
}

I'm not using Gears.  Not sure what's causing this.

Greg

Greg Ederer wrote:

The exception is traceable to OpenLayers.js (2.7) line 224:

var factory=null;if(typeof GearsFactory!='undefined'){factory=new
GearsFactory();}else{try{factory=new
ActiveXObject('Gears.Factory');if(factory.getBuildInfo().indexOf('ie_mobile')!=-1){factory.privateSetGlobalObject(this);}}catch(e){if((typeof
navigator.mimeTypes!='undefined')&amp;&amp;navigator.mimeTypes["application/x-googlegears"]){factory=document.createElement("object");factory.style.display="none";factory.width=0;factory.height=0;factory.type="application/x-googlegears";document.documentElement.appendChild(factory);}}}

Any ideas?

Cheers,

Greg

Greg Ederer wrote:

Huh.  I fixed the URL, and I still get the exception on the first click.

Greg Ederer wrote:

I solved this.  Bad wms URL.

Cheers,

Greg


Greg Ederer wrote:


Hi,

I got the following exception:

uncaught exception: [Exception... "Illegal operation on WrappedNative
prototype object"  nsresult: "0x8057000c
(NS_ERROR_XPC_BAD_OP_ON_WN_PROTO)"  location: "JS frame ::
<a class="moz-txt-link-freetext" href="http://localhost:8080/EWX/scripts/OpenLayers-2.7/OpenLayers.js">http://localhost:8080/EWX/scripts/OpenLayers-2.7/OpenLayers.js</a> ::
anonymous :: line 440"  data: no]
<a class="moz-txt-link-freetext" href="http://localhost:8080/EWX/scripts/OpenLayers-2.7/OpenLayers.js">http://localhost:8080/EWX/scripts/OpenLayers-2.7/OpenLayers.js</a>
Line 224

when executing the following code:

OpenLayers.loadURL(this.map.parentFrame.wmsUrl, params, this,
this.launchTimeSeries, this.launchTimeSeries);

I only get the exception the first few times this method is called
(within an OpenLayers.Control.Click click handler).
this.launchTimeSeries does get called even when I get the exception.

Any thoughts?

Cheers,

Greg






--
| E R G O N O S I S
| Greg Ederer
| Lead Developer
| <a class="moz-txt-link-abbreviated" href="mailto:greg@ergonosis.com">greg@ergonosis.com</a>
| 360.774.6848
|

________________________________
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@openlayers.org">Users@openlayers.org</a>
<a class="moz-txt-link-freetext" href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a>


--
| E R G O N O S I S
| Greg Ederer
| Lead Developer
| <a class="moz-txt-link-abbreviated" href="mailto:greg@ergonosis.com">greg@ergonosis.com</a>
| 360.774.6848
|

________________________________
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@openlayers.org">Users@openlayers.org</a>
<a class="moz-txt-link-freetext" href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a>


--
| E R G O N O S I S
| Greg Ederer
| Lead Developer
| <a class="moz-txt-link-abbreviated" href="mailto:greg@ergonosis.com">greg@ergonosis.com</a>
| 360.774.6848
|

_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@openlayers.org">Users@openlayers.org</a>
<a class="moz-txt-link-freetext" href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a>






--
| E R G O N O S I S
| Greg Ederer
| Lead Developer
| <a class="moz-txt-link-abbreviated" href="mailto:greg@ergonosis.com">greg@ergonosis.com</a>
| 360.774.6848
|
    </pre>
  </blockquote>
  <pre wrap=""><!---->


  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
| E R G O N O S I S
| Greg Ederer
| Lead Developer
| <a class="moz-txt-link-abbreviated" href="mailto:greg@ergonosis.com">greg@ergonosis.com</a>
| 360.774.6848
|</pre>
</body>
</html>