);
}
}
});
I wonder if there is any simpler way to do this?
--
Best Regards,
Jacky
網絡暴民 http://jacky.seezone.net
Regards,
Jacky
網絡暴民 http://jacky.seezone.net
,
Jacky
網絡暴民 http://jacky.seezone.net
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
:
$(: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
).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
-status-bar-keeps-loading-in.html
--
Best Regards,
Jacky
網絡暴民 http://jacky.seezone.net
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
, 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
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
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(){
;
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
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
(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
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
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
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
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
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
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
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
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,
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 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
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
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
[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
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?
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
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
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
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
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
;;
document.appendChild(s);
}
catch(e){
alert(any error);
}
});
--
Best Regards,
Jacky
網絡暴民 http://jacky.seezone.net
'
};
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
bodyp id=text/p/body
/html
--
Best Regards,
Jacky
網絡暴民 http://jacky.seezone.net
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
object creation but it just keep increasing.
Is there anyone try to tackle this 'leak' before?
--
Best Regards,
Jacky
網絡暴民 http://jacky.seezone.net
=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
39 matches
Mail list logo