[jQuery] Re: Endeavour: translating X-Library functionality "click-n-drag checkboxes" into Jquery

2009-04-14 Thread Lwangaman
Ok so what's the link to the latest version? (It's a good thing that jsbin deletes files after 3 months of no usage! I was thinking the same myself!) On 15 Apr, 00:45, Ricardo wrote: > On Apr 14, 6:38 pm, Lwangaman wrote: > > > Only thing here is that the text selectio

[jQuery] Re: Endeavour: translating X-Library functionality "click-n-drag checkboxes" into Jquery

2009-04-14 Thread Lwangaman
ghlight (much cleaner, you set styles in the CSS like > it should be). Clearing the plugin or setting it again also resets the > highlights. > > http://jsbin.com/opove > > Less than 30 lines now, w/o comments. > > cheers, > - ricardo > > On Apr 14, 4:45 am, Lwanga

[jQuery] Re: Endeavour: translating X-Library functionality "click-n-drag checkboxes" into Jquery

2009-04-14 Thread Lwangaman
learing the plugin or setting it again also resets the > highlights. > > http://jsbin.com/opove > > Less than 30 lines now, w/o comments. > > cheers, > - ricardo > > On Apr 14, 4:45 am, Lwangaman wrote: > > > Ok latest version I've included the possibility o

[jQuery] Re: Endeavour: translating X-Library functionality "click-n-drag checkboxes" into Jquery

2009-04-14 Thread Lwangaman
and Firefox have the cursor changing to an > insertion bar when over the checkbox label; only in Opera does the > cursor stay as an arrow pointer.) > > Thanks again for your work on this. > > ER > > On Apr 14, 3:31 am, Lwangaman wrote: > > > Latest:http://jsbin.com/i

[jQuery] Re: Endeavour: translating X-Library functionality "click-n-drag checkboxes" into Jquery

2009-04-14 Thread Lwangaman
ble').dragCheck('', 'pink') for empty first parameter. Second parameter can be left out completely. On 14 Apr, 09:45, Lwangaman wrote: > Ok latest version I've included the possibility of adding a background > color:http://jsbin.com/icena/edit > > The b

[jQuery] Re: Endeavour: translating X-Library functionality "click-n-drag checkboxes" into Jquery

2009-04-14 Thread Lwangaman
ossible to > select text if the mousedown event occurs in the right place between > cells. I don't think text selection is possible if the border width is > set to 0 (but then you also don't get a border.) > > On Apr 13, 2:30 pm, Lwangaman wrote: > > > I think I&#

[jQuery] Re: Endeavour: translating X-Library functionality "click-n-drag checkboxes" into Jquery

2009-04-13 Thread Lwangaman
Latest version works with both ul lists and with tables: http://jsbin.com/aqefu/edit On 14 Apr, 00:51, Lwangaman wrote: > Ok I fixed the text selection problem, in fact different browsers act > differently. > > http://jsbin.com/ijebi/edit > > Also fixed the correct applicat

[jQuery] Re: Endeavour: translating X-Library functionality "click-n-drag checkboxes" into Jquery

