[jQuery] Re: How to pass variables between jQuery plugins?

2009-02-20 Thread Vic
s again in advance, Vic On Feb 20, 5:33 am, Stephan Veigl wrote: > Hi Vic, > > I guess the problem is that get is an asynchronous function. So > anArray exists outside of your get-callback function (since you use it > as global variable) but the value is not set when the get func

[jQuery] How to pass variables between jQuery plugins?

2009-02-20 Thread Vic
;duh!" from someone on this mailing list. But alas, I admit, I'm new to jQuery. Thanks in advance, Vic

[jQuery] Re: I can't understand how work with elemetnts

2008-10-09 Thread Vic
New problem is founded: I replace list items in example above: List 3 Item 1 List 3 Item 1 List 3 Item 2 List 3 Item 3 List 3 Item 2 List 3 Item 1 List 3 Item 2 List 3 Item 3 List 3 Item 3 List 3 Item 1 List 3 Item 2 List 3 Item 3 And no

[jQuery] Re: I can't understand how work with elemetnts

2008-10-09 Thread Vic
thank you, it work but now i have another problem: .selected { display: list-item; } and fideIn() don't work There for I make some changes and all work: -- html file: List 1 Item 1 List 1 Item 2 List 1 Item 3 * List 3 Item 1 List 3 Item 2 List 3 Item 3 * Lis

[jQuery] Re: Clone form fieldset, issues replacing id

2008-10-09 Thread Vic
It was example Now : nel - number of "workfieldset", =1 when page loaded You need create construction like this: nel++; $(fromClone).find("input").each(function() { var s = $(this).attr("name"); s.replace(/([^\[]+)\[0\]/, "$1["+nel+"]"); $(this).attr("name", s); }); And for "label": $(f

[jQuery] Re: I can't understand how work with elemetnts

2008-10-09 Thread Vic
Thank you but some problem exists List like this: Item 1 Item 2 Item 3 I need add class "selected" only to one list inem ( first, second, third, and so ). After your help I shall have: Item 1 Item 2 Item 3 Does exists some function in jQuery which get only "i" element from list items? $('ul

[jQuery] Re: Ajax Code Optimization (delay)

2008-10-09 Thread Vic
You can find some information in message box: if(msgBox.children('[EMAIL PROTECTED]/img/icons/email_open.png]').length > 0) // nothing else // post status

[jQuery] I can't understand how work with elemetnts

2008-10-09 Thread Vic
At first sorry for my English I have stupid problem: There is document like that: Item 1 Item 2 Item 3 . Item 1 Item 2 Item 3 . Item 1 Item 2 Item 3 - and css like that: ul.class1 li { dispaly: none; } .selected { display: list-item; } And I have function:

[jQuery] Re: Clone form fieldset, issues replacing id

2008-10-09 Thread Vic
What about this: $(fromClone).attr("id", newId); or $(fromClone).attr("name", newName);

[jQuery] [validate] required( dependency-expression ) for select

2008-10-06 Thread Vic
when a certain value is selected, the textarea control is set to required. i am not quite sure what to put in the "rules" section to trigger the validation. Any help will be great, Thanks in advance. Vic