[jQuery] Confirming submit using Validate plugin

2008-11-15 Thread flycast
I have a long form where some of the fields are required. The problem is that the user is sometimes getting to the point where they have filled all the required fields in but is not done and then hits enter rather than tab to go to the next field. When they do this the form submits. I want to conf

[jQuery] Re: Confirming submit using Validate plugin

2008-11-16 Thread flycast
That does not work. This is what I have: function confSubmit(form) { if (confirm("Are you sure you want to submit the form?")) { $("#employmentForm").submit(); }else{ return false; } }//End of confSubmit function The form validates and submits anyway. Notice in the title I indicate that I

[jQuery] Re: Confirming submit using Validate plugin

2008-11-16 Thread flycast
I do not want to post a page publicly. The code is very long.

[jQuery] Re: Confirming submit using Validate plugin

2008-11-16 Thread flycast
Here is the JS code. I have removed a bunch of Validation rules to shorten it up. The code at the bottom is the problem. $(document).ready(function(){ $("#employmentForm").validate({ debug: false, rules: { emp_applicationDate: {

[jQuery] Re: Confirming submit using Validate plugin

2008-11-16 Thread flycast
Here is the code. I have removed a bunch of Validation rules to make it shorter. The problem code is at the bottom. $(document).ready(function(){ $("#testForm").validate({ debug: false, rules: { emp_applicationDate: {

[jQuery] Re: Confirming submit using Validate plugin

2008-11-16 Thread flycast
Thanks! I am having a hard time getting my form to validate now. Would I place my rules here? $(...).validate({ submitHandler: function(form) { if (confirm("Really?")) { rules... messages... etc... form.submit(); }else{ //stuff to do if the form does not validate

[jQuery] is not a valid function

2008-11-20 Thread flycast
This code works if I just have the alert("Hello"); but take out the $ ("a").hide("slow"); The code bombs when it hits any jQuery code inside the document ready. The script loads when I go the that address alone and it is clear that the document ready function is working. Any ideas? http://www.dom

[jQuery] Re: is not a valid function

2008-11-21 Thread flycast
I am sure that I will be embarrassed by what the problem turns out to be but does anybody have any ideas here? I'm still stuck.

[jQuery] Re: is not a valid function

2008-11-22 Thread flycast
Answer: This site is hosted at GoDaddy.com - NOT by my choice! The DNS is hosted outside GoDaddy. If the A record is not pointed to GoDaddy then GoDaddy uses something they call previewdns.com. Previewdns.com adds stylesheets, html and js code to the end of the source code of every page that gets

[jQuery] Executing multiple actions on the same selection

2008-11-28 Thread flycast
In some other languages I have had experience with one can use the following pattern... object [ .doThis() .andThis() .andAlsoThis() ] Is there a way to do this with jQuery? $(a){ .hide(); .addClass(); } ***Instead of *** $(a).hide(); $(a).addClass();

[jQuery] Problem with prev() in IE

2008-11-29 Thread flycast
This code works fine in FF and Safari but (surprise, surprise) not in IE6. $("#LHNav ul").prev('li').each(function(){ alert("Loop"); }); I have narrowed it down to giving prev() some value to filter by. IF I try it like this: (notice the missing "li") $("#LHNav ul").prev().each(function(){ aler

[jQuery] Re: Problem with prev() in IE

2008-11-29 Thread flycast
ge- > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On > > Behalf Of flycast > Sent: Saturday, November 29, 2008 3:57 PM > To: jQuery (English) > Subject: [jQuery] Problem with prev() in IE > > This code works fine in FF and Safari but (surprise, surprise) no

[jQuery] Re: Problem with prev() in IE

2008-11-30 Thread flycast
K > > P.S. IMO, the really odd thing is why FF worked when I believe it should > have returned an empty set.  Anyone else have any ideas? > > -Original Message- > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On > > Behalf Of flycast

[jQuery] Re: Problem with prev() in IE

2008-11-30 Thread flycast
By the way...the documentation says that you can add any string expressing to filter a prev() and next() statement with all browsers (not just FF and Safari) should return a filtered result.

[jQuery] Re: Problem with prev() in IE

2008-12-01 Thread flycast
lt;-- UL >          History >           > > These are the elements you are getting with a $('ul').prev() > > There ARE no LI siblings just before a UL. > > So which elements are you actually trying to get? > JK > > -Original Message- > Fr

[jQuery] Font size in sifr plugin

2008-12-15 Thread flycast
I am trying to get the sifr plugin working. It seems to be working except that I cannot get the size of the font to change except by using zoom. I have the Gunmetal swf file specified and the font is changing to the Gunmetal font. I have tried setting the height using style in the tag and using a

[jQuery] Re: Font size in sifr plugin

2008-12-15 Thread flycast
about 12px. I can get it working but the size is messed up. On Dec 15, 10:36 am, banalitis wrote: > Have you given line-height alongside font-size a go? > > On 15 Dec, 16:25, flycast wrote: > > > I am trying to get the sifr plugin working. It seems to be working > > except

[jQuery] Making an AJAX hide and show smoothly

2008-12-17 Thread flycast
I am getting some data on a FAQ page using $.post The problem is that when the server returns the data too fast (most of the time) the images barely gets time to display and the whole thing looks very choppy. What I want to do is have the image slideDown smoothly, display for a certain minimum tim

[jQuery] Re: Making an AJAX hide and show smoothly

2008-12-17 Thread flycast
ime = (timeDiff > 1000) ? 0 : timeDiff; // max 1s >                 seTimeout(function(){ //delay it by the difference to > 1s >                     $answer.hide('slow'); >                     $answer.html(''+data+''); >                     $answer.slideDown('slow

[jQuery] Re: Font size in sifr plugin

2008-12-18 Thread flycast
e > font size right. > > On Dec 15, 5:43 pm, flycast wrote: > > > Yes. I have also copied the examples at the bottom of this > > page:http://jquery.thewikies.com/sifr/#description > > > And they work except that the resulting swf ends up being very small. > > Th

[jQuery] slideDown/slideUp with media

2009-01-03 Thread flycast
I have a page that I am trying to slideDown and slideUp with a Windows Media Player object playing. IT works fine in Firefox but not in IE6. In IE6 when it slides up you can see the containing div slide up but the player keeps playing. The idea here is to only load and play the video being asked

[jQuery] slideDown content disappearing in IE7

2009-03-13 Thread flycast
My content in my slideDown is disappearing after the slideDown is complete. I have tried: zoom:1; - this make the h4's display inline. zoom:1; display: block; - this makes them disappear min-height: 1% - they disappear The page can be found here: http://www.trinityacademy.org/summer-session

[jQuery] Re: slideDown content disappearing in IE7

2009-03-14 Thread flycast
Sorry. I am actually using the ".toggle()" -- View this message in context: http://www.nabble.com/slideDown-content-disappearing-in-IE7-tp22507968s27240p22512801.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.

[jQuery] [validate] rules question

2008-08-30 Thread flycast
I am missing where the documentation specifies what kind of rules can be used. I have found: required: true minlength: 2 but what ifr I need to filter a social security number and want to require that it have numbers or letters in specific places? Example: 999-99- -or- phone number: 999-9

[jQuery] Re: rules question

2008-08-31 Thread flycast
Perfect, thanks.

[jQuery] More detail needed on web forms - design pattern

2008-08-31 Thread flycast
I have been working in this for a while. When I build a web form there is typically numerous times when you ask a question like: Have you had any speeding tickets in the last three years? Yes No If yes, please give the details here. This kind of question pattern (ask a question, if answer is yes

[jQuery] Validation class question

2008-09-13 Thread flycast
I am using the validate plugin. I have the following input that is required: Last: When the field is satisfied I want the required class to be changed to "satisfied" class so I can make it display differently. If the field is required then I want itr displayed red, if it has met the validate r

[jQuery] Find all tags without an tag inside

2008-09-27 Thread flycast
I am stumped. I have nested unordered lists. I want to attach a click event to all the list items that do not directly contain an tag. Attach a click event to: List item without link Do not attach click event to: Link 1 I have this code which attaches the event to both types of tags: $("#LH

[jQuery] Re: Find all tags without an tag inside

2008-09-28 Thread flycast
Perfect BB. Thanks to all for responding, It was very helpful. On Sep 28, 7:38 am, BB <[EMAIL PROTECTED]> wrote: > $("li:not(:has(a))").click( ... ); > > would be the shortest! > > On 28 Sep., 05:06, Dave Methvin <[EMAIL PROTECTED]> wrote: > > > > Attach a click event to: > > > List item without

[jQuery] Works in FF but not in IE6

2008-09-28 Thread flycast
The following code works completly in FF but only partially works in IE6. The following line executes fine:$("#LHNav ul").hide(); but the next line: does not. $("#LHNav li:not(:has(a))").css('color','red').css('cursor','pointer').bind("click", function(){ showHideMenus(this); });

[jQuery] Re: Find all tags without an tag inside

2008-09-29 Thread flycast
The following code works completly in FF but only partially works in IE6. The following line executes fine:$("#LHNav ul").hide(); but the next line: does not. $("#LHNav li:not(:has(a))").css('color','red').css('cursor','pointer').bind("click", function(){ showHideMenus(this); });

[jQuery] Re: Find all tags without an tag inside

2008-09-29 Thread flycast
The line: $("#LHNav ul").hide(); Is working in both FF and IE. The next line: $("#LHNav li:not(:has(a))").css('color','red').css('cursor','pointer').bind("click", function(){ showHideMenus(this); }); does not work in IE. I changed the line that does not work in IE to: $("#LHNav li

[jQuery] Check to make sure checkbox is checked using validator

2008-10-18 Thread flycast
My code: Do you agree to the terms above? Yes No I want to require that the checkbox with the value of "Yes" is checked before the form will submit. How is this done?

[jQuery] slideToggle content disappears in IE

2008-10-21 Thread flycast
I have this page at: http://www.hopecc.net/ministries/adult I use slideToggles to show and hide somecontent. The problem is that in IE only any content that is inside tags display properly while the slide is happening but when the slide completes the content disappears. It works fine in FF and S

[jQuery] Problem with post not displaying in IE - FF works

2008-06-29 Thread flycast
First of all - I'm a 1st timer on Javascript and jquery so...please give me a little grace on my poor js skills. I have the following setup that is working fine in FF. The problem is in IE with the post in the getData function. In both IE and FF I get the alert that contains the data (just to deb

[jQuery] Re: Problem with .load

2008-07-02 Thread flycast
Wow, have I learned something here! The problem was not jQuery, the problem was that the page that was feeding the load had a couple of extra closing tags in the html. The browsers were choking on the extra closing tags. The thing that made it so hard to catch was when I would alert the data that

[jQuery] Cross domain problems

2008-07-08 Thread flycast
Simple problem (I think)... I am new to JS and ajax. I am building an ajax capability on a clients site. I am running into cross domain problems. If I get the page using the url form http://www.site.com but I do a load using the url form "http://site.com"; (www vs. no www in the url) I get nothi

[jQuery] Re: Cross domain problems

2008-07-09 Thread flycast
te > this:http://blog.alexsandro.com.br/application/load/feedproxy.feedburner.c... > > -- > Alexsandrowww.alexsandro.com.br > > On 9 jul, 00:18, "Erik Beeson" <[EMAIL PROTECTED]> wrote: > > > Add this somewhere in your javascript: > > > document.domain = 'site.com'; > > &g

[jQuery] Re: Cross domain problems

2008-07-09 Thread flycast
erent, document.domain *must* be set to the SLD. > > I'm certain that this can work as I do it all the time. If you're > still having trouble, could you create a page that demonstrates the > problem? > > --Erik > > [1]http://en.wikipedia.org/wiki/Second-level_domain

[jQuery] Controlling vidoe - Windows Media Player

2008-07-12 Thread flycast
I am toying with using jquery to display media. I have successfully used it to slideDown a div and show the tag contained within the div. I have a couple of problems. 1) When the video is finished it just sits there. I would like it to slide back up and disappear. Is there a way to tell when th