2009-04-13 Thread Lwangaman
7;t not working at all. :-( > > On Apr 13, 2:30 pm, Lwangaman wrote: > > > I think I've done it. > > >http://jsbin.com/adixe/edit > > > I have also left out the mouseleave event, and applied the mouseup to > > the whole document instead of to the table, that

[jQuery] Re: Endeavour: translating X-Library functionality "click-n-drag checkboxes" into Jquery

2009-04-13 Thread Lwangaman
g text. I'm still not sure how the original code > avoided that. > > Under Chrome is't not working at all. :-( > > On Apr 13, 2:30 pm, Lwangaman wrote: > > > I think I've done it. > > >http://jsbin.com/adixe/edit > > > I have also left out th

[jQuery] Re: Endeavour: translating X-Library functionality "click-n-drag checkboxes" into Jquery

2009-04-13 Thread Lwangaman
f I let go of the mouse button (on or off the table) do I reset the variable. @Ricardo and @jscripter: does this work good? On 13 Apr, 14:41, Lwangaman wrote: > I tried working on it again and made a little progress... Now I got > parent and child selected correctly, but I don't have mo

[jQuery] Re: Endeavour: translating X-Library functionality "click-n-drag checkboxes" into Jquery

2009-04-13 Thread Lwangaman
I tried working on it again and made a little progress... Now I got parent and child selected correctly, but I don't have mouseover working for some reason... http://jsbin.com/avigi/edit On 13 Apr, 02:43, Lwangaman wrote: > One more detail: mouseout should not take effect until mouse

[jQuery] Re: Endeavour: translating X-Library functionality "click-n-drag checkboxes" into Jquery

2009-04-12 Thread Lwangaman
. Instead it shouldn't kick in until I actually let go of the mouse button, and I could let go of it anywhere on the page I suppose, so I guess "mouseup" would have to be applied to the whole document. On 13 Apr, 02:33, Lwangaman wrote: > I tried something along those lines... &g

[jQuery] Re: Endeavour: translating X-Library functionality "click-n-drag checkboxes" into Jquery

2009-04-12 Thread Lwangaman
ble cells), and not to the external container (table or ul list or whatever), and yet be able to read and write the value of the checkboxes... On 13 Apr, 01:13, Lwangaman wrote: > Taking up jscripter's suggestion, I just noticed myself that applying > the mousedown and mouseover to the

[jQuery] Re: Endeavour: translating X-Library functionality "click-n-drag checkboxes" into Jquery

2009-04-12 Thread Lwangaman
you can easily remove all event > > handlers. I included that in the plugin, in the example you can use $ > > ('ul').dragCheck(false) to disable it completely. > > >http://jsbin.com/amoxi/edit > > > cheers, > > - ricardo > > > On Apr 12, 9:48 

[jQuery] Re: Endeavour: translating X-Library functionality "click-n-drag checkboxes" into Jquery

2009-04-12 Thread Lwangaman
@Ricardo Do you think it could be useful to add this to the jquery plugins at plugins.jquery.com? I'd say it could be put under your name because you did all the big work! On 12 Apr, 14:35, Lwangaman wrote: > Ok that works better, I just changed "clicked.checked = !

[jQuery] Re: Endeavour: translating X-Library functionality "click-n-drag checkboxes" into Jquery

2009-04-12 Thread Lwangaman
n. You can resolve that by saving the > clicked checkbox in a var, and because of event order the change has > to be made on 'click' rather than mouseup. > > http://jsbin.com/asizu/edit > > Sorry for the bugs, this was written rather quickly, I hope it works > now :) &g

[jQuery] Re: Endeavour: translating X-Library functionality "click-n-drag checkboxes" into Jquery

2009-04-11 Thread Lwangaman
ppose it would be enough to cancel $(this)'s mouseup, but how would you refer to $(this) from within the $boxes.bind('mouseover')? On 11 Apr, 16:07, Lwangaman wrote: > Hmm, just noticed one problem though... A single click on a checkbox > is supposed to work too, but wit

[jQuery] Re: Endeavour: translating X-Library functionality "click-n-drag checkboxes" into Jquery

2009-04-11 Thread Lwangaman
by default. > > cheers, > - ricardo > > On Apr 10, 8:17 pm, Lwangaman wrote: > > > Ok first of all thanks for taking interest! > > Then, I've tried going through your code and applying it, and I have a > > few questions: > > -- Besides the mouseover.d

[jQuery] Re: Endeavour: translating X-Library functionality "click-n-drag checkboxes" into Jquery

2009-04-11 Thread Lwangaman
t; I added the ability to specify a selector for the checkboxes, that way > you can skip the ones you don't want. In case it's not provided all > checkboxes are used by default. > > cheers, > - ricardo > > On Apr 10, 8:17 pm, Lwangaman wrote: > > > Ok first of

[jQuery] Re: Endeavour: translating X-Library functionality "click-n-drag checkboxes" into Jquery

2009-04-11 Thread Lwangaman
BTW that jsbin.com is a great idea! Now does every little project in there get saved to a url? For example, this one is saved to "/edabo"? On 11 Apr, 10:21, Lwangaman wrote: > Wow I guess you did it! I believe you have succeeded in the endeavour! > > On 11 Apr, 06:21, Rica

[jQuery] Re: Endeavour: translating X-Library functionality "click-n-drag checkboxes" into Jquery

2009-04-11 Thread Lwangaman
ctor for the checkboxes, that way > you can skip the ones you don't want. In case it's not provided all > checkboxes are used by default. > > cheers, > - ricardo > > On Apr 10, 8:17 pm, Lwangaman wrote: > > > Ok first of all thanks for taking interest! > >

[jQuery] Re: Endeavour: translating X-Library functionality "click-n-drag checkboxes" into Jquery

2009-04-10 Thread Lwangaman
    }); > > >     }).bind('mouseup', function(e){ > >         //cancel the mouseover action > >         $boxes.unbind('mouseover.dc'); > >     }); > > > }; > > > $('#table1').dragCheck(); > > > cheers, > > - ricard

[jQuery] Re: Endeavour: translating X-Library functionality "click-n-drag checkboxes" into Jquery

2009-04-09 Thread Lwangaman
transmitted in the "mouseover" event. And yet the code doesn't seem to be working correctly. The current value of the cell is detected correctly (I've gotten it through an alert), it's contrary is correctly set in "gCheckedValue" (I've gotten that thr

[jQuery] Re: Translating X-Library functionality into Jquery

2009-04-09 Thread Lwangaman
I continued this thread in a new thread: http://groups.google.com/group/jquery-en/browse_thread/thread/956e72c4e071a3de On 9 Apr, 04:31, Lwangaman wrote: > Ok now that that has been straightened out, here's my full endeavour: > > I'm trying to translate into jquery a useful

[jQuery] Endeavour: translating X-Library functionality "click-n-drag checkboxes" into Jquery

2009-04-09 Thread Lwangaman
I thought I'd undertake the endeavour of translating into jquery the neat little "click-n-drag checkboxes" functionality of cross- browser.com's X-library. This functionality allows for multiple checkbox selection or de-selection by simply clicking on one of them and then dragging the mouse over t

[jQuery] Translating X-Library functionality into Jquery

2009-04-08 Thread Lwangaman
;checked") = gCheckedValue; } }); }); $("td.mychkbox").each( function(){ $(this).bind( "click", function(){ return false; }); }); Doesn't quite work right though. Clicking on the checkboxes has no result, dragging over them h

[jQuery] Re: value of this after many enclosures!

2009-04-08 Thread Lwangaman
Thanks a lot! That got me going again! (eccomi was supposed to be itsme, eccoti was supposed to be itsyou, I overlooked that transliteration that I was doing from italian!) On 9 Apr, 03:48, Shawn wrote: > Lwangaman wrote: > >           alert(itsme.name); > > > // gives "u

[jQuery] Re: value of this after many enclosures!

2009-04-08 Thread Lwangaman
Sorry I see that the comments don't line up well, thought I'd re-write the code such as to simplify reading the comments: // select all the cells with class "mychkbox" : $("td.mychkbox").each( // apply the mousedown event to each one of these : function(){ $(this).bind( "mousedown",

[jQuery] value of this after many enclosures!

2009-04-08 Thread Lwangaman
Could someone please help me work out this bit of code, it's driving me crazy! I've read here and there that "this" changes value according to its level of enclosure, it can refer for example to an object that triggers an event but then if used in callback it can refer to the jquery function itsel

[jQuery] Re: Value of the property not valid. jquery.js, Line 12 Character 12721

2009-04-01 Thread Lwangaman
w no longer get that error message in IE! On 1 Apr, 13:07, Lwangaman wrote: > BTW the error message, translated into english is: > > Value of the property not valid. jquery.js, Line 12 Character 12721 > > The part of code that is put into evidence is some jquery function: > if(

[jQuery] Value of the property not valid. jquery.js, Line 12 Character 12721

2009-04-01 Thread Lwangaman
makeArray:function(G){var E=[];if(G!=null){var F=G.length; "J[G]=K" is evidenced with the yellow highlighter. What error could this be? On 1 Apr, 12:58, Lwangaman wrote: > Can anyone help in deciphering this error message? I only get it in > Internet Explorer, it doesn't show up

[jQuery] Valore della proprietà non valido. jquery. js, Riga 12 Carattere 12721

2009-04-01 Thread Lwangaman
Can anyone help in deciphering this error message? I only get it in Internet Explorer, it doesn't show up either in Firefox or in Chrome. Here is the page that it occurs on: http://johnrdorazio.altervista.org/SitoFlatnukePersonale/?lang=en&mod= The block that uses jquery and that is provoking t

[jQuery] Re: wrap some tag around group of table rows for hide and show

2009-03-15 Thread Lwangaman
ng that to fadeIn('fast') seems to work, > I'm not sure why - both should restore the original display. > > cheers, > - ricardo > > On Mar 14, 1:47 pm, Lwangaman wrote: > > > Ok let's see if this post works... The last couple tries didn't! > &g

[jQuery] wrap some tag around group of table rows for hide and show

2009-03-14 Thread Lwangaman
Ok let's see if this post works... The last couple tries didn't! I was reading through this year-old thread which I found googling since I'm doing something similar, perhaps someone could give me a couple tips. Here is the page with the example I'm dealing with: http://johnrdorazio.altervista.or