473,396 Members | 2,109 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Light weight library

Hi All,

I am not sure if this is the place to post this. But I am looking for
a light weight drag and drop (sortable) library. I have looked around
and there are a few good libraries (Script.aculo.us & Dojo), but they
are a little heavy and involved considering I am just looking for drag
and drop (sortable) functionality.

I am open to all suggestions. And thanks for any input.

Diilbert

Feb 17 '07 #1
18 1652
Diilb wrote on 18 feb 2007 in comp.lang.javascript:
I am not sure if this is the place to post this. But I am looking for
a light weight drag and drop (sortable) library. I have looked around
and there are a few good libraries (Script.aculo.us & Dojo), but they
are a little heavy and involved considering I am just looking for drag
and drop (sortable) functionality.
I don't understand what could be sortable about drag and drop, but look
here:

<http://www.hunlock.com/blogs/Javascript_Drag_and_Drop>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Feb 17 '07 #2
"Evertjan." <ex**************@interxnl.netwrote in message
news:Xn*******************@194.109.133.242...
Diilb wrote on 18 feb 2007 in comp.lang.javascript:
>I am not sure if this is the place to post this. But I am looking for
a light weight drag and drop (sortable) library. I have looked around
and there are a few good libraries (Script.aculo.us & Dojo), but they
are a little heavy and involved considering I am just looking for drag
and drop (sortable) functionality.

I don't understand what could be sortable about drag and drop, but look
here:
Perhaps the original poster was referring to its ability to reference the z-index by
placing the currently selected object on top of other objects?

-Lost
Feb 18 '07 #3
"Diilb" <di***************@gmail.comwrote in message
news:11**********************@k78g2000cwa.googlegr oups.com...
Hi All,

I am not sure if this is the place to post this. But I am looking for
a light weight drag and drop (sortable) library. I have looked around
and there are a few good libraries (Script.aculo.us & Dojo), but they
are a little heavy and involved considering I am just looking for drag
and drop (sortable) functionality.
http://www.devpro.it/bytefx/#api

....is ridiculously simple to use. Look under bytefx API, fourth one down, 'drag.'

-Lost
Feb 18 '07 #4
On Feb 17, 3:20 pm, "Diilb" <diilbert.atlan...@gmail.comwrote:
Hi All,

I am not sure if this is the place to post this. But I am looking for
a light weight drag and drop (sortable) library. I have looked around
and there are a few good libraries (Script.aculo.us & Dojo), but they
are a little heavy and involved considering I am just looking for drag
and drop (sortable) functionality.

I am open to all suggestions. And thanks for any input.

Diilbert
If you are interested in writing a bit of JavaScript yourself the Fork
drag library is the most flexible and lightest I've seen. I'm biased
because I wrote it but I think it worked out well.

<URL: http://forkjavascript.org/drag/docs>

I haven't posted a sortable list example yet but I've made a few with
different techniques. It depends on the situation how the specific
code is written.

Peter

Feb 18 '07 #5
Just to clarify (sorry for any confusion) I am looking for something
that can do something similar to:

http://wiki.script.aculo.us/scriptac...tableListsDemo

Thanks for the suggestions ;)
On Feb 17, 7:36 pm, "Evertjan." <exjxw.hannivo...@interxnl.netwrote:
Diilb wrote on 18 feb 2007 in comp.lang.javascript:
I am not sure if this is the place to post this. But I am looking for
a light weight drag and drop (sortable) library. I have looked around
and there are a few good libraries (Script.aculo.us & Dojo), but they
are a little heavy and involved considering I am just looking for drag
and drop (sortable) functionality.

I don't understand what could be sortable about drag and drop, but look
here:

<http://www.hunlock.com/blogs/Javascript_Drag_and_Drop>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Feb 18 '07 #6
Peter Michaux wrote:
On Feb 17, 3:20 pm, "Diilb" <diilbert.atlan...@gmail.comwrote:
>Hi All,

I am not sure if this is the place to post this. But I am looking for
a light weight drag and drop (sortable) library. I have looked around
and there are a few good libraries (Script.aculo.us & Dojo), but they
are a little heavy and involved considering I am just looking for drag
and drop (sortable) functionality.

