Re: [jQuery] (validate)

2009-11-21 Thread Tsz Ming WONG
On Sun, Nov 22, 2009 at 11:21 AM, Enoch wrote:

[jQuery] Re: How to get Drop Down List Item's length??

2009-08-12 Thread Ming
Thank you!

[jQuery] How to get Drop Down List Item's length??

2009-08-11 Thread Ming
I have a DropDownList (id: DropDownList1), i want to get the items length by Jquery, but it not work, always return 0. My temporary solution is using classic javascript to do it, below is the code. $(document).ready(function() { //method 1: var items = $("#DropDownList1 options

[jQuery] How to access the member of $.each() when Key has space?

2009-08-11 Thread Ming
I using JQuery to call back asp.net web service, The web service is simple, only query from SQL Server and return result as JSON. everythings is cool. Only problem is the key of dictionary after Deserialization by eval() method,It cannot access. For example: $.each(eval(response),function(key,

[jQuery] Re: How to bind a function to all elements?

2007-08-01 Thread Tsz Ming WONG
should be something like that... jQuery(document).ready( function() { jQuery("*").css("border", "1px solid red"); } ); On 8/2/07, barnezz <[EMAIL PROTECTED]> wrote: > > > Hello > > I need to bind an hover function on every element of my page... > > but it doesn't work :-( > > var allz=docum

[jQuery] Re: Compressed validator failing in IE 6.0

2007-06-02 Thread Tsz Ming WONG
in line 1077, add backslash to those slashes, then `pack` again e.g. dateISO: function(value, element) { return !jQuery.validator.methods.required(value, element) || /^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(value); }, then it passed all the

[jQuery] Re: Validation plugin can't work with IE7?

2007-06-01 Thread Tsz Ming WONG
Yes, the current compressed version (using packer) of validate plugin has problem with IE (simply not working), I can't say this is a bug (as non-compressed one works), but the author's writing style might not be too compatible with those compressors. so, you can use the non-compressed one, or t

[jQuery] Re: jQuery include plugin

2007-04-26 Thread Tsz Ming WONG
Hello, If you want to extend your plugin, you might find dojo's implementation is a very good reference: dojo.hostenv.loadUri: Loads JavaScript from a URI and don't forget dj_global.eval() as Christof explained. all from: http://dojotoolkit.org/api -- Best Regards, tszming On 4/26/07, pdp