trouble using OpenLayers in JSF with IE client

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

trouble using OpenLayers in JSF with IE client

Mike Quentel-2
Using JSF (developed using IBM Rational Software Architect), Websphere, and OpenLayers.js library.  The application uses the Microsoft Virtual Earth layer.  This all works just fine in Mozilla Firefox (of course), but unfortunately, I get the following error when attempting to access the same page in IE 6.0.2x:

"Internet Explorer cannot open the Internet site http://....  Operation aborted."

Has anyone else encountered this sort of behaviour?  Any ideas on how to solve this?  Seems to only happen when I use a template file from RSA (*.htpl).

Many thanks for any advice concerning this.

Mike Quentel


Access over 1 million songs - Yahoo! Music Unlimited.
_______________________________________________
Users mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: trouble using OpenLayers in JSF with IE client

Christopher Schmidt-2
On Wed, Nov 29, 2006 at 02:33:35PM -0800, Mike Quentel wrote:
> Using JSF (developed using IBM Rational Software Architect), Websphere, and OpenLayers.js library.  The application uses the Microsoft Virtual Earth layer.  This all works just fine in Mozilla Firefox (of course), but unfortunately, I get the following error when attempting to access the same page in IE 6.0.2x:
>
> "Internet Explorer cannot open the Internet site http://....  Operation aborted."
>
> Has anyone else encountered this sort of behaviour?  Any ideas on how to solve this?  Seems to only happen when I use a template file from RSA (*.htpl).

Copying the HTML of your page somewhere would be helpful in this regard.
My first guess is that you are attempting to use some Javascript which
is not yet loaded -- when using Google Maps I've seen this problem when
I don't put a defer='defer' on external scripts which are attempting to
do things with the Google Maps API before it's actually loaded.

However, most of the OpenLayers examples only run code in <body
onload="init()">, in which case this shouldn't be a problem. If you're
not running your code onload and might have it in the body of your page,
this might explain your problem.

Unfortunately, debugging this particular kind of error is quite hard,
but maybe you could put up an example HTML page that fails in order to
help investigation of this issue.

Regards,
--
Christopher Schmidt
MetaCarta
_______________________________________________
Users mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: trouble using OpenLayers in JSF with IE client

Mike Quentel-2
Many thanks to Christopher Schmidt.  Using the defer="defer" attribute in the initialisation script solved the problem.

The page loads OpenLayers.js and another script for loading Virtual Earth services.  Then there is an initialisation script in the page.  Then there is a div tag for the map.  Finally, the block of script that calls the initialisation has the defer attribute in the script tag, as in <script defer="defer">.

Since I need this to work independent of the onload event of the body tag, and do not have the luxury of loading other scripts in the head tag, using defer is essential to this working properly in IE with JSF.

Once again, many thanks Christopher.

Mike Quentel

Christopher Schmidt <[hidden email]> wrote:
On Wed, Nov 29, 2006 at 02:33:35PM -0800, Mike Quentel wrote:
> Using JSF (developed using IBM Rational Software Architect), Websphere, and OpenLayers.js library. The application uses the Microsoft Virtual Earth layer. This all works just fine in Mozilla Firefox (of course), but unfortunately, I get the following error when attempting to access the same page in IE 6.0.2x:
>
> "Internet Explorer cannot open the Internet site http://.... Operation aborted."
>
> Has anyone else encountered this sort of behaviour? Any ideas on how to solve this? Seems to only happen when I use a template file from RSA (*.htpl).

Copying the HTML of your page somewhere would be helpful in this regard.
My first guess is that you are attempting to use some Javascript which
is not yet loaded -- when using Google Maps I've seen this problem when
I don't put a defer='defer' on external scripts which are attempting to
do things with the Google Maps API before it's actually loaded.

However, most of the OpenLayers examples only run code in
onload="init()">, in which case this shouldn't be a problem. If you're
not running your code onload and might have it in the body of your page,
this might explain your problem.

Unfortunately, debugging this particular kind of error is quite hard,
but maybe you could put up an example HTML page that fails in order to
help investigation of this issue.

Regards,
--
Christopher Schmidt
MetaCarta


Want to start your own business? Learn how on Yahoo! Small Business.
_______________________________________________
Users mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: trouble using OpenLayers in JSF with IE client

Anselm Hook
In reply to this post by Mike Quentel-2
I've seen this when there was no <script defer> in the google maps script.

 - a

On 11/29/06, Mike Quentel <[hidden email]> wrote:
Using JSF (developed using IBM Rational Software Architect), Websphere, and OpenLayers.js library.  The application uses the Microsoft Virtual Earth layer.  This all works just fine in Mozilla Firefox (of course), but unfortunately, I get the following error when attempting to access the same page in IE 6.0.2x:

"Internet Explorer cannot open the Internet site http://....  Operation aborted."

Has anyone else encountered this sort of behaviour?  Any ideas on how to solve this?  Seems to only happen when I use a template file from RSA (*.htpl).

Many thanks for any advice concerning this.

Mike Quentel


Access over 1 million songs - <a href="http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=36035/*http://music.yahoo.com/unlimited/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Yahoo! Music Unlimited.


_______________________________________________
Users mailing list
[hidden email]
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://openlayers.org/mailman/listinfo/users" target="_blank"> http://openlayers.org/mailman/listinfo/users




_______________________________________________
Users mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/users