[jQuery] Jquery Validation Email issue (validate)

2010-02-26 Thread MrChambers
It seems to be normal behaviour, but when using jquery's validate
plugin my client was not happy the a single domain suffix character
was enough to clear the valid email error. ie; tes...@googlemail.c
would validate.

To ensure that at least 2 characters had to be entered into the field
to validate I changed the email function to the following;

email: function(value, element) {
// contributed by Scott Gonzalez: 
http://projects.scottsplayground.com/email_address_validation/
return this.optional(element) || 
/^((([a-z]|\d|[!#\$%'\*\+\-\/=\?
\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\
$%'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])
+)*)|((\x22)\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b
\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-
\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF
\uF900-\uFDCF\uFDF0-\uFFEF]*(((\x20|\x09)*(\x0d\x0a))?(\x20|
\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-
\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|
\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|
[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]{2}|[\u00A0-
\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF
\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-
\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/
i.test(value);
},

I'm no expert at regex but this worked for me.

Thanks,
Matt


[jQuery] Re: How to check TD background image has been loaded.

2010-02-26 Thread jscharf
2 possibilities:

via attribute:
$(#mytd).attr(background, path/to/image.jpg);

or via CSS
$(#mytd).css(background-image, path/to/image.jpg);

that should work fine for your needs (make sure the paths are correct)


Re: [jQuery] Re: How to check TD background image has been loaded.

2010-02-26 Thread Liam Byrne

That won't trigger a load event

This is as close as you'll get (using an image object to actually load 
it, and then using it.


var imageObj = new Image();
$(imageObj).attr(src,imagePath).load(function(){
// do whatever else you want to do in here too

$(#leftCol).css(background-image,url(+imagePath+));});

Liam



jscharf wrote:

2 possibilities:

via attribute:
$(#mytd).attr(background, path/to/image.jpg);

or via CSS
$(#mytd).css(background-image, path/to/image.jpg);

that should work fine for your needs (make sure the paths are correct)



No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 9.0.733 / Virus Database: 271.1.1/2709 - Release Date: 02/25/10 07:34:00


  




Re: [jQuery] Re: FOUND THE SOLUTION FOR ROUNDIES FOR IE8 !!!!!!

2010-02-26 Thread Cesar Sanz

this IS interesting!!
Some geeks works fine!

- Original Message - 
From: Vikas Patidar vikaspatel.25111...@gmail.com

To: jquery-en@googlegroups.com
Sent: Thursday, February 25, 2010 2:51 PM
Subject: Re: [jQuery] Re: FOUND THE SOLUTION FOR ROUNDIES FOR IE8 !!



Hi, there is another solution more easy and cool

try it...

CSS Rounded Corners In All Browsers (With No Images)

http://jonraasch.com/blog/css-rounded-corners-in-all-browsers


On 2/25/10, Cesar Sanz the.email.tr...@gmail.com wrote:

thanks..

First time I heard about it.. .cool stuff!
- Original Message -
From: Erik eriks...@mac.com
To: jQuery (English) jquery-en@googlegroups.com
Sent: Wednesday, February 24, 2010 6:32 PM
Subject: [jQuery] Re: FOUND THE SOLUTION FOR ROUNDIES FOR IE8 !!


http://www.dillerdesign.com/experiment/DD_roundies/

On Feb 23, 3:09 pm, Cesar Sanz the.email.tr...@gmail.com wrote:

What are roundies?



- Original Message -
From: Erik eriks...@mac.com
To: jQuery (English) jquery-en@googlegroups.com
Sent: Tuesday, February 23, 2010 10:50 AM
Subject: [jQuery] Re: FOUND THE SOLUTION FOR ROUNDIES FOR IE8 !!

 Use the ROUNDIES script for IE7, which is really easy. I personally
 don't care for IE8 so I convert IE8 to work like IE7 by placing the
 following tag under the head:

 meta content=IE=7 http-equiv=X-UA-Compatible




[jQuery] superfish joomla

2010-02-26 Thread Eddie
Hello all at jquery group, superfish menu in joomla works fantastic
but it gives an error in IE8 and my client hates it! the done, but
with errors this is the errordoes anyone know how to fix it!!
Best,
Chris



Message: Object doesn't support this property or method
Line: 48
Char: 35
Code: 0
URI: http://www.rallybrc.co.uk/


this is the code around line 48:

jQuery.noConflict();
jQuery(function($){ $(ul.sf-menu).superfish({hoverClass:'sfHover',
pathClass:'active', pathLevels:0, delay:800, animation:
{opacity:'show'}, speed:'def', autoArrows:0, dropShadows:1}) });
jQuery(window).load( function() { jQuery(ul.sf-
menu).superfish_width_mod({ vertical:0, menuWidth:'100%', equalWidth:
0, resizeSeps:0, resizeSubMenus:0 }) })
jQuery.event.special.hover.delay = 100;
jQuery.event.special.hover.speed = 100;

  /script




[jQuery] Accordion help ....

2010-02-26 Thread Erik
Hi all,

Just joined this new forum.

My accordion is working great, but I need to STOP the hover on the
selected item.

Example, when I select BATH  BODY, I want the hover stop for that
particular section:


div class=subcatbath amp; body/div


I'm using the following ACCORDION script:

$(function() {
  $(#accordion).accordion({
autoHeight: true,
header: '.subcat'
  });


LINK: www.naturalskin.com

On the left side of the web page.


Thank you.

Erik


Re: [jQuery] Accordion help ....

2010-02-26 Thread Nathan Klatt
On Fri, Feb 26, 2010 at 3:12 PM, Erik eriks...@mac.com wrote:
 My accordion is working great, but I need to STOP the hover on the
 selected item.

You should be able to deactivate the hover for .ui-state-active elements.

Nathan