[jQuery] Re: about $(document).ready()

2008-09-21 Thread Xinhao Zheng
你好, 你可以为ready事件定义多个函数。也就是你那样写是可以的。 至于你说的合在一起和分开是有区别的,至少我亲身体验的是我是能合在一起就合在一起,需要分开就不得不分开。 不过分开写的时候,最好每个函数彼此之间不要相互依赖。 Xinhao Zheng SGL中文Blog: http://blog.cjcht.com SGL中文文档: http://wiki.cjcht.com SGL中文Group:http://groups.google.com/group/seagull_forum 2008/9/21 立体风 [EMAIL PROTECTED] 不好意

[jQuery] Re: autocomplete on cloned inputs

2008-09-09 Thread Xinhao Zheng
hi all,    is there anyone who knows why clone didn't work when input with aucomplte plugin used.   is there any walkround solution? George peCan wrote: I have the same question. Can I use jquery.autocomplete on cloned inputs? thx. On 30 Čec, 13:56, rayfidelity [EMAIL PROTECTED] wrote:

[jQuery] Re: autocomplete on cloned inputs

2008-09-09 Thread Xinhao Zheng
hi all, is there anyone who knows why clone didn't work when use input with the aucomplete plugin binded. Is there any walkround solution? George peCan wrote: I have the same question. Can I use jquery.autocomplete on cloned inputs? thx. On 30 Čec, 13:56, rayfidelity [EMAIL

[jQuery] Re: Validate remote: passing multiple variables?

2008-09-09 Thread Xinhao Zheng
hi ryanstreet, You can use $.('xxx').serialize() to collect all the input element into an array,or else you may try json,like json = '{ a: {\p\:\cc\,\m\:\aa\,\s\:\bb\}, b: 2, c: 3, d: 4, e: 5 }'; $.post(url, {data:json}, function() { //xxx});

[jQuery] how to get the size of the image file before user upload it.

2008-03-04 Thread Xinhao Zheng
hi all, is there a way to do this that can work both under ie and FF.thanks in advance. George

[jQuery] Someone who can help me about multi select

2008-01-26 Thread Xinhao Zheng
hi all, Is there a plugin for multi select?I think we often need a pop up,multi select plugin,if it can write back the selected thing back to input field or support tree view. Anyone can give me some idea if there already exist one?Thanks in advance! George

[jQuery] prob with the jquery selector

2008-01-14 Thread Xinhao Zheng
[xyz]').val(); it failed. -- Xinhao Zheng SGL中文文档: http://wiki.cjcht.com SGL中文Group:http://groups.google.com/group/seagull_forum

[jQuery] Re: prob with the jquery selector

2008-01-14 Thread Xinhao Zheng
#How_do_I_select_an_element_that_has_weird_characters_in_its_ID.3F If you're storing the id attribute in a variable, you could use a regex .replace() to escape the brackets. For example: var myId = $('someElement').attr('id').replace(/(\[|\])/g,'$1') -- Xinhao Zheng SGL中文文档: http://wiki.cjcht.com SGL中文

[jQuery] how to block another ajax request when one is in the progress

2007-08-30 Thread Xinhao Zheng
i write a hover event for div,and in the handler use ajax to request data.but it give me a problem: it do the same ajax request many times(the number is the times i hover the div) when the first ajax didn't finished. xinhaozheng

[jQuery] Re: how to fetch data by php page from jQuery

2007-07-11 Thread Xinhao Zheng
:'mypage.php', success : function(info){ // do something with with info // call return by doing something like // info.id / info.fname / info.lname } }); This should point you in the right direction. On 7/10/07, Xinhao Zheng [EMAIL PROTECTED] wrote: hello everyone, I am just a fresher

[jQuery] how to fetch data by php page from jQuery

2007-07-10 Thread Xinhao Zheng
hello everyone, I am just a fresher to jQuery.I like it very much.I need some help. Is there any way to request a php file to fetch data from db in jQuery then operate on it use js?Ajax can do it? which format would be the best way to return the data,json or xml?how to deal with that in