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')&&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')&&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 ::
http://localhost:8080/EWX/scripts/OpenLayers-2.7/OpenLayers.js ::
anonymous :: line 440" data: no]
http://localhost:8080/EWX/scripts/OpenLayers-2.7/OpenLayers.js
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
| [EMAIL PROTECTED]
| 360.774.6848
|
_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
--
| E R G O N O S I S
| Greg Ederer
| Lead Developer
| [EMAIL PROTECTED]
| 360.774.6848
|
_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
--
| E R G O N O S I S
| Greg Ederer
| Lead Developer
| [EMAIL PROTECTED]
| 360.774.6848
|
|
_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users