causes javascript to hang in IE

jeff h - May 17, 2008 - 00:15
Project:Google Client Geocoder
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active
Description

When using this module, Internet Explorer (6, haven't tried 7) gives the following error:

A script on this page is causing Internet Explorer to run slowly. If it continues to run, your computer may become unresponsive.

Do you want to abort the script?

If I click no, Internet Explorer hangs completely. If I click yes, then the GCG search button doesn't work, nor does the map show (in its place it says "Loading").

#1

dgtlmoon - May 17, 2008 - 03:06

Confirmed, it's hanging in gcg.js

Gcg.jsGC = function (input, base) {^M
...
  for (i in Gcg.resultFields) {^M
    // the following line is causing it to hang.
    this.defaultValues[Gcg.resultFields[i]] = $(this.base + '-' + Gcg.resultFields[i]).get(0).value;^M
  }^M
...

You can comment out that line and it seems to work, except it hangs again when you click "Search" after you type in a location

Search hangs in this function, not sure if its hanging in getLocations or Gcg.parseResponse.. IE is such paaaaaaaaaain

Gcg.jsGC.prototype.onclick = function () {^M
  if (this.input.value.length > 0) {^M
    this.populatePopup();^M
    Gcg.popupOwner = this;^M
    Gcg.geocoder.getLocations(this.input.value, Gcg.parseResponse);^M
  }^M
  return true;^M
}^M

This is using the jQuery library from jquery_update 5.x-1.0

have tried with current devel jquery update and i get a seperate set of errors

http://ftp.drupal.org/files/projects/jquery_update-5.x-2.x-dev.tar.gz

IE5 and 5.5 also fails

#2

dgtlmoon - May 17, 2008 - 03:06
Priority:normal» critical

tagging as critical

#3

VlooiVlerke - May 17, 2008 - 08:10

IE7 works fine! also on the Vista version. Firefox is the best.

#4

dgtlmoon - May 19, 2008 - 00:07

Ahh i am getting thsi on IE5, 5.5 and 6 havent tried 7

yes firefox is the best :)

#5

brianV - July 16, 2008 - 14:41

Perhaps this issue is tied to http://drupal.org/node/242003?

#6

giorgio79 - July 17, 2008 - 15:26

Are there any solutions guys?

It seems I am getting this with any type of jquery update be it 1-x or 2-x

 
 

Drupal is a registered trademark of Dries Buytaert.