[jQuery] Problem with keyup event from Learning jQuery 1.3

2009-05-08 Thread EricC
Hi I am currently learning jQuery from the book Learning jQuery 1.3 and I have run across a block of code that is not working for me in FF or Safari. Here it is copied straight from the book (page 64) $(document).ready(function() { $(document).keyup(function(event) { switch (String.fromCharCode(e

[jQuery] Re: Opening a div causes jump to top of page

2009-01-29 Thread EricC
Thank you Rick, Brian and Mauricio, the return false line fixed it right up! Cheers.

[jQuery] Re: Opening a div causes jump to top of page

2009-01-29 Thread EricC
> Try: > $('.morePhotos').click (function(event) { > event.preventDefault; > $(this).parents().find('.pPictureStrip').toggle(); > > }); Thank you for the suggestion however it did not seem to work...

[jQuery] Opening a div causes jump to top of page

2009-01-29 Thread EricC
Hi, I have a page that opens some divs based on user feedback (try the more photos links please). If you happen to be scrolled down the page and you toggle something open the browser pops to the top, thus closing the new div. Example: http://rtrservices.com/equipment.php?page=test Code:

[jQuery] Re: Accessing items inside of (this)

2009-01-05 Thread EricC
Thank you, worked well.

[jQuery] Accessing items inside of (this)

2009-01-05 Thread EricC
I am not sure if I am going about this is the best way but I have a div with 8 divs inside of it. 2 always show and I would like the other 6 to come on only when the parent div is rolled over. Here is what I a have so far: $(function() { /* hide items to be shown only when hovered over */

[jQuery] Accessing items inside of (this)

2009-01-05 Thread EricC
I am not sure if I am going about this is the best way but I have a div with 8 divs inside of it. 2 always show and I would like the other 6 to come on only when the parent div is rolled over. Here is what I a have so far: $(function() { /* hide items to be shown only when hovered over */

[jQuery] Re: Can jquery change the period in an OL to a hypen?

2008-05-17 Thread EricC
Thank you so much for this example. It works quite well on the content of the but it does not modify the behavior of the meaning that period stays. Ah well I thought it was a long shot, I guess I am going with a table, lol.

[jQuery] Can jquery change the period in an OL to a hypen?

2008-05-17 Thread EricC
So the title says it all pretty much. I have a design and I need to have some running numbers along the side of a list. An ol would be perfect and it is rendering: 1998. Item 1 1999. Item 2 To match the designs I need it to be: 1998 - Item 1 1999 - Item 2 I could just make a table but it would

[jQuery] Re: Masked Input Optional Characters

2008-01-29 Thread EricC
Well, the whole idea of masking the input is to validate it. If you want your user to be able to input 9_ and 09 and _9 and have them all be valid, then you probably should use server side validation, or maybe the validation plug-in. Really, though, what you want to be accepted in the field isn

[jQuery] Re: Masked input plugin for hour

2008-01-23 Thread EricC
$.mask.addPlaceholder('~',"[0,1,3,4]"); $.mask.addPlaceholder('!',"[0,5]"); $("#quarterhour").mask("~!"); This won't stop you user from putting in 05,10,35,40 but you can put in a callback function to test for those: $("#quarterhour").mask("~!", {completed:function(){switch (this.val) {case "05

[jQuery] Re: Ajax link in docs for 1.2 crashes IE6

2007-09-14 Thread EricC
This is a serious bug, guys. I can't even look at the jquery Ajax documentation in IE6. Does anyone else have this problem? On Sep 11, 9:58 pm, Eric Crull <[EMAIL PROTECTED]> wrote: > Going through the Jquery 1.2 release notes using IE6 I couldn't even > access the page on Ajax. Everytime I cl

[jQuery] Re: Ajax link in docs for 1.2 crashes IE6

2007-09-14 Thread EricC
ANd now it's working, so never mind I guess... On Sep 11, 9:58 pm, Eric Crull <[EMAIL PROTECTED]> wrote: > Going through the Jquery 1.2 release notes using IE6 I couldn't even > access the page on Ajax. Everytime I clicked the Ajax Link, the > browser folded like a house of cards. > > A second p

[jQuery] Re: Ajax link in docs for 1.2 crashes IE6

2007-09-14 Thread EricC
here is the link: http://docs.jquery.com/Ajax On Sep 11, 9:58 pm, Eric Crull <[EMAIL PROTECTED]> wrote: > Going through the Jquery 1.2 release notes using IE6 I couldn't even > access the page on Ajax. Everytime I clicked the Ajax Link, the > browser folded like a house of cards. > > A second p