Re: [jQuery] 1.1 drag not working on mozilla in linux

2007-01-23 Thread jason schleifer

ah!  yep, draging works, but dropping breaks it.  works fine in firefox, but
not in mozilla.


On 1/23/07, bander [EMAIL PROTECTED] wrote:



For me, drag alone works (try http://interface.eyecon.ro/demos ), but as
soon
as droppables are added in, yes, it's broken.


jason schleifer wrote:

 ever since jquery switched to 1.1 all the demos I see with drag aren't
 working correctly.. they work fine in firefox, but in mozilla they're
 totally busted.

 does anyone else see this problem??

 -jason


--
View this message in context:
http://www.nabble.com/1.1-drag-not-working-on-mozilla-in-linux-tf3044031.html#a8525261
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/





--
jason schleifer
ah-ni-may-tor | weirdo
http://jonhandhisdog.com/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] 1.1 drag not working on mozilla in linux

2007-01-19 Thread jason schleifer

ever since jquery switched to 1.1 all the demos I see with drag aren't
working correctly.. they work fine in firefox, but in mozilla they're
totally busted.

does anyone else see this problem??

-jason

--
jason schleifer
ah-ni-may-tor | weirdo
http://jonhandhisdog.com/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Interface 1.1

2007-01-15 Thread jason schleifer

very cool!  glad to see an update, but I get a number of errors in linux on
mozilla..

Draggables are very very slow.. in fact, they dont' drag.. they just sort of
appear wherever I mouseup.

The imagebox keeps blinking on and off.. every time it opens, it displays,
and then closes adn displays again, and again, and again..

other than that, it's pretty cool! :)


On 1/15/07, Alex Cook [EMAIL PROTECTED] wrote:


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Stefan Petre
Subject: [jQuery] Interface 1.1

Hi,

Paul and I, with help from many jQuery developers, put together a new
release of Interface. It has a number of new features, new plugins,
speed improvements, nice demos, and improved documentation (there's
still a lot to improve there). If you would like to learn more about the

1.1 release of Interface, check out our brand-new news section as well

as the updated changelog!.

http://interface.eyecon.ro

-

Hey now, that is a large improvement.  Thanks for the work guys.

-ALEX

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/





--
jason schleifer
ah-ni-may-tor | weirdo
http://jonhandhisdog.com/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] selectable not working after loading content through .load the second time

2006-12-12 Thread jason schleifer

Heya phil!

thanks for the feedback!  I noticed it got very slow if I had more than 20
items selectable.. which, of course, is what I want to do.. heh :)

I'd  love to try the paint selection, if you've got time to send it my way!

cheers!
-jason

On 12/12/06, floepi [EMAIL PROTECTED] wrote:



Hi Jason,

i had the same problem. If you include a script reinitialise selectables
code /script at the end of the data you are loading, it should work. I
assume that the onsuccess function is called before your newly loaded
elements are registered in the dom. It is not slick but works.

By the way - if you have a lot of elements, selectables tends to become
very
slow and unusable. Had to write my own version which works like paint
selection in maya but is much faster. Give me a shout if you wanna try
that
at some point.

Cheers

Phil







