Wt Internal error on google chrome and Internet Explorer
Added by Mohammed Rashad over 14 years ago
I am getting Wt Internal error on google chrome(both linux and windows) and Internet Explorer.
Error in Google Chrome is
Wt Internal error: Reference error: map is not defined, code: undefined, description: undefined
firebug log
extkitchen.cssFailed to load resource: the server responded with a status of 404 (Not Found)
vgis.wt?wtd=wYa0pBzYAyKITSCt&request=script&rand=246289299:312Uncaught TypeError: Cannot read property 'WFSDescribeFeatureType' of undefined
window.WtLoadWidgetTreevgis.wt?wtd=wYa0pBzYAyKITSCt&request=script&rand=246289299:312
document.body.style.cursorvgis.wt?wtd=wYa0pBzYAyKITSCt&request=script&rand=246289299:186
avgis.wt?wtd=wYa0pBzYAyKITSCt&request=script&rand=246289299:186
window.WtOnLoadvgis.wt?wtd=wYa0pBzYAyKITSCt&request=script&rand=246289299:198
(anonymous function)vgis.wt?wtd=wYa0pBzYAyKITSCt&request=script&rand=246289299:324
V
Error in Internet Explorer is
Wt Internal error: [object error], code:undefined, description: Could not complete the opearation due to error 80020101
The same code works on firefox both windows and linux
How to stop these Wt Internal Errors. If Internal errors doesnt occur i think Wt is perfect
Replies (5)
RE: Wt Internal error on google chrome and Internet Explorer - Added by Mohammed Rashad over 14 years ago
I am using latest git version of wt
RE: Wt Internal error on google chrome and Internet Explorer - Added by Koen Deforche over 14 years ago
Hey Mohammed,
I am afraid there is something wrong with your script loading setup. Asynchronous loading of scripts is tricky, especially if these scripts were not designed for that. Is this related to the openlayers widget that you are planning to contribute to Wt ?
Regards,
koen
RE: Wt Internal error on google chrome and Internet Explorer - Added by Mohammed Rashad over 14 years ago
The problem is using require
sometimes before google chrome doesnt load the page and shows some error because of using require
now latest version of google chrome allows to open the page but the above said error is shown. there is something to do with require as we cannot submit a patch for google chrome. may be wrong. i think so?
RE: Wt Internal error on google chrome and Internet Explorer && WOpenLayers - Added by Mohammed Rashad about 14 years ago
yes i think my OpenLayer Widget also have this error. and also OpenLayers is not like google maps.
Its a framework. currently I am working on making a Wt based framework inherited from OpenLayer. replacing javascript calls with C and allow developers to build a webgis project using WOpenLayers which is built on Wt+ OpenLayers
If I can get rid of the error i mentioned in the first post. i can make a framework based on Wt.
Before starting work I need to get my wt application using OpenLayer in all browsers;
chrome(not working now) internetExplorer (not working now) and Firefox (working in both linux and windows)
If you can please help me out.
RE: Wt Internal error on google chrome and Internet Explorer - Added by Koen Deforche about 14 years ago
Hey Mohammed,
It is not a bug in a browser. The order in which the browser loads scripts and executes JavaScript is largely undefined. Therefore you need to properly synchronize this. You are lucky with a number of browsers, that the order in which scripts are loaded and JavaScript executed coincides with how you estimate it to be done, but your are unlucky with a few other browsers which happen to do it differently.
In general, the script you load needs to have some support for asynchronous loading --- that is why popular scripts have explicit APIs for this (e.g. google maps has this). You need to investigate if OpenLayers has this too.
Regards,
koen