I must say...very very nice.
jake
On Fri, Jun 19, 2009 at 6:16 AM, GianCarlo
Mingati wrote:
>
> Hello everyone,
> during the initial phase in the development of amuch more complex
> zomm&pan widget, i ended up with this tiny (yet another) zoom&pan
> plugin. Since it's small and with just few fun
l();
>
> Think thats gonna work out.
>
> 2009/6/3 jake dimano
>>
>> Mauricio and Ricardo,
>> I applied all the suggestions, parent(), parents() and all the other
>> functions, but still to no avail. The weird thing is that when I
>> strip out all the styles,
gt; $('#knowndiv').parents('tr:first').children('td:first').text();
>
> parents(xx:first) is similar to closest(xx), only the latter will also
> try to match the element itself.
>
> On Jun 3, 1:01 pm, jake dimano wrote:
>> Yes, that is th
iv').closest('tr').find('td:first').text();
>
> $('#knowndiv').parent().prevAll(':last').text();
>
> HTH :)
>
> On Jun 3, 6:33 am, jake dimano wrote:
>> Mauricio, your code basically works fine on a simple test page. But
>> there
7;).text();
> alert(myText);
>
> The TR is really the parent of the TDs, not the table.
>
> On Jun 3, 7:33 am, jake dimano wrote:
>> Mauricio, your code basically works fine on a simple test page. But
>> there is something about my set-up that makes the bit about
>
Mauricio, your code basically works fine on a simple test page. But
there is something about my set-up that makes the bit about
".parents('table')" fail. My page still has the same exact element
structure with 2 differences; there are 52 "tr"s in the table; also,
all the elements (tables, trs, t
Thank you Ameen,
jQuery and its plug-in "blockUI" does this already (other
javascript/css libraries do this as well.) But I must confess, not
paying attention to their internals had me always wondering on how
they did it until you just explained it. Pretty nifty and simple, I
might add. Had I h
8 matches
Mail list logo