[jQuery] Wrapping non empty text node with span

2009-01-16 Thread Jacky
); } } }); I wonder if there is any simpler way to do this? -- Best Regards, Jacky 網絡暴民 http://jacky.seezone.net

[jQuery] Mousemove for simple signature panel

2008-09-22 Thread Jacky
Regards, Jacky 網絡暴民 http://jacky.seezone.net

[jQuery] jQuery validation use different event for differernt input

2008-09-17 Thread Jacky
, Jacky 網絡暴民 http://jacky.seezone.net

[jQuery] Prevent IE Cross Page Leak

2008-09-04 Thread Jacky
case is quite serious. I have a page with some modals displaying some small search box the ajax way. Whenever a modal is displayed, about 10MB of memory is consumed and it never returns. -- Best Regards, Jacky 網絡暴民 http://jacky.seezone.net

[jQuery] Re: Focus First 'visible' field

2008-04-22 Thread Jacky See
: $(:text:visible:enabled).filter(function(){ return $(this).filter(function(){ this.style.display == none; }).size()==0; }).eq(0).focus(); On 4月17日, 下午9時40分, Jacky [EMAIL PROTECTED] wrote: To work on any type of input should be easy, just replace ':text' with input. I know that IE

[jQuery] Re: Focus First 'visible' field

2008-04-22 Thread Jacky
).focus(); That is: Select all visible inputs elements, filter out any who have parents which are hidden, select the first one of those that remain, focus it. --Erik 2008/4/21 Jacky See [EMAIL PROTECTED]: Someone found that this method does not handle visibility correctly. When

[jQuery] [jqModal] IE keep loading after opening a modal

2008-04-21 Thread Jacky
-status-bar-keeps-loading-in.html -- Best Regards, Jacky 網絡暴民 http://jacky.seezone.net

[jQuery] Re: Focus First 'visible' field

2008-04-17 Thread Jacky
anything to do with my markup? I didnt get that error on your demo, but i did when I applied your code to my form. On Apr 13, 7:54 am, Jacky See [EMAIL PROTECTED] wrote: Hi all, For focusing first input text field, the usual solution is $ (':text:visible:enabled:eq(0)').focus(). However

[jQuery] Re: [Validation]How to make two field check output one message?

2008-04-17 Thread Jacky
, 2008 at 4:20 AM, Jörn Zaefferer [EMAIL PROTECTED] wrote: Jacky schrieb: I'm thinking if I can do this: rules:{ planFromDate: {dateRange:'plan'}, planToDate: {dateRange:'plan'} actualFromDate: {dateRange:'actual'}, actualToDate: {dateRange:'actual'} } groups

[jQuery] [Validation] Validate differently based on different action

2008-04-17 Thread Jacky See
Hi all, I think this is a rather rare situation but it happens in our apps all the time. The layout is like --- Search Result table tr [checkbox] status [input text] [input text] [textarea] /tr /table [Delete button] [Reject Button] [Update Button] There are different case of

[jQuery] Focus First 'visible' field

2008-04-13 Thread Jacky See
Hi all, For focusing first input text field, the usual solution is $ (':text:visible:enabled:eq(0)').focus(). However, when these fields are in an ':hidden' parent (not 'visible' by our eyes), it won't work. Currently I tried to solve this by: $(:text:visible:enabled).filter(function(){

[jQuery] Re: [Validation]How to make two field check output one message?

2008-04-13 Thread Jacky
; return from to new Date(from) new Date(to); },'wrong date range'); But it seems that it will only output single message. On Mon, Apr 14, 2008 at 1:07 AM, Jörn Zaefferer [EMAIL PROTECTED] wrote: Jacky See schrieb: I have put up a page to test. http://www.seezone.net/dev

[jQuery] Re: [Validation]How to make two field check output one message?

2008-04-12 Thread Jacky See
I have put up a page to test. http://www.seezone.net/dev/dateValiation.html I need to use different method for different group of dates. In that case, a global dateRange method seems not possible? On 4月11日, 上午6時03分, Jörn Zaefferer [EMAIL PROTECTED] wrote: Jacky See schrieb: Hi, Some

[jQuery] Re: How to get a 'fresh' ui datepicker date?

