[jQuery] unsubscribe

2009-07-15 Thread jake dimano




[jQuery] Re: new plugin: miniZoomPan

2009-06-19 Thread jake dimano

I must say...very very nice.
jake


On Fri, Jun 19, 2009 at 6:16 AM, GianCarlo
Mingatigiancarlo.ming...@gmail.com wrote:

 Hello everyone,
 during the initial phase in the development of amuch more complex
 zommpan widget, i ended up with this tiny (yet another) zoompan
 plugin. Since it's small and with just few functionalities i'd call it
 miniZoomPan.

 http://www.gcmingati.net/wordpress/wp-content/lab/jquery/minizoompan/

 Basically it just loads a new (bigger) image when you hover the
 container DIV.
 You need to pass the width and height of the two images (the small and
 the large one) and also the images must have a special char at the
 end:
 mycat_s.jpg
 mycat_l.jpg

 Hope you find it useful  ;-)
 http://www.gcmingati.net/wordpress/wp-content/lab/jquery/minizoompan/

 Kindly report any bug.
 Cheers
 GC



[jQuery] Re: text of first sibling of a parent...How do I get it

2009-06-04 Thread jake dimano

Thanks Gustavo
I put in a kludge for this just to move on with the project.  But I
will try your suggestion in the near future and let you know.
jake


