Re: [jQuery] Anybody able to successfully run Validation plugin on IE 7?
Anybody able to successfully run Validation plugin on IE 7?Hi Rick, All I can think of is, make sure your selectors are selecting something. You can do this by interspersing alert methods just after you do your selectors. For example, $(input.myclass).each(function() { alert(this); $(this).dosomething(); }); This will tell you exactly what is being selected, as an alert window will pop up telling you what this is. The reason I think it might be that, is because Firebug won't throw any errors if your selectors are empty, and at the same time, your validation can only work if the proper fields are selected. -- Josh - Original Message - From: Rick Faircloth To: 'jQuery Discussion.' Sent: Wednesday, March 07, 2007 11:32 AM Subject: [jQuery] Anybody able to successfully run Validation plugin on IE 7? Hi, all. I've been trying to get Jorn's (bassistance.de) Validation plugin working correctly for 3 days now. Firebug doesn't complain of any errors. The new beta 1 doesn't work for me in FF or IE. Jorn's examples run fine. But there don't seem to be any errors in my code. Anybody using it successfully? Thanks. Rick -- ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Anybody able to successfully run Validation plugin on IE 7?
Have you tried setting breakpoints and viewing your error container in the dom to see if anything is happening? Rick Faircloth wrote: Hi, all. I've been trying to get Jorn's (bassistance.de) Validation plugin working correctly for 3 days now. Firebug doesn't complain of any errors. The new beta 1 doesn't work for me in FF or IE. Jorn's examples run fine. But there don't seem to be any errors in my code. Anybody using it successfully? Thanks. Rick ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/Anybody-able-to-successfully-run-Validation-plugin-on-IE-7--tf3364447.html#a9361010 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Anybody able to successfully run Validation plugin on IE 7?
To test selectors you can also drop $(input.myclass) into the firebug console and it will show you what it found. console.log($(input.myclass)); inside your code does the same thing - great for complex anonymous functions. Josh Nathanson-2 wrote: Anybody able to successfully run Validation plugin on IE 7?Hi Rick, All I can think of is, make sure your selectors are selecting something. You can do this by interspersing alert methods just after you do your selectors. For example, $(input.myclass).each(function() { alert(this); $(this).dosomething(); }); This will tell you exactly what is being selected, as an alert window will pop up telling you what this is. The reason I think it might be that, is because Firebug won't throw any errors if your selectors are empty, and at the same time, your validation can only work if the proper fields are selected. -- Josh - Original Message - From: Rick Faircloth To: 'jQuery Discussion.' Sent: Wednesday, March 07, 2007 11:32 AM Subject: [jQuery] Anybody able to successfully run Validation plugin on IE 7? Hi, all. I've been trying to get Jorn's (bassistance.de) Validation plugin working correctly for 3 days now. Firebug doesn't complain of any errors. The new beta 1 doesn't work for me in FF or IE. Jorn's examples run fine. But there don't seem to be any errors in my code. Anybody using it successfully? Thanks. Rick -- ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/Anybody-able-to-successfully-run-Validation-plugin-on-IE-7--tf3364447.html#a9361030 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Anybody able to successfully run Validation plugin on IE 7?
Josh Nathanson schrieb: Hi Rick, All I can think of is, make sure your selectors are selecting something. You can do this by interspersing alert methods just after you do your selectors. For example, $(input.myclass).each(function() { alert(this); $(this).dosomething(); }); This will tell you exactly what is being selected, as an alert window will pop up telling you what this is. If you're already using Firebug, you could also log the elements to the console, so you can better inspect them and have them highlighted in the page and so on...: $(input.myclass).each(function() { console.log(this); }); alert is so 2005 ;-) -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Anybody able to successfully run Validation plugin on IE 7?
To test selectors you can also drop $(input.myclass) into the firebug console and it will show you what it found. console.log($(input.myclass)); inside your code does the same thing - great for complex anonymous functions. Thanks Daemach, good info. -- Josh ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Anybody able to successfully run Validation plugin on IE 7?
Rick Faircloth schrieb: Hi, all… I’ve been trying to get Jorn’s (bassistance.de) Validation plugin working correctly for 3 days now… Firebug doesn’t complain of any errors. The new beta 1 doesn’t work for me in FF or IE. Jorn’s examples run fine. But there don’t seem to be any errors in my code. Anybody using it successfully? When you use Firebug to debug the validation, try starting with a breakpoint in the validator's form method (around line 350). Skip over the loop at first and inspect this: Check the errorList property: Is it empty? Then the validator didn't find any validation rules or it didn't find any invalid elements. Check the element property: Empty? No elements found in the form (very unlikely). If that doesn't help, reload the page, and run the validation again. Go into each call of check(element). Stop after the line calling rules(). The local variable rules should now contain the rules found for the current element. If it is empty, there are either no rules defined for that object, or something went wrong. I spent a lot of time refactoring the validator's code, I hope it is readable enough so you don't get totally lost while debugging. -- Jörn Zaefferer http://bassistance.de ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/