[GeoNetwork-devel] [GeoNetwork opensource Developer website] #996: IE7 Main page failes to load due to javascript error.

#996: IE7 Main page failes to load due to javascript error.
----------------------------------+-----------------------------------------
Reporter: ianwallen | Owner: geonetwork-devel@…
     Type: defect | Status: new
Priority: major | Milestone: v2.8.0 RC1
Component: User interface (web) | Version: v2.8.0RC0
Keywords: |
----------------------------------+-----------------------------------------
Accessing the home page with IE7 displays

    GeoNetwork opensource catalogue
    Loading ...

There is a JavaScript error with the following.
    line: 366
    Char: 7
    Error: Object doesn't support this property or method
    Code:0

When I view the source I see the following for line 365 and 366

         Ext.onReady(function(){
                 $("loading").hide();

See [http://osgeo-org.1560.n6.nabble.com/current-nightly-build-does-not-
work-with-ie7-tc4989131.html] for more details.

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/996&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.

#996: IE7 Main page failes to load due to javascript error.
----------------------------------+-----------------------------------------
Reporter: ianwallen | Owner: geonetwork-devel@…
     Type: defect | Status: new
Priority: major | Milestone: v2.8.0 RC1
Component: User interface (web) | Version: v2.8.0RC0
Keywords: |
----------------------------------+-----------------------------------------

Comment(by ianwallen):

I have a simple patch that seems to correct. It seems like IE7 does not
like the following
    $("loading").hide();
Changing it to extjs notation as follows
     Ext.get("loading").hide();
Seems to correct the problem

I'm not sure if this breaks anything else. Also This may not be solving
the real underlining problem of why it did not work in the first place
(but works with other browsers)? i.e. there may be other errors related to
the $() notation....

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/996#comment:1&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.

#996: IE7 Main page failes to load due to javascript error.
----------------------------------+-----------------------------------------
Reporter: ianwallen | Owner: geonetwork-devel@…
     Type: defect | Status: new
Priority: major | Milestone: v2.8.0 RC1
Component: User interface (web) | Version: v2.8.0RC0
Keywords: |
----------------------------------+-----------------------------------------

Comment(by ianwallen):

Although this patch fixes the main page, it was noticed that there are
similar issues elsewheres with ie7.

From the administration section

  * My metadata
  * Add a metadata schema/profile
  * Update a metadata schema/profile
  * Delete a metadata schema/profile

all have similar issues with the following code.

Event.observe(window, 'load', function() {
                 if ($("content_container")) {
                     $("content_container").show();
                 }
             });

The following links also fail to work - for other reasons which may be
related.

  * Harvesting management
  * Manage thesauri
  * Manage directories

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/996#comment:2&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.

#996: IE7 Main page failes to load due to javascript error.
----------------------------------+-----------------------------------------
Reporter: ianwallen | Owner: geonetwork-devel@…
     Type: defect | Status: new
Priority: major | Milestone: v2.8.0 RC1
Component: User interface (web) | Version: v2.8.0RC0
Keywords: |
----------------------------------+-----------------------------------------

Comment(by ianwallen):

Just realized that the patch may cause issues as the ExtJS library may not
be loaded on all the pages that use the new code.

Attempted to apply similar patch for "content_container" and got error
related to the "Ext" undefined.

I don't understand the structure of the pages so I'm not sure where to
update the code to include the extJS lib.

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/996#comment:3&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.

#996: IE7 Main page failes to load due to javascript error.
----------------------------------+-----------------------------------------
Reporter: ianwallen | Owner: geonetwork-devel@…
     Type: defect | Status: new
Priority: major | Milestone: v2.8.0 RC2
Component: User interface (web) | Version: v2.8.0RC0
Keywords: |
----------------------------------+-----------------------------------------
Changes (by ianwallen):

  * milestone: v2.8.0 RC1 => v2.8.0 RC2

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/996#comment:4&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.

#996: IE7 Main page failes to load due to javascript error.
----------------------------------+-----------------------------------------
Reporter: ianwallen | Owner: geonetwork-devel@…
     Type: defect | Status: new
Priority: major | Milestone: v2.8.0 RC2
Component: User interface (web) | Version: v2.8.0RC0
Keywords: |
----------------------------------+-----------------------------------------

Comment(by ianwallen):

See discussion from [http://osgeo-
org.1560.n6.nabble.com/Geonetwork-2-8-RC1-and-Internet-
Explorer-7-td5005194.html]

Another possible fix may be to add "<meta http-equiv="X-UA-Compatible"
content="IE=7"/> " to xsl/header.xsl

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/996#comment:5&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.

#996: IE7 Main page failes to load due to javascript error.
----------------------------------+-----------------------------------------
Reporter: ianwallen | Owner: geonetwork-devel@…
     Type: defect | Status: new
Priority: blocker | Milestone: v2.8.0
Component: User interface (web) | Version: v2.8.0RC0
Keywords: |
----------------------------------+-----------------------------------------
Changes (by ianwallen):

  * owner: delawen => geonetwork-devel@…

Comment:

delawen - as there has not been any activity from your end I moved this
bug back to the group for more visibility. Hope you don't mind.

Note: I guess it could also be the prototype.js from the utils.xsl that
needs to be removed.

Either way one of them needs to be removed to fix the bug.

I'm not sure which one is the safest to remove.

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/996#comment:9&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.

Note: Looks like the real bug has been identifies - The prototype.js is being
called twice - see Ticket #996
<http://trac.osgeo.org/geonetwork/ticket/996#comment:8&gt; for details.

Now If someone who knowledgeable with all the js include scripts can
identify which prototype.js needs to be removed, we should be all set.

Thanks.

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/GeoNetwork-opensource-Developer-website-996-IE7-Main-page-failes-to-load-due-to-javascript-error-tp4990804p5023378.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

Looks like I can still download IE7 (need to test this out) but I think we could safely leave this to 2.8.1 (IE7 users must be pretty thin on the ground - 1.5-5% according to wikipedia :-)).

Could we just get this release out? :slight_smile: I can't see any reason to hold onto it any longer, unless someone has some other problems with the new lucene indexing.

Cheers,
Simon
________________________________________
From: ianwallen [ianwallen@anonymised.com]
Sent: Monday, 17 December 2012 2:20 PM
To: geonetwork-devel@lists.sourceforge.net
Subject: Re: [GeoNetwork-devel] [GeoNetwork opensource Developer website] #996: IE7 Main page failes to load due to javascript error.

Note: Looks like the real bug has been identifies - The prototype.js is being
called twice - see Ticket #996
<#996 (IE7 Main page failes to load due to javascript error.) – GeoNetwork opensource Developer website; for details.

Now If someone who knowledgeable with all the js include scripts can
identify which prototype.js needs to be removed, we should be all set.

Thanks.

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/GeoNetwork-opensource-Developer-website-996-IE7-Main-page-failes-to-load-due-to-javascript-error-tp4990804p5023378.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers

_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net

GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Maybe only a review of the doco to make sure that any old/out of date stuff has been removed (think there is some relating to gast)? I'll look at that now. Let me know if there are any other things that need doing to make this happen.
________________________________________
From: Pigot, Simon (CMAR, Hobart)
Sent: Monday, 17 December 2012 5:59 PM
To: ianwallen; geonetwork-devel@lists.sourceforge.net
Subject: RE: [GeoNetwork-devel] [GeoNetwork opensource Developer website] #996: IE7 Main page failes to load due to javascript error.

Looks like I can still download IE7 (need to test this out) but I think we could safely leave this to 2.8.1 (IE7 users must be pretty thin on the ground - 1.5-5% according to wikipedia :-)).