On Wed, Jun 3, 2009 at 11:38 PM, Gustavo Salomé gustavon...@gmail.com wrote:
 Try this:
 $(#knowndiv').parent('td').prev().prev().html();

 Think thats gonna work out.

 2009/6/3 jake dimano jakedim...@gmail.com

 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, attributes and events from the elements and
 reduce the number of trs to less than 10 but keep the structure
 intact, it works!
 At any rate, thanks to all.  Too much effort has gone fruitless at
 this point.  I will have to resort to a different solution altogether.
 jake

 On Wed, Jun 3, 2009 at 2:44 PM, Mauricio (Maujor) Samy Silva
 css.mau...@gmail.com wrote:
  On Wed, Jun 3, 2009 at 11:20 AM, BigAB adamlbarr...@gmail.com wrote:
 
   have you tried
   var myText = $('#knowndiv').parents('tr').find('td:first').text();
   alert(myText);
 
   The TR is really the parent of the TDs, not the table.
 
  For information only.
  I've used parents() not parent().
  parents() means ancestor and table is ancestor of TDs
 
  See: http://docs.jquery.com/Traversing
  Maurício
  -
 
  -Mensagem Original-
  De: Ricardo
  Para: jQuery (English)
  Enviada em: quarta-feira, 3 de junho de 2009 15:15
  Assunto: [jQuery] Re: text of first sibling of a parent...How do I get
  it
 
  There is no reason why you shouldn't get this working with one of the
  examples provided. For the nesting issue, filter with :first:
 
  $('#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 jakedim...@gmail.com wrote:
  Yes, that is the first thing I did, to no avail. I think all I am
  left with just trudging through this with pure javascript.
  jake
 
  On Wed, Jun 3, 2009 at 11:20 AM, BigAB adamlbarr...@gmail.com wrote:
 
   have you tried
   var myText = $('#knowndiv').parents('tr').find('td:first').text();
   alert(myText);
 
   The TR is really the parent of the TDs, not the table.
 
   On Jun 3, 7:33 am, jake dimano jakedim...@gmail.com 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
  ...



 --
 Gustavo Salome Silva



[jQuery] Re: text of first sibling of a parent...How do I get it

2009-06-03 Thread jake dimano

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 trs in the table; also,
all the elements (tables, trs, tds, divs...what have you,) are all
full of styles, attributes, and onclick events to a fairly large
extent.

Other variations and combination of jQuery functions fail as well in
getting the parent of this div in my page.

I guess I'll just keep on truckin'.
jake


On Tue, Jun 2, 2009 at 3:52 PM, Mauricio (Maujor) Samy Silva
css.mau...@gmail.com wrote:
 var myText = $('#knowndiv').parents('table').find('td:first').text();
 alert(myText);

 Maurício

 -Mensagem Original-
 De: con-man-jake
 Para: jQuery (English)
 Enviada em: terça-feira, 2 de junho de 2009 16:38
 Assunto: [jQuery] text of first sibling of a parent...How do I get it

 Still a newbie.
 I have this:

 table
    tr

   td
  text I want to get
   /td

   td
   /td

   td
  div id=knowndiv/div
   /td

    tr
 /table

 If I have the div with id of knowndiv as an object (call it obj),
 How do I get the text inside the first td?


[jQuery] Re: text of first sibling of a parent...How do I get it

2009-06-03 Thread jake dimano

Yes, that is the first thing I did, to no avail.  I think all I am
left with just trudging through this with pure javascript.
jake


On Wed, Jun 3, 2009 at 11:20 AM, BigAB adamlbarr...@gmail.com wrote:

 have you tried
 var myText = $('#knowndiv').parents('tr').find('td:first').text();
 alert(myText);

 The TR is really the parent of the TDs, not the table.

 On Jun 3, 7:33 am, jake dimano jakedim...@gmail.com 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
 .parents('table') fail.  My page still has the same exact element
 structure with 2 differences; there are 52 trs in the table; also,
 all the elements (tables, trs, tds, divs...what have you,) are all
 full of styles, attributes, and onclick events to a fairly large
 extent.

 Other variations and combination of jQuery functions fail as well in
 getting the parent of this div in my page.

 I guess I'll just keep on truckin'.
 jake

 On Tue, Jun 2, 2009 at 3:52 PM, Mauricio (Maujor) Samy Silva

 css.mau...@gmail.com wrote:
  var myText = $('#knowndiv').parents('table').find('td:first').text();
  alert(myText);

  Maurício

  -Mensagem Original-
  De: con-man-jake
  Para: jQuery (English)
  Enviada em: terça-feira, 2 de junho de 2009 16:38
  Assunto: [jQuery] text of first sibling of a parent...How do I get it

  Still a newbie.
  I have this:

  table
     tr

    td
   text I want to get
    /td

    td
    /td

    td
   div id=knowndiv/div
    /td

     tr
  /table

  If I have the div with id of knowndiv as an object (call it obj),
  How do I get the text inside the first td?



[jQuery] Re: text of first sibling of a parent...How do I get it

2009-06-03 Thread jake dimano

I must say, I have not tried closest() and prevAll().  I'll give
it another go with your suggestions before I throw in the towel.
Thanks.
jake


On Wed, Jun 3, 2009 at 11:22 AM, mkmanning michaell...@gmail.com wrote:

 The problem with parents() in the example given is that if your page
 structure is more complex, and has nested tables for example, then
 parents() will return all parent tables. Likewise if there are tr's
 preceding the tr in your example. Here's a couple ways to get the text
 you're asking for:

 $('#knowndiv').closest('tr').find('td:first').text();

 $('#knowndiv').parent().prevAll(':last').text();

 HTH :)

 On Jun 3, 6:33 am, jake dimano jakedim...@gmail.com 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
 .parents('table') fail.  My page still has the same exact element
 structure with 2 differences; there are 52 trs in the table; also,
 all the elements (tables, trs, tds, divs...what have you,) are all
 full of styles, attributes, and onclick events to a fairly large
 extent.

 Other variations and combination of jQuery functions fail as well in
 getting the parent of this div in my page.

 I guess I'll just keep on truckin'.
 jake

 On Tue, Jun 2, 2009 at 3:52 PM, Mauricio (Maujor) Samy Silva

 css.mau...@gmail.com wrote:
  var myText = $('#knowndiv').parents('table').find('td:first').text();
  alert(myText);

  Maurício

  -Mensagem Original-
  De: con-man-jake
  Para: jQuery (English)
  Enviada em: terça-feira, 2 de junho de 2009 16:38
  Assunto: [jQuery] text of first sibling of a parent...How do I get it

  Still a newbie.
  I have this:

  table
     tr

    td
   text I want to get
    /td

    td
    /td

    td
   div id=knowndiv/div
    /td

     tr
  /table

  If I have the div with id of knowndiv as an object (call it obj),
  How do I get the text inside the first td?



[jQuery] Re: text of first sibling of a parent...How do I get it

2009-06-03 Thread 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, attributes and events from the elements and
reduce the number of trs to less than 10 but keep the structure
intact, it works!
At any rate, thanks to all.  Too much effort has gone fruitless at
this point.  I will have to resort to a different solution altogether.
jake

On Wed, Jun 3, 2009 at 2:44 PM, Mauricio (Maujor) Samy Silva
css.mau...@gmail.com wrote:
 On Wed, Jun 3, 2009 at 11:20 AM, BigAB adamlbarr...@gmail.com wrote:

  have you tried
  var myText = $('#knowndiv').parents('tr').find('td:first').text();
  alert(myText);

  The TR is really the parent of the TDs, not the table.

 For information only.
 I've used parents() not parent().
 parents() means ancestor and table is ancestor of TDs

 See: http://docs.jquery.com/Traversing
 Maurício
 -

 -Mensagem Original-
 De: Ricardo
 Para: jQuery (English)
 Enviada em: quarta-feira, 3 de junho de 2009 15:15
 Assunto: [jQuery] Re: text of first sibling of a parent...How do I get it

 There is no reason why you shouldn't get this working with one of the
 examples provided. For the nesting issue, filter with :first:

 $('#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 jakedim...@gmail.com wrote:
 Yes, that is the first thing I did, to no avail. I think all I am
 left with just trudging through this with pure javascript.
 jake

 On Wed, Jun 3, 2009 at 11:20 AM, BigAB adamlbarr...@gmail.com wrote:

  have you tried
  var myText = $('#knowndiv').parents('tr').find('td:first').text();
  alert(myText);

  The TR is really the parent of the TDs, not the table.

  On Jun 3, 7:33 am, jake dimano jakedim...@gmail.com 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
 ...


[jQuery] Re: disabling all click events on all DOM elements for a small bit of time

2009-05-28 Thread jake dimano

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 had a little more time, I would have figured it out
(or so I would like to believe,) but it seems that I can never get any
down time at work to do proper research.  Thanks again for
demistifying

On Thu, May 28, 2009 at 11:52 AM, aboFaisal ameen.ra...@gmail.com wrote:

 May be I little far, but check this link:
 http://andrislinz.ch/tutorials/modalBox/index.html#

 and click the only existing link in the top left Open modalBox

 the box will be shown and click any thing out of the block will be
 disabled unless you closed the block by clocking Close modalBox

 I mean you can figure out some way to implement the same Idea. That
 is, to create one floating div fills out the full page but with
 transparent color, keep it for sometime and then remove it.

 basically, you can try this code, hope it works for you:

 div style=position:fixed; z-index:300; text-align:center; top:0;
 left:0;
                color:#FF; width:100%; padding:200px 0 0 
 onclick=alert('you
 see, u r able to click onle here');
        You can Only click here
 /div

 div style=background:#66; position:fixed; width:100%; height:
 100%; top:0; left:0; vertical-align:middle;
                text-align:center; z-index:200;filter:alpha(opacity=70); -moz-
 opacity:0.7;
                -khtml-opacity:0.7;     opacity:0.7;nbsp;/div

 I tried it in Chrome, Firefox, Safari, IE8
 it works fine.

 Regards
 Ameen