[jQuery] Re: Broken Selector Help

2007-08-24 Thread Herr M.
It would be easier if you posted some of the HTML as well, it's kind of hard to analyse your querystring without knowing the DOM structure. I don't know if this helps, but if "#rank-products" refers to the table, then you query is looking for the first td inside a tr inside a table inside a table

[jQuery] Re: Asynch problems with code. WAS: User Environment Detection Suite.

2007-08-24 Thread Herr M.
I'm not sure I get the problem (correct me if I'm wrong!), but I'll give it a go. It sounds like you're not putting the "stop timer" code in the callback for the request. In jQuery, I would do like this: var startTime = ( new Date() ).getTime(); $.get("url_to_exact_size_file.html", function(){

[jQuery] Re: How do i group events?

2007-08-24 Thread Herr M.
if you mean adding more than one event to an element, just add the next event the same way as the first: $("#myElem").click(function(){ alert("Event 1"); }); $("#myElem").click(function(){ alert("Event 2"); }); This will alert first "Event 1" and then "Event 2". /Anders On 23 Aug, 16:35

[jQuery] Re: changing url querystring in document.ready onclick

2007-08-24 Thread Herr M.
No, not without actually redirecting to another url. I think it's a security risk otherwise (hiding the real url). Anders On 23 Aug, 23:31, cfdvlpr <[EMAIL PROTECTED]> wrote: > Is there a way to change the url in the browser's address textbox > everytime there is a click or other event?

[jQuery] Re: textareas and contains()

2007-08-24 Thread Herr M.
> I already tried several versions including this one: > > $('#myTextarea').bind("keyup", function(){ > if ( $("#myTextarea[value:contains('hello')]")) > log.empty().html('test'); > > }); I think skipping the attribute part of the jquery string should work: if ( $("#myTextarea:con

[jQuery] Re: Interface scrollTo - needing callback functionality (attn Stefan)

2007-08-23 Thread Herr M.
I think that's a bug in the Interface code. I haven't found any calls to the callback function in their code anyway. Anders

[jQuery] Re: How to re-apply previous events.

2007-06-14 Thread Herr M.
As far as I know, after the code var clickFunction = $("img").click(function(){ alert('yo'); return false; }); clickFunction contains the jQuery object for the element and not the function.