2008-04-11 Thread Jacky See
(options); } On 4月11日, 上午3時14分, Jacky See [EMAIL PROTECTED] wrote: I have found some wicked way to do it. This is the code where I'm writing a plugin to accept date range pair and auto-init them. //Assuming from/to date have same prefix id (e.g. #eventFromDate, #eventToDate

[jQuery] [Validation]How to make two field check output one message?

2008-04-10 Thread Jacky See
Hi, Some question on the config of validation plugins. Suppose there are #fromDate and #toDate fields (using ui.datepicker). I have added these custom rules jQuery.validator.addMethod(afterFromDate ,function(value, element, targetId){ var

[jQuery] How to get a 'fresh' ui datepicker date?

2008-04-10 Thread Jacky See
Dear all, This is about the ui datepicker. I have an input field with a datepicker, using image as trigger. The field is not read only, user are allowed to input by keyboard. The problem is that when user type some invalid input like '33' the $('#input').datepicker('getdate'), will still

[jQuery] Re: How to get a 'fresh' ui datepicker date?

2008-04-10 Thread Jacky See
09分, Jacky See [EMAIL PROTECTED] wrote: Dear all, This is about the ui datepicker. I have an input field with a datepicker, using image as trigger. The field is not read only, user are allowed to input by keyboard. The problem is that when user type some invalid input like '33

[jQuery] Validation Plugins: how to add global error

2008-03-26 Thread Jacky
in the option. I realize one of the way is to use submitHandler as a final check on that. But then I have to manage these 'global errors' manually. Is there any recommended way to do it? -- Best Regards, Jacky 網絡暴民 http://jacky.seezone.net

[jQuery] Drag and Drop rows across two tables

2008-02-22 Thread Jacky
Hi all, Is that possible using ui draggable and droppables? In an initial attempt, I tried to create a table and apply $(#tabletbodytr).draggable(); It works in IE but not in Firefox. -- Best Regards, Jacky 網絡暴民 http://jacky.seezone.net

[jQuery] Re: [validate] does maxLength(20) supported in textarea?

2008-02-01 Thread Jacky
Oh, because input type=text class=maxLength(20) / work so I thought the syntax is correct. Thx, I will try that later. On Feb 2, 2008 12:58 AM, Jörn Zaefferer [EMAIL PROTECTED] wrote: Jacky schrieb: I tried to do this textarea id=textarea cols=20 rows=4 name=desc class=maxLength

[jQuery] [validate] does maxLength(20) supported in textarea?

2008-01-31 Thread Jacky
I tried to do this textarea id=textarea cols=20 rows=4 name=desc class=maxLength(20) title=Description max length is 20/textarea But it doesn't work. So I guess it's not supported in textarea and I will need to add method? -- Best Regards, Jacky 網絡暴民 http://jacky.seezone.net

[jQuery] is it a bug with validate?

2008-01-25 Thread Jacky
Hi, I valiate two fields that depend on each other if blank,for example,user must supply he/her telephone number or mobile number,he/ her just need input the one of that(telephone number or mobile number). I set the rules like this: rules:{ telephone:{ required:#mobile:blank,

[jQuery] bug with clone method

2008-01-24 Thread Jacky
Hi, there is a bug with clone method when clone a tr element with IE browser.It just return the content of the first column that the row cloned.It is fine in firefox.

[jQuery] jQuery.extend not working for function as target,is it a bug?

2007-11-29 Thread Jacky
/* * jQuery 1.2.1 - New Wave Javascript * * Copyright (c) 2007 John Resig (jquery.com) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * $Date: 2007-11-29 07:53:54 +0800 (星期四, 29 十一月 2007) $ * $Rev: 3973 $ */ the jQuery reversion is #3973,function

[jQuery] Re: jQuery.extend not working for function as target,is it a bug?

2007-11-29 Thread Jacky Chen
Hi polyrhythmic, what reversion number of jquery you use? i use the newest jquery from svn.reversion number of the jquery is #3973,is that of you used? * $Date: 2007-11-29 07:53:54 +0800 (星期四, 29 十一月 2007) $ * $Rev: 3973 $ Regards Jacky 2007/11/30, polyrhythmic [EMAIL PROTECTED]: Hello

[jQuery] Re: problems about jquery.validate

2007-11-28 Thread Jacky Chen
Hi, submit is called after remote validation.it is not good for user experience.it should just update the just field validation info. and another problem is that i can't define the name of the data that to be validation.in remote it is data:{value:value}.In my exists validation program,it not

[jQuery] Re: problems about jquery.validate

2007-11-28 Thread Jacky Chen
[EMAIL PROTECTED]: Jacky Chen schrieb: Hi, submit is called after remote validation.it http://validation.it is not good for user experience.it http://experience.it should just update the just field validation info. Now, I didn't get that one. Try again? and another problem

[jQuery] is it a bug?

2007-11-26 Thread Jacky
Hi, I make the Reversion #3944 of jQuery from svn,and there is an error, error: selector has no properties source:/jquery.js line:343 is it a bug?

[jQuery] Re: problems about jquery.validate

2007-11-25 Thread Jacky
Hi Jörn, thanks your reply and great works. On 11月25日, 上午3时01分, Jörn Zaefferer [EMAIL PROTECTED] wrote: Hi Jack! can jquery.validate use custom validator? And another problem is about email validator,it can't pass validate with my email address [EMAIL PROTECTED] exactly validate email

[jQuery] problems about jquery.validate

2007-11-23 Thread Jacky
Hi there, can jquery.validate use custom validator? And another problem is about email validator,it can't pass validate with my email address [EMAIL PROTECTED] exactly validate email address. sorry for my poor english. Best Regards Jacky

[jQuery] Re: Any server status if use script tag for XSS?

2007-10-09 Thread Jacky
If the server return something like 404/500 page, I guess it would cause a javascript error when browser try to evaluate, and the try-catch method could work. Timer would be a good idea, but to determine the time to wait would require some specific measure. -- Best Regards, Jacky 網絡暴民 http

[jQuery] Re: Any server status if use script tag for XSS?

2007-10-09 Thread Jacky
If I remember correctly, getScript can't do cross site. -- Best Regards, Jacky 網絡暴民 http://jacky.seezone.net On 10/9/07, Matt [EMAIL PROTECTED] wrote: Maybe you could attach an onload or onerror event to your html element (script) ? Anyway, jQuery has a home made method to let you do

[jQuery] Re: Any server status if use script tag for XSS?

2007-10-09 Thread Jacky
Swedberg [EMAIL PROTECTED] wrote: Hey Jacky, it can now. :-) from http://docs.jquery.com/Ajax/jQuery.getScript#urlcallback: Before jQuery 1.2, getScript was only able to load scripts from the same domain as the original page. As of 1.2, you can now load JavaScript files from any domain. --Karl

[jQuery] Any server status if use script tag for XSS?

2007-10-08 Thread Jacky
;; document.appendChild(s); } catch(e){ alert(any error); } }); -- Best Regards, Jacky 網絡暴民 http://jacky.seezone.net

