[jQuery] IE7 does not play nice with $.load

2009-10-01 Thread Matt Wilson
It seems like IE7 will not actually make ajax requests unless I use $.ajax({cache:false}). I really like the $.load method though because of how it combines selecting the dom node to update, downloading the page, and then plugging it in. Is there some easy way of forcing IE to make ajax calls?

[jQuery] How to access variables in page loaded with $.load?

2009-09-09 Thread Matt Wilson
I have a page /a that has a line var aaa = 99; And I load that page /a into a div on another page. In the other page, I want access to that variable aaa. I tried this: $(#adiv).load(/a, function () { console.log(aaa); }) I get an error that aaa is undefined. What am I doing wrong?

[jQuery] $.load doesn't trigger $(document).ready, but $.ajax({type:GET, ...} does???

2009-09-09 Thread Matt Wilson
It seems like when I load a page into a div like this, the $ (document).ready code in the loaded page doesn't fire: $(#mydiv).load(/a); But when I do this, the $(document).ready on /a does fire. Is this correct?

[jQuery] validation: how do I make sure a radio button is picked?

2009-09-02 Thread Matt Wilson
I have a list of radio buttons, all with the same name, and each has a different value. I want a validator that tests if one is picked. How do I do this?

[jQuery] Approaching popup callback hell

2009-08-18 Thread Matt Wilson
I'm using a modal dialogs and I love them, but I haven't found a really elegant way to handle actions in the dialog window that require changes to the parent page. Here's an example. I have a monthly calendar page that lists employee names on the days they are supposed to work. Clicking on an

[jQuery] How do I compare two form fields using the form validation plugin?

2009-08-12 Thread Matt Wilson
I have a form with two radio button lists. Each list has the same set of choices. I want to make sure that something is checked in both lists and that the value in the first list is not the value in the second list. I know I could write my own submit handler to do this, but I'd like to work

[jQuery] validation plugin's date method doesn't like mm-dd-yyyy formatted dates

2009-07-14 Thread Matt Wilson
I'm using this validation plugin http://bassistance.de/jquery-plugins/jquery-plugin-validation/ and it is great. However, it rejects dates like 07-14-2009 as invalid. Is there some way to add a list of valid formats? If not, should I write my own method to match that particlar format?

[jQuery] How can I freeze the title row in a table?

2009-04-08 Thread Matt Wilson
I have a table with lots of rows, and when I scroll down, I can't see the row with the column titles. How can I freeze that row in place so I can still see it as I scroll down?

[jQuery] Re: $(document).ready fires before CSS is rendered?

2008-12-31 Thread Matt Wilson
On Dec 30, 9:56 pm, donb falconwatc...@comcast.net wrote: Are your CSS directives declared in the header, or did you put them within the body of the page (where they may be applied later than you wish, or may not be at all).  Are they in a CSS file that isn't being loaded?  (Use Firefox and

[jQuery] $(document).ready fires before CSS is rendered?

2008-12-30 Thread Matt Wilson
I've got some links that only serve as anchors for javascript, so I use CSS to hide them like this: .requiresjavascript { display:none; } and here's the HTML: a class=requiresjavascript clearall href=#Clear all/a a class=requiresjavascript clearall href=#Check all/a The idea is that for

[jQuery] jquery.min.js is 54kb, not 15kb?

2008-12-07 Thread Matt Wilson
The front page of jquery.com says the production version is 15kb, but when I go to the download link, it shows up as 54kb. Is there something special that I need to do to convert that 54kb file into 15kb file?

[jQuery] Can I have multiple $(document).ready() calls in a single page?

2008-08-19 Thread Matt Wilson
I've got a bunch of form widgets (these are server-side widgets) and a lot of them depend on some various jQuery javascript tricks. I would like to be able to do something like this: $(document).ready( function () { set_up_widget_1(); } ); $(document).ready( function () {

[jQuery] Re: thoughts ? Announcing AJAX Libraries API: Speed up your Ajax apps with Google’s infrastructure

2008-06-04 Thread Matt Wilson
I'm trying to use the this, and I used a script tag to load, but then when I tried to use the $(...), it seems to point to something else entirely. The jQuery(...) function still works fine. This is copied from a firebug console: $(div) null jQuery(div) [div#header, div.bottomleft,

[jQuery] How to collect values out of a bunch of input checkboxes?

2008-04-03 Thread Matt Wilson
I have a form with a bunch of checkboxes. They all have the same name and different values. This form posts to a page that does a bunch a stuff based on the checked checkboxes. I want to change the form to use AJAX to update a div on the page. I need help figuring out how to post the form