jason schleifer wrote:

 that's what I thought.. so the select command should work just fine..


 On 12/11/06, Chris Domigan [EMAIL PROTECTED] wrote:


 and if I go $(#content).load()
 
  does the stuff inside #content get deleted automatically?



 Yes - load() overwrites the contents of the element.

 Chris



 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/





 --
 jason schleifer
 ah-ni-may-tor | weirdo
 http://jonhandhisdog.com/

 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/



--
View this message in context:
http://www.nabble.com/selectable-not-working-after-loading-content-through-.load-the-second-time-tf2804253.html#a7836677
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/





--
jason schleifer
ah-ni-may-tor | weirdo
http://jonhandhisdog.com/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] selectable not working after loading content through .load the second time

2006-12-11 Thread jason schleifer

Hey folks,

I've got a problem where I'm trying to use the selectable plugin (very cool,
btw) and it isn't working the second time content is loaded onto the page..

here's what's happening.

I have a page that has a list of tags on it.  When the user clicks on a tag,
it loads a series of images from a database and displays them in a div.
By default when you go to the page the script loads the latest images.

At the end of the php script that loads images, I have some code that tells
everything in that div to be a selectable.. it looks like:

script type=text/javascript
   $('#content').Selectable(
   {
   accept: 'preview',
   opacity : 0.2,
   selectedclass: 'selecteditem',
   helperclass: 'selecthelper',
   onselect: function(serial)
   {
   var selected = serial.hash;
   //toggleButtons(1);

   }
   }
   );
   /script

This works as expected and is great.  However, when the user clicks on a tag
and the new set of images loads up (I'm using something like:

$(content .load(./loadImages.php));

the selectable rubberband select box works, but none of the items are
selectable.

I'm guessing that it's trying to run the selectable code before the images
exist.. but even when I do something like:

function applySelectables ()
{
   $('#content').Selectable(
   {
   accept: 'preview',
   opacity : 0.2,
   selectedclass: 'selecteditem',
   helperclass: 'selecthelper',
   onselect: function(serial)
   {
   var selected = serial.hash;
   }
   }
   );

}

   $(#content).load(./showRef.php, function() {
   applySelectables();
   });

it still doesn't work.


I'm not getting any errors returned in the code, so I'm curious if anyone
has any suggestions..

cheers!


--
jason schleifer
ah-ni-may-tor | weirdo
http://jonhandhisdog.com/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] selectable not working after loading content through .load the second time

2006-12-11 Thread jason schleifer

I was re-applying the functionality.. I'm worried that it's trying to apply
it before the content actually gets created..

is there any way to force the order?

and if I go $(#content).load()

does the stuff inside #content get deleted automatically?

On 12/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


You need to reapply the functionality each time a new #content element is
created. Presumably you delete and recreate it (I didnt read the code
carefully enough to be sure... :) ).

 Hey folks,

 I've got a problem where I'm trying to use the selectable plugin (very
 cool,
 btw) and it isn't working the second time content is loaded onto the
 page..

 here's what's happening.

 I have a page that has a list of tags on it.  When the user clicks on a
 tag,
 it loads a series of images from a database and displays them in a div.
 By default when you go to the page the script loads the latest images.

 At the end of the php script that loads images, I have some code that
 tells
 everything in that div to be a selectable.. it looks like:

 script type=text/javascript
 $('#content').Selectable(
 {
 accept: 'preview',
 opacity : 0.2,
 selectedclass: 'selecteditem',
 helperclass: 'selecthelper',
 onselect: function(serial)
 {
 var selected = serial.hash;
 //toggleButtons(1);

 }
 }
 );
 /script

 This works as expected and is great.  However, when the user clicks on a
 tag
 and the new set of images loads up (I'm using something like:

 $(content .load(./loadImages.php));

 the selectable rubberband select box works, but none of the items are
 selectable.

  I'm guessing that it's trying to run the selectable code before the
 images
 exist.. but even when I do something like:

 function applySelectables ()
 {
 $('#content').Selectable(
 {
 accept: 'preview',
 opacity : 0.2,
 selectedclass: 'selecteditem',
 helperclass: 'selecthelper',
 onselect: function(serial)
 {
 var selected = serial.hash;
 }
 }
 );

 }

 $(#content).load(./showRef.php, function() {
 applySelectables();
 });

 it still doesn't work.


 I'm not getting any errors returned in the code, so I'm curious if
anyone
 has any suggestions..

 cheers!


 --
 jason schleifer
 ah-ni-may-tor | weirdo
 http://jonhandhisdog.com/
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/





--
jason schleifer
ah-ni-may-tor | weirdo
http://jonhandhisdog.com/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] selectable not working after loading content through .load the second time

2006-12-11 Thread jason schleifer

that's what I thought.. so the select command should work just fine..


On 12/11/06, Chris Domigan [EMAIL PROTECTED] wrote:



and if I go $(#content).load()

 does the stuff inside #content get deleted automatically?



Yes - load() overwrites the contents of the element.

Chris



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/






--
jason schleifer
ah-ni-may-tor | weirdo
http://jonhandhisdog.com/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Interface Selectable.. function on deselect

2006-11-30 Thread jason schleifer

Heya gilles!

ah, thanks for that!  :)  I'm actually not much of a coder, just an animator
who happens to need to pop open vi every once in a while and hack away at
stuff. :)

(btw, the name's jason).

Thanks again for a great plugin!!
-jason

On 11/29/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


Hi Stefan,

Good one, i'll add this to the iSelectable core later on today.

There is one error in your code though:
 if (jQuery.selectedone == true  this.f.onselect) {
 this.f.onselect(jQuery.Selectserialize(jQuery.attr(this,'id')));
 } else {
 this.f.ondeselect();
 }


This should read:
 if (jQuery.selectedone == true  this.f.onselect) {
 this.f.onselect(jQuery.Selectserialize(jQuery.attr(this,'id')));
 } else if (this.f.ondeselect) {
 this.f.ondeselect();
 }


Or even this:
 if (jQuery.selectedone == true) {
if (this.f.onselect)
 this.f.onselect(jQuery.Selectserialize(jQuery.attr(this,
'id')));
else if (this.f.ondeselect)
 this.f.ondeselect();
 }


This depends on how the code is right now, but i can't see it from here.
The point is, you forgot to check if there is a ondeselect assigned.

-- Gilles


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/





--
jason schleifer
ah-ni-may-tor | weirdo
http://jonhandhisdog.com/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Interface Selectable.. function on deselect

2006-11-29 Thread jason schleifer

I've just started using jQuery and the really nice Interface plugin and
found that I was needing to call a function when something was de-selected
using the Selectable plugin.

As a quick hack, I've added a few lines to the iselect.js code, but would
love to see this integrated properly into the core plugin.

First, I changed the following code:

   this.f = {
   a : o.accept,
   o : o.opacity ? parseFloat(o.opacity) : false,
   sc : o.selectedclass ? o.selectedclass : false,
   hc : o.helperclass ? o.helperclass : false,
   onselect : o.onselect ? o.onselect : false
   };

to include an ondeselect option:

   this.f = {
   a : o.accept,
   o : o.opacity ? parseFloat(o.opacity) : false,
   sc : o.selectedclass ? o.selectedclass : false,
   hc : o.helperclass ? o.helperclass : false,
   onselect : o.onselect ? o.onselect : false,
   ondeselect : o.ondeselect ? o.ondeselect : false
   };

Then I modified this:

   if (jQuery.selectedone == true  this.f.onselect) {
   this.f.onselect(jQuery.Selectserialize(jQuery.attr(this,'id')));
   }

to:

if (jQuery.selectedone == true  this.f.onselect) {
   this.f.onselect(jQuery.Selectserialize(jQuery.attr(this,'id')));
   }
   else
   {
   this.f.ondeselect();
   }


After doing that, it's possible to call the selectable plugin with something
like this:

   script type=text/javascript
   $('#content').Selectable(
   {
   accept: 'selectable',
   opacity : 0.2,
   selectedclass: 'selecteditem',
   helperclass: 'selecthelper',
   onselect: function(serial)
   {
   var selected = serial.hash;
   alert(selected);
   },
   ondeselect: function()
   {
   alert(deselecting);
   }
   }
   );
   /script

and it works great!

just thought others might be interested.. thanks again for a really awesome
set of plugins!
-jason

--
jason schleifer
ah-ni-may-tor | weirdo
http://jonhandhisdog.com/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/