[jQuery] Re: Why Choose jQuery Over Mootools

2007-08-13 Thread Jacky
' }; this.test= function() { alert(this.ajax_options.test); } } var test = new ajax_request(); test.test(); JQuery does not provides any base class for creating object, just $.extend() for object inheritance (correct me if I'm wrong). -- Best Regards, Jacky 網絡暴民 http

[jQuery] getScript problem

2007-06-17 Thread Jacky
bodyp id=text/p/body /html -- Best Regards, Jacky 網絡暴民 http://jacky.seezone.net

[jQuery] Re: How to handle Pseudo leak in IE?

2007-05-22 Thread Jacky
garbageBin.appendChild(this); garbageBin.innerHTML = ''; }); garbageBin = null; } Usage: e.g. $(testtbody*).discard(); But there are stills some memory keep increasing in IE when those addRows and deleteRows repeat again and again. Not knowing why. On 5/22/07, Jacky [EMAIL PROTECTED] wrote

[jQuery] How to handle Pseudo leak in IE?

2007-05-21 Thread Jacky
object creation but it just keep increasing. Is there anyone try to tackle this 'leak' before? -- Best Regards, Jacky 網絡暴民 http://jacky.seezone.net

[jQuery] Re: How to handle Pseudo leak in IE?

2007-05-21 Thread Jacky
=button value=start interval id=interval/ /body /html -- Best Regards, Jacky 網絡暴民 http://jacky.seezone.net On 5/21/07, Brandon Aaron [EMAIL PROTECTED] wrote: If you could create a ticket and a test case for this it would help a lot! I believe I could find some time to investigate it in detail