I am open to all suggestions. And thanks for any input.

Diilbert

If you are interested in writing a bit of JavaScript yourself the Fork
drag library is the most flexible and lightest I've seen. I'm biased
because I wrote it but I think it worked out well.

<URL: http://forkjavascript.org/drag/docs>

I haven't posted a sortable list example yet but I've made a few with
different techniques. It depends on the situation how the specific
code is written.

Peter

This is very nice. Definately a bookmark :)
--
http://www.hunlock.com -- Musings in Javascript, CSS.
$FA
Feb 18 '07 #7
Diilb wrote:
Hi All,

I am not sure if this is the place to post this. But I am looking for
a light weight drag and drop (sortable) library. I have looked around
and there are a few good libraries (Script.aculo.us & Dojo), but they
are a little heavy and involved considering I am just looking for drag
and drop (sortable) functionality.

I am open to all suggestions. And thanks for any input.

Diilbert
I'm really to the point now where I no longer care (much) about the size
of a javascript library so long as it's under 100k. Once you pass the
source through Mr. Crockford's most excellent JSMin (
http://javascript.crockford.com/jsmin.html ) and then set up a
compression scheme either static (
http://www.hunlock.com/blogs/Compres...ur_pages_zippy ) or
dynamic ( http://www.hunlock.com/blogs/Supercharged_Javascript ) even
the largest javascript applications shrink down to under 20k which is
perfectly acceptable.

This may be an alternative for you if you can't find exactly what you're
looking for.
--
http://www.hunlock.com -- Musings in Javascript, CSS.
$FA
Feb 18 '07 #8
"Diilb" <di***************@gmail.comwrote in message
news:11**********************@k78g2000cwa.googlegr oups.com...
Hi All,

I am not sure if this is the place to post this. But I am looking for
a light weight drag and drop (sortable) library. I have looked around
and there are a few good libraries (Script.aculo.us & Dojo), but they
are a little heavy and involved considering I am just looking for drag
and drop (sortable) functionality.
http://www.harelmalka.com/jwm/

Brings the selected objects ("windows" from DIVs in the above example) to the front,
resting "above" others "below" it.

-Lost
Feb 18 '07 #9
On Feb 17, 11:55 pm, pcx99 <x...@x.comwrote:
Diilb wrote:
Hi All,
I am not sure if this is the place to post this. But I am looking for
a light weight drag and drop (sortable) library. I have looked around
and there are a few good libraries (Script.aculo.us & Dojo), but they
are a little heavy and involved considering I am just looking for drag
and drop (sortable) functionality.
I am open to all suggestions. And thanks for any input.
Diilbert

I'm really to the point now where I no longer care (much) about the size
of a javascript library so long as it's under 100k. Once you pass the
source through Mr. Crockford's most excellent JSMin (http://javascript.crockford.com/jsmin.html) and then set up a
compression scheme either static (http://www.hunlock.com/blogs/Compres...ur_pages_zippy) or
dynamic (http://www.hunlock.com/blogs/Supercharged_Javascript) even
the largest javascript applications shrink down to under 20k which is
perfectly acceptable.

This may be an alternative for you if you can't find exactly what you're
looking for.

--http://www.hunlock.com-- Musings in Javascript, CSS.
$FA
By the looks of it this may be my only option. (thanks) I have a
little time I will wait a bit longer.

Any library suggestions would be appreciated.

Thanks again ;)

Diilbert

Feb 18 '07 #10
-Lost wrote on 18 feb 2007 in comp.lang.javascript:
"Evertjan." <ex**************@interxnl.netwrote in message
news:Xn*******************@194.109.133.242...
>Diilb wrote on 18 feb 2007 in comp.lang.javascript:
>>I am not sure if this is the place to post this. But I am looking
for a light weight drag and drop (sortable) library. I have looked
around and there are a few good libraries (Script.aculo.us & Dojo),
but they are a little heavy and involved considering I am just
looking for drag and drop (sortable) functionality.

I don't understand what could be sortable about drag and drop, but
look here:

Perhaps the original poster was referring to its ability to reference
the z-index by placing the currently selected object on top of other
objects?
Could well be.

Usually I increment the z-index over all the others
and don't bother with a theoretical overflow.

Is there a maximum z-index value btw?
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Feb 18 '07 #11
On Feb 18, 10:28 am, "Evertjan." <exjxw.hannivo...@interxnl.net>
wrote:
-Lost wrote on 18 feb 2007 in comp.lang.javascript:
"Evertjan." <exjxw.hannivo...@interxnl.netwrote in message
news:Xn*******************@194.109.133.242...
Diilb wrote on 18 feb 2007 in comp.lang.javascript:
>I am not sure if this is the place to post this. But I am looking
for a light weight drag and drop (sortable) library. I have looked
around and there are a few good libraries (Script.aculo.us & Dojo),
but they are a little heavy and involved considering I am just
looking for drag and drop (sortable) functionality.
I don't understand what could be sortable about drag and drop, but
look here:
Perhaps the original poster was referring to its ability to reference
the z-index by placing the currently selected object on top of other
objects?

Could well be.

Usually I increment the z-index over all the others
and don't bother with a theoretical overflow.

Is there a maximum z-index value btw?
I asked the same one time somewhere. I didn't get an answer based on
standards. The answer I did get was ridiculously high. Google maps
uses something like up to a trillion for those little bubbles that
show where things are located.

Peter
Feb 18 '07 #12
On Feb 18, 2:37 pm, "Peter Michaux" <petermich...@gmail.comwrote:
On Feb 18, 10:28 am, "Evertjan." <exjxw.hannivo...@interxnl.net>
wrote:
-Lost wrote on 18 feb 2007 in comp.lang.javascript:
"Evertjan." <exjxw.hannivo...@interxnl.netwrote in message
>news:Xn*******************@194.109.133.242...
>Diilb wrote on 18 feb 2007 in comp.lang.javascript:
>>I am not sure if this is the place to post this. But I am looking
>>for a light weight drag and drop (sortable) library. I have looked
>>around and there are a few good libraries (Script.aculo.us & Dojo),
>>but they are a little heavy and involved considering I am just
>>looking for drag and drop (sortable) functionality.
>I don't understand what could be sortable about drag and drop, but
>look here:
Perhaps the original poster was referring to its ability to reference
the z-index by placing the currently selected object on top of other
objects?
Could well be.
Usually I increment the z-index over all the others
and don't bother with a theoretical overflow.
Is there a maximum z-index value btw?

I asked the same one time somewhere. I didn't get an answer based on
standards. The answer I did get was ridiculously high. Google maps
uses something like up to a trillion for those little bubbles that
show where things are located.

Peter
Does anyone else have ideas on this one ? (a light weight drag and
drop lib? )

Thanks again for all the responses :)

Diilbert

Feb 18 '07 #13
VK
Is there a maximum z-index value btw?
>
I asked the same one time somewhere. I didn't get an answer based on
standards. The answer I did get was ridiculously high. Google maps
uses something like up to a trillion for those little bubbles that
show where things are located.
For ECMAScript version of ActionScript the limit is 10487575 - after
that DOM methods are getting dizzy.

For JScript the display doesn't react on z-index difference for values
above the standard uint precision border of 0xFFFFFFFF (4294967295)
but it neither works for lower values like 4294967290
At the same time it still reacts on values above sint (2147483647)
That suggests that like in ActionScript the limit is not based on some
physical borders but was just off-head chosen by the particular UA
team.

Feb 18 '07 #14
VK wrote on 18 feb 2007 in comp.lang.javascript:
Is there a maximum z-index value btw?

I asked the same one time somewhere. I didn't get an answer based on
standards. The answer I did get was ridiculously high. Google maps
uses something like up to a trillion for those little bubbles that
show where things are located.

For ECMAScript version of ActionScript the limit is 10487575 - after
that DOM methods are getting dizzy.

For JScript the display doesn't react on z-index difference for values
above the standard uint precision border of 0xFFFFFFFF (4294967295)
but it neither works for lower values like 4294967290
At the same time it still reacts on values above sint (2147483647)
That suggests that like in ActionScript the limit is not based on some
physical borders but was just off-head chosen by the particular UA
team.
Why would it act on scripts?

This is DOM and CSS, not scripting, methinks, so IE and FF.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Feb 18 '07 #15
Evertjan. said the following on 2/18/2007 5:41 PM:

<snip>
>
Why would it act on scripts?

This is DOM and CSS, not scripting, methinks,
True.
so IE and FF.
And not Opera, Mozilla, Netscape, Safari or any other browser?

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Feb 18 '07 #16
Randy Webb wrote on 18 feb 2007 in comp.lang.javascript:
Evertjan. said the following on 2/18/2007 5:41 PM:

<snip>
>>
Why would it act on scripts?

This is DOM and CSS, not scripting, methinks,

True.
> so IE and FF.

And not Opera, Mozilla, Netscape, Safari or any other browser?
True, but not scripting, I think.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Feb 18 '07 #17
On Feb 18, 6:20 am, "Diilb" <diilbert.atlan...@gmail.comwrote:
Hi All,

I am not sure if this is the place to post this. But I am looking for
a light weight drag and drop (sortable) library. I have looked around
and there are a few good libraries (Script.aculo.us & Dojo), but they
are a little heavy and involved considering I am just looking for drag
and drop (sortable) functionality.

I am open to all suggestions. And thanks for any input.

Diilbert
I made a simple one here, if this is what you want and in case you
want to use it:
http://dttvb.yi.org/draggablelist/

the DtTvB
..

Feb 21 '07 #18
"the DtTvB" <me********@gmail.comwrote in message
news:11*********************@m58g2000cwm.googlegro ups.com...
On Feb 18, 6:20 am, "Diilb" <diilbert.atlan...@gmail.comwrote:
>Hi All,

I am not sure if this is the place to post this. But I am looking for
a light weight drag and drop (sortable) library. I have looked around
and there are a few good libraries (Script.aculo.us & Dojo), but they
are a little heavy and involved considering I am just looking for drag
and drop (sortable) functionality.

I am open to all suggestions. And thanks for any input.
I made a simple one here, if this is what you want and in case you
want to use it:
http://dttvb.yi.org/draggablelist/
Your JavaScript fails miserably when the LIs have a display type of "inline." Better yet,
it is unreliable.

As it also retains the single-click moves an LI's position. Was that intentional?

-Lost
Feb 22 '07 #19

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Ioannis Vranos | last post by:
I would like to see your views on these. C++98 is already a large language since it supports 4 paradigms and each one is supported well, with optimal space and time efficiency. And this is...
13
by: Ramza Brown | last post by:
This is kind of funny, I posted earlier about a small, light python distro. The thing is, I did it in an hour or so, but amazingly, I got responses from everywhere asking for support on how to do...
4
by: moondaddy | last post by:
I have an app where users will upload photos to their shopping cart. When they review their cart I need to include a light weight thumbnail of the image they uploaded. how can I take the image a...
1
by: arnold | last post by:
Hi, I've been knocking my head against the wall trying to create an XSL transform to perform "normalizations" of a set of XML files that have a common structure. % XML file before transform
68
by: Santiago Romero | last post by:
( Surely if this question has been asked for a zillion of times... ) ( and sorry for my english! ) I'm impressed with python. I'm very happy with the language and I find Python+Pygame a very...
3
by: David | last post by:
That xpairs() generator is nice, but it's not the best possible code What do you mean by best possible? Most efficient? Most readable? And why don't you use islice? eg: def xpairs(seq):...
1
by: John Drako | last post by:
I'm looking for some light-weight, open-source wiki software that I can integrated into my own site, using my own authentication against my own user database. All I would need it to do is handle...
8
by: Ruben | last post by:
error: passing `const Weight' as `this' argument of `float Weight::wgt()' discards qualifiers seems to be some sort of standard error format that I'm not understanding. I have code that...
0
by: Jean-Paul Calderone | last post by:
On Tue, 23 Sep 2008 21:22:08 -0500, Michael Mabin <d3vvnull@gmail.comwrote: You haven't described the problem you want to solve in very much detail. I can't tell, for example, why I shouldn't...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.