Could we just get this release out? :slight_smile: I can't see any reason to hold onto it any longer, unless someone has some other problems with the new lucene indexing.

Cheers,
Simon
________________________________________
From: ianwallen [ianwallen@anonymised.com]
Sent: Monday, 17 December 2012 2:20 PM
To: geonetwork-devel@lists.sourceforge.net
Subject: Re: [GeoNetwork-devel] [GeoNetwork opensource Developer website] #996: IE7 Main page failes to load due to javascript error.

Note: Looks like the real bug has been identifies - The prototype.js is being
called twice - see Ticket #996
<#996 (IE7 Main page failes to load due to javascript error.) – GeoNetwork opensource Developer website; for details.

Now If someone who knowledgeable with all the js include scripts can
identify which prototype.js needs to be removed, we should be all set.

Thanks.

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/GeoNetwork-opensource-Developer-website-996-IE7-Main-page-failes-to-load-due-to-javascript-error-tp4990804p5023378.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers

_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net

GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Simon,

You can download
<http://www.microsoft.com/en-us/download/details.aspx?id=11575&gt; the
Virtual Machine from Microsoft for testing.
If using these VM's then I suggest that you download XPIE6 version and
upgrade to IE7 as it is a lot smaller. I tested with the VistaIE7 but it
took a long time to download. Also if you are using virtualbox, you may need
ensure that the virtual disk are mounted as IDE drives and not SCSI(default)
or it will not work.

I'm OK with waiting until 2.8.1 for the fix - like you said - I would rather
see the 2.8.0 released.

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/GeoNetwork-opensource-Developer-website-996-IE7-Main-page-failes-to-load-due-to-javascript-error-tp4990804p5023469.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

#996: IE7 Main page failes to load due to javascript error.
----------------------------------+-----------------------------------------
Reporter: ianwallen | Owner: geonetwork-devel@…
     Type: defect | Status: new
Priority: blocker | Milestone: v2.8.0
Component: User interface (web) | Version: v2.8.0RC0
Keywords: |
----------------------------------+-----------------------------------------

Comment(by ianwallen):

I uploaded ticket996-header_cleanup.patch as a proposed patch to cleanup
the headers.

Maybe we can apply the patch to the master for testing and later apply it
to the 2.8.1 branch.

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/996#comment:10&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.

#996: IE7 Main page failes to load due to javascript error.
----------------------------------+-----------------------------------------
Reporter: ianwallen | Owner: geonetwork-devel@…
     Type: defect | Status: new
Priority: blocker | Milestone: v2.8.0
Component: User interface (web) | Version: v2.8.0RC0
Keywords: |
----------------------------------+-----------------------------------------

Comment(by josegar74):

Related to this comment:

If I removed the protocol.js call from main-page.xsl it seems to fix the
issue - But comments specify that it was added "To avoid an interaction
with prototype and ExtJs?.Tooltip, should be loadded before ExtJs?"

Anyone know anything about this?

----

This was added when changed Intermap to OpenLayers/GeoExt. I can't
remember exactly the problem, but I think ExtJs tooltips not displayed if
prototype was loaded after ExtJs.

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/996#comment:11&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.

#996: IE7 Main page failes to load due to javascript error.
----------------------------------+-----------------------------------------
Reporter: ianwallen | Owner: geonetwork-devel@…
     Type: defect | Status: new
Priority: blocker | Milestone: v2.8.0
Component: User interface (web) | Version: v2.8.0RC0
Keywords: |
----------------------------------+-----------------------------------------

Comment(by ianwallen):

Commit to master is 09165ed16f5849ba72556cf8edc0d6c85f0329e4

Will let it soak for a little bit - if it does not cause any issues, will
merge the change into the 2.8 branch.

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/996#comment:12&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.

#996: IE7 Main page failes to load due to javascript error.
-----------------------------------+----------------------------------------
  Reporter: ianwallen | Owner: geonetwork-devel@…
      Type: defect | Status: closed
  Priority: blocker | Milestone: v2.8.0
Component: User interface (web) | Version: v2.8.0RC0
Resolution: fixed | Keywords:
-----------------------------------+----------------------------------------
Changes (by ianwallen):

  * status: new => closed
  * resolution: => fixed

Comment:

Fixed in commit 5eb4ef2410a8f3e1545f4ea6f1046b034a4621fe on 2.8 branch

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/996#comment:13&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.

#996: IE7 Main page failes to load due to javascript error.
-----------------------------------+----------------------------------------
  Reporter: ianwallen | Owner: geonetwork-devel@…
      Type: defect | Status: closed
  Priority: blocker | Milestone: v2.8.1
Component: User interface (web) | Version: v2.8.0RC0
Resolution: fixed | Keywords:
-----------------------------------+----------------------------------------
Changes (by ianwallen):

  * milestone: v2.8.0 => v2.8.1

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/996#comment:14&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.