Skip to main content

Bug Tracker

Side navigation

#7688 closed bug (invalid)

Opened December 03, 2010 07:22AM UTC

Closed December 03, 2010 05:15PM UTC

WinXP Firefox 3.6.12 - $(document).ready() fires before the document scripts

Reported by: iva2k@yahoo.com Owned by: iva2k@yahoo.com
Priority: undecided Milestone: 1.6
Component: unfiled Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:
Description

I have Drupal 6.19 with jquery_update.module (it loads "jQuery JavaScript Library v1.3.2").

There is some Drupal.behaviors javascript code in <head> scripts loaded on some forms. Drupal invokes behaviors in drupal.js on $document.ready().

Code works OK when GET'ing the form.

When submitting (POST), document.ready fires before all the scripts in <head> are loaded, and code does not get executed.

Same code works fine in Chrome (both GET and POST).

Attachments (0)
Change History (3)

Changed December 03, 2010 08:04AM UTC by ajpiano comment:1

owner: → iva2k@yahoo.com
status: newpending

Thanks for your time and interest in helping the jQuery project. We require that all bugs include a valid test case exhibiting the behaviour on http://jsfiddle.net or another live example of the code failing. If you can provide a testcase, we will be happy to investigate this issue further.

Changed December 03, 2010 05:11PM UTC by anonymous comment:2

I've created testcase - http://fiddle.jshell.net/iva2k/wekJ5/show/light/

Javascript opens Alert "I'm working!" each time you load the page and submit (click "Free Sign Up" button).

While playing with it, I realized that the reported issue only happens while FireBug is open. If I close the FireBug, the problem is gone. Try it with FireBug and click the button. - the alert is missing!

Changed December 03, 2010 05:15PM UTC by rwaldron comment:3

resolution: → invalid
status: pendingclosed