[jQuery] $(function () {...}, iframe.contentDocument);

2009-11-11 Thread Jack Bates
I want to register a function to run when an iframe finishes loading, or immediately if it's already loaded To achieve this, I tried, $(function () { var iframe = $('').appendTo('body')[0]; $(function () { $('READY!').appendTo('body'); }, iframe.contentDocument); }

[jQuery] url of ajax response?

2009-10-23 Thread Jack Bates
I make a request with jQuery.ajax(), to which the server responds with "302 Found" and a "Location: ..." header A second request to the new URL is then made automatically In my JavaScript, I need to know the new URL, but can't figure out how : ( I don't think I can get the value of the "Locatio

[jQuery] $(':target') and $(location.hash)

2009-09-24 Thread Jack Bates
$(':target') works in Firefox 3.5, but not Firefox 3.0 and some other browsers, http://www.sfu.ca/~jdbates/tmp/qubit/200909231/#aaa ^ in Firefox 3.5, $(':target') selects just the element with id="aaa", so this element appears blue while the other appears red In Firefox 3.0 and some other brows

[jQuery] jQuery.ajax and SpiderMonkey

2009-07-03 Thread Jack Bates
I'm trying to get this script to work with SpiderMonkey, http://www.sfu.ca/~jdbates/tmp/jquery/200907020/sauce It's a port of a script I previously wrote with Python's httplib, but I prefer to use jQuery However it complains when I try to run it, $ ./sauce jquery-1.3.2.min.js:12: ReferenceErr

[jQuery] onbeforeunload

2008-03-04 Thread Jack Bates
Is there any support for the onbeforeunload event in jQuery? I contribute to an open source records management application which employs jQuery. Some of our usability feedback has been that users loose because they don't realize they must submit a form before navigating to another page. Sounds si