Re: [jQuery] Fisheye

2006-09-30 Thread Dan Atkinson

I've got a huge smile on my face right now!

You've done a great job on this total source weighs in at about 8kb +
jQuery, which is great as iUtil.js is resuable for other functions as well.

Excellent work Stefan! Really great!

Now Dojo has one less cool thing that jQuery hasn't! ;)


Stefan Petre wrote:
 
 Sorry for starting a separate thread but the archive is broken. I wanted 
 to introduce my try of a fisheye menu. Maybe will get  a nice plugin out 
 of this
 
 http://interface.eyecon.ro/development/demos/fisheye.html
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 

-- 
View this message in context: 
http://www.nabble.com/Fisheye-tf2358922.html#a6577016
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Passing current object to function

2006-09-30 Thread Christof Donat
Hi,

 I'm attempting to get the href element for the first link it finds and then
 set that as the url for the entire row's on-click event.

Do you mean something like this?

$.fn.tableHover = function(hoverClass) {
$(tr,this).click(function() {
window.location.href = $(this).find('a')[0].href;
}).hover(function() {
$(this).addClass(hoverClass);
}, function() {
$(this).removeClass(hoverClass);
});
}
$('table').tableHover('myHoverClass');

Christof

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


Re: [jQuery] Passing current object to function

2006-09-30 Thread Mungbeans



Christof Donat wrote:
 
 
 $.fn.tableHover = function(hoverClass) {
   $(tr,this).click(function() {
   window.location.href = $(this).find('a')[0].href;
   }).hover(function() {
   $(this).addClass(hoverClass);
   }, function() {
   $(this).removeClass(hoverClass);
   });
 }
 $('table').tableHover('myHoverClass');
 
 

I'm not worthy.

Thank you for your help :)

-- 
View this message in context: 
http://www.nabble.com/Passing-current-object-to-function-tf2360354.html#a6577870
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] jEditable in place editor plugin

2006-09-30 Thread Mika Tuupola

On Sep 29, 2006, at 17:50, Mika Tuupola wrote:

 I have a suggestion for improvement. How about sizing the text inputs
 so they are the same size as the content you are editing? i.e.
 basically it would just add a border around the text (to indicate you
 are editing it)

 Good idea. They could be set in options as: 'rows : 'auto',  cols :  
 'auto'. Both defaulting to auto if nothing is given.
 Some kind of tooltip (via alt tag) would be useful too.

Done. Width and height now default to 'auto'. Rows and cols will  
override widht and height parameter. Also support for optional  
tooltip parameter. Check demo number three:

http://www.appelsiini.net/~tuupola/jquery/jeditable/ 
03_textile_renderer.php

and download:

http://www.appelsiini.net/~tuupola/javascript/jEditable/

-- 
Mika Tuupola
http://www.appelsiini.net/~tuupola/



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


Re: [jQuery] mouse gestures?

2006-09-30 Thread Blair McKenzie
This seemed like an interesting problem so I've attempted to solve it. Be kind.BlairOn 9/30/06, 
Matt Stith [EMAIL PROTECTED] wrote:
This is the closest i've found:http://bradfitz.com/hacks/gestures/
On 9/29/06, Brian Litzinger
 [EMAIL PROTECTED] wrote:
Has anyone done any work with mouse gestures? For example detecting if the
user drug the mouse on a specific element at least 50 pixels left/right,right/left, up/down, down/up?--View this message in context: 

http://www.nabble.com/mouse-gestures--tf2359444.html#a6573213Sent from the JQuery mailing list archive at Nabble.com
.___jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

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


Re: [jQuery] clone() returning the cloned objects instead of a reference

2006-09-30 Thread Renato Formato
 Anyway, why a clone() affects the object. Cloning should only create a 
 copy object, not affect the state of the original one.
  
I think it is because you may want to chain methods on the cloned object.

If clone() does not substitute the cloned object with the original one, 
you could not call methods on it, as the underlaying object would remain 
the original one.

Anyway clone() does not modify the original DOM element. It just switch 
the DOM element in your jquery object.

Another cause of apparent bug is that you clone an object leaving it 
with the same id of its source. After cloning, you should change the id 
of the copy or you will be unable to select the original object again.

If you want to keep a reference to the original jQuery object, Jorn 
suggestion is perfect.

Renato

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


Re: [jQuery] DD's got a problem

2006-09-30 Thread Webunity | Gilles van den Hoven
Use this code instead:

$(document).ready(function() {
$('#foo').find('dd').hide().end().find('dt').click(function() {
$(this).find('dd').each(function() {
if ($(this).is(':visible')) {
$(this).slideUp();
} else {
$(this).slideDown();
}
});
});
});

As you see in your own code, you are only toggling the next() element, 
which is the first after the DT, thus the first DD.

Hope this helps, and btw, it could even be in less code, but maybe some other 
peeps could help you with that.

-- Gilles



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


[jQuery] iUtil use it

2006-09-30 Thread kenton.simpson

Even if your not using the interface plugin you need down load the iUtil
plugin and start using it. I even think that iUtil should go core. 

Thanks Stefan Petre
-- 
View this message in context: 
http://www.nabble.com/iUtil-use-it-tf2362236.html#a6580883
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] clone() returning the cloned objects instead of a reference

2006-09-30 Thread Raziel Alvarez
Ok, I won't argue anymore about the clone(), though I think it's not the behaviour that anyone expects (think on the cloneNode() function) and the documentation then is incorrect or very very confusing: Create cloned copies of all matched DOM Elements. This does not create a cloned copy of this particular jQuery object, instead it creates duplicate copies of all DOM Elements. 
To me this is completely the opposite that you are saying.

Independently of how the clone() should work, then please explain why I get two completely different behaviours with this two snippets of code:

===
div class=templateDivTEMPLATE/div
===

var templateDiv = $('.templateDiv');
var templateDivCopy = templateDiv.clone().get(0); // templateDivCopy is a reference of the original templateDiv
and 

var templateDivCopy = $('.templateDiv').clone().get(0);


with the first one, if I do templateDivCopy.innedHTML = ANY TEXT, then this sets the innerHTML of BOTH elements; but in the second case, if I do the same, only the copy is affected!

Another cause of apparent bug is that you clone an object leaving itwith the same id of its source
That's not really what I'm doing, but I accept it was a good example.


thanks


On 9/30/06, Renato Formato [EMAIL PROTECTED] wrote:
 Anyway, why a clone() affects the object. Cloning should only create a copy object, not affect the state of the original one.
I think it is because you may want to chain methods on the cloned object.If clone() does not substitute the cloned object with the original one,you could not call methods on it, as the underlaying object would remain
the original one.Anyway clone() does not modify the original DOM element. It just switchthe DOM element in your jquery object.Another cause of apparent bug is that you clone an object leaving it
with the same id of its source. After cloning, you should change the idof the copy or you will be unable to select the original object again.If you want to keep a reference to the original jQuery object, Jorn
suggestion is perfect.Renato___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/

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


Re: [jQuery] iUtil use it

2006-09-30 Thread Corey Jewett
A link would be terribly useful when promoting something this hard. :)

Corey


On Sep 30, 2006, at 9:39 AM, kenton.simpson wrote:


 Even if your not using the interface plugin you need down load the  
 iUtil
 plugin and start using it. I even think that iUtil should go core.

 Thanks Stefan Petre
 -- 
 View this message in context: http://www.nabble.com/iUtil-use-it- 
 tf2362236.html#a6580883
 Sent from the JQuery mailing list archive at Nabble.com.


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


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


Re: [jQuery] iUtil use it

2006-09-30 Thread kenton.simpson

I don't want to hot link the file, but you can find it here
http://interface.eyecon.ro/download

Corey Jewett-3 wrote:
 
 A link would be terribly useful when promoting something this hard. :)
 
 Corey
 
 
 On Sep 30, 2006, at 9:39 AM, kenton.simpson wrote:
 

 Even if your not using the interface plugin you need down load the  
 iUtil
 plugin and start using it. I even think that iUtil should go core.

 Thanks Stefan Petre
 -- 
 View this message in context: http://www.nabble.com/iUtil-use-it- 
 tf2362236.html#a6580883
 Sent from the JQuery mailing list archive at Nabble.com.


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

-- 
View this message in context: 
http://www.nabble.com/iUtil-use-it-tf2362236.html#a6581137
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] iUtil use it

2006-09-30 Thread Michael Geary
   Even if your not using the interface plugin you need down load
   the iUtil plugin and start using it. I even think that iUtil should
   go core.

  A link would be terribly useful when promoting something 
  this hard. :) 

 I don't want to hot link the file, but you can find it here 
 http://interface.eyecon.ro/download

My eyes may not be what they used to be, but I don't see anything resembling
iUtil on that page.

-Mike


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


Re: [jQuery] iUtil use it

2006-09-30 Thread Brandon Aaron
It is any of the downloads. Just download the uncompressed version at
the bottom of the page and iUtil is in there.

--
Brandon Aaron

On 9/30/06, Michael Geary [EMAIL PROTECTED] wrote:
Even if your not using the interface plugin you need down load
the iUtil plugin and start using it. I even think that iUtil should
go core.

   A link would be terribly useful when promoting something
   this hard. :)

  I don't want to hot link the file, but you can find it here
  http://interface.eyecon.ro/download

 My eyes may not be what they used to be, but I don't see anything resembling
 iUtil on that page.

 -Mike


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


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


Re: [jQuery] iUtil use it

2006-09-30 Thread Karl Swedberg
On Sep 30, 2006, at 1:16 PM, Michael Geary wrote:

 Even if your not using the interface plugin you need down load
 the iUtil plugin and start using it. I even think that iUtil should
 go core.

 A link would be terribly useful when promoting something
 this hard. :)

 I don't want to hot link the file, but you can find it here
 http://interface.eyecon.ro/download

 My eyes may not be what they used to be, but I don't see anything  
 resembling
 iUtil on that page.

Scroll down to the bottom of the page.

For the uncompressed version, find this line:
- Download Interface uncompressed version: Download Interface  
interface.zip (38kb)

For the packed version, find this line:
- Download Interface compressed version separate files: Download  
Interface compressed interface-compressed.zip (35kb).

Each is a .zip file. Unzip the file after downloading and you'll find  
the iutil.js file in there.

Now my question is, how will iUtil help us? How can we use it? Is  
there any documentation for it that will show how to get the most out  
of it?

Cheers,
Karl
___
Karl Swedberg
www.englishrules.com
www.learningjquery.com

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


[jQuery] contextMenu

2006-09-30 Thread Andre Lewis
I was upgrading one of my older projects today (from jQuery rev 29 !), and noticed that event.contextMenu went away. It looks like it was dropped at 1.0 -- is there a reason it was dropped?Thanks,Andre
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] iUtil use it

2006-09-30 Thread kenton.simpson

Iutil defines these function getPos, getPosition, getSize, getClient,
getScroll, getMargins, getPadding, getBorder, getPointer. There names go a
long way to describe there function. Most if not all the function return
objects with dimensional info about the passed element node. I recently used
it to write a plugin to overlay an element or elements over another element.
the .each could be changed to .attr(), but anyway. Iutil primarily use would
be in locating an elements spacial relationship to others nodes.

jQuery.fn.overlay = function(selector, strict) {
strict = strict == undefined ? strict = true : strict;
elements = jQuery(selector);
if(strict  !elements.length  0) {
throw Element not found to overlay;
}
else if(elements.length  1) {
return this;
}

var pos = jQuery.iUtil.getPos(this[0]);
elements.each( function(idx) {
sty = this.style;
sty.position =  absolute;
sty.top = pos.y + px;
sty.left = pos.x + px;
sty.width = (pos.w - 8) + px;
sty.height = (pos.h - 8) + px;
});
}
-- 
View this message in context: 
http://www.nabble.com/iUtil-use-it-tf2362236.html#a6581857
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] 3D Carousel

2006-09-30 Thread Patrick Hall
On 9/30/06, Stefan Petre [EMAIL PROTECTED] wrote:
 http://interface.eyecon.ro/development/demos/carousel.html


whoa. that rocks.

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


Re: [jQuery] 3D Carousel

2006-09-30 Thread Stefan Nagtegaal
Op 30-sep-2006, om 21:19 heeft Stefan Petre het volgende geschreven:
 http://interface.eyecon.ro/development/demos/carousel.html

Unfortunatly it doesn't work in Safari (2).. :-(


Steef

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


[jQuery] $.ajax(...) not working under IE

2006-09-30 Thread Balkanski

Hi, I tried following :

$.ajax({
type: 'GET',
url: 'php/query/product.php?id=1',
success: function(response){
  alert(response.id);
}
  });

the php script throws {id:1} (JSON notation data)

The alert under IE is 'undefined';

If I alert (response) - 'object' is displayed.
I tried many things -
eval(response)
eval('var p = ' + response);
and many more but nothing works...

Any ideas ?

Thanks in advance.
-- 
View this message in context: 
http://www.nabble.com/%24.ajax%28...%29-not-working-under-IE-tf2356844.html#a6564807
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] iUtil use it

2006-09-30 Thread John Resig
Kenton -

A lot of what you're talking about is already, or is going to be,
added in to the Dimensions module in jQuery:
http://jquery.com/dev/svn/jquery/src/dimensions/dimensions.js

Paul has been working on it - and working with Stefan, to try and move
nearly all of the important iUtil parts over to that plugin.

--John

On 9/30/06, kenton.simpson [EMAIL PROTECTED] wrote:

 Even if your not using the interface plugin you need down load the iUtil
 plugin and start using it. I even think that iUtil should go core.

 Thanks Stefan Petre
 --
 View this message in context: 
 http://www.nabble.com/iUtil-use-it-tf2362236.html#a6580883
 Sent from the JQuery mailing list archive at Nabble.com.


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



-- 
John Resig
http://ejohn.org/
[EMAIL PROTECTED]

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


Re: [jQuery] DD's got a problem

2006-09-30 Thread Jörn Zaefferer
Webunity | Gilles van den Hoven schrieb:
 Use this code instead:

 $(document).ready(function() {
   $('#foo').find('dd').hide().end().find('dt').click(function() {
   $(this).find('dd').each(function() {
   if ($(this).is(':visible')) {
   $(this).slideUp();
   } else {
   $(this).slideDown();
   }
   });
   });
 });
   
That would only work if the dd elements were childs of the dt elements. 
The sepc allows multiple definition terms followed by multiple defintion 
descriptions. Without some kind of nexts('dd') that is pretty hard to 
express with jQuery. Maybe someone else has an idea how to solve this.

-- Jörn

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


Re: [jQuery] 3D Carousel

2006-09-30 Thread Blair McKenzie
Nice!On 10/1/06, Stefan Nagtegaal [EMAIL PROTECTED] wrote:
Op 30-sep-2006, om 21:19 heeft Stefan Petre het volgende geschreven: http://interface.eyecon.ro/development/demos/carousel.htmlUnfortunatly it doesn't work in Safari (2).. :-(
Steef___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/

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


Re: [jQuery] 3D Carousel

2006-09-30 Thread Matt Stith
Wow.. im definatly going to be using this one! Thanks!On 9/30/06, Stefan Petre [EMAIL PROTECTED] wrote:
http://interface.eyecon.ro/development/demos/carousel.html
___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/

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


Re: [jQuery] $.ajax(...) not working under IE

2006-09-30 Thread Blair McKenzie
response is the XMLRequest whatsit. This is so you can access response headers if you need to. So if the result is JSON:$.ajax({  type: 'GET',  url: 'php/query/product.php?id=1',  success: function(response){
 var result = eval((+response.responseText+));   alert(result
.id);  } });On 9/29/06, Balkanski [EMAIL PROTECTED] wrote:
Hi, I tried following :$.ajax({type: 'GET',url: 'php/query/product.php?id=1',
success: function(response){alert(response.id);}});the php script throws {id:1} (JSON notation data)The alert under IE is 'undefined';
If I alert (response) - 'object' is displayed.I tried many things -eval(response)eval('var p = ' + response);and many more but nothing works...Any ideas ?Thanks in advance.--View this message in context: 
http://www.nabble.com/%24.ajax%28...%29-not-working-under-IE-tf2356844.html#a6564807Sent from the JQuery mailing list archive at 
Nabble.com.___jQuery mailing listdiscuss@jquery.com
http://jquery.com/discuss/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Chainable if/else - hot or not?

2006-09-30 Thread Jörn Zaefferer
Hi folks,

the thread about showing and hiding DDs when clicking DTs gave me an 
idea for a chainable if/else construct. I have implemented and tested it 
and now I'd like to know if this is useful enough to be released as a 
plugin or even adding to the core.

Basically I extended the current is(String expression) method. It now 
accepts one or two functions. If one is given, it will be executed for 
every element that fits the expression. If the second function is given, 
it will be executed for every element that does not fit the expression.

Applied to the click dt to show/hide dd example:
$(document).ready(function() {
$('#faq').find('dd').hide().end().find('dt').click(function() {
$(this).next().is(':visible',
function() { $(this).slideUp(); },
function() { $(this).slideDown(); }
);
});
});

The extended is method looks like this:
is: function(expr, ifCallback, elseCallback) {
if(ifCallback) {
var elseCalllback = elseCallback || function() {};
return this.each(function() {
if($(this).is(expr)) {
ifCallback.apply(this);
} else {
elseCallback.apply(this);
}
});
}
return expr ? jQuery.filter(expr,this).r.length  0 : false;
},

The strength of this addition: is() returns the jQuery object, therefore 
it does not break the chain. Your opinions?

-- Jörn


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


Re: [jQuery] DD's got a problem

2006-09-30 Thread Blair McKenzie
>From what I understand of the _expression_ handling code, this would require hard coding and not just a new selector. P could try using this instead (with some tweaking :) ):$(document).ready(function() {
$('#foo dt').click(function() {
var show=false;var self=this;
$(this).find('*').each(function() {   if (this.tagName.toLowerCase()==DT) {show = this==self;} else if (this.tagName.toLowerCase
()==DD) {if (show) $(this).slideDown(); else $(this).slideUp();}});});});
On 10/1/06, Jörn Zaefferer [EMAIL PROTECTED] wrote:
Webunity | Gilles van den Hoven schrieb: Use this code instead: $(document).ready(function() { $('#foo').find('dd').hide().end().find('dt').click(function() { $(this).find('dd').each(function() {
 if ($(this).is(':visible')) { $(this).slideUp(); } else { $(this).slideDown(); }
 }); }); });That would only work if the dd elements were childs of the dt elements.The sepc allows multiple definition terms followed by multiple defintiondescriptions. Without some kind of nexts('dd') that is pretty hard to
express with jQuery. Maybe someone else has an idea how to solve this.-- Jörn___jQuery mailing listdiscuss@jquery.com
http://jquery.com/discuss/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Chainable if/else - hot or not?

2006-09-30 Thread Blair McKenzie
That would definitely make my solution simpler. If it doesn't add too much to the core size, then I'd say yes.On 10/1/06, Jörn Zaefferer 
[EMAIL PROTECTED] wrote:Hi folks,the thread about showing and hiding DDs when clicking DTs gave me an
idea for a chainable if/else construct. I have implemented and tested itand now I'd like to know if this is useful enough to be released as aplugin or even adding to the core.Basically I extended the current is(String _expression_) method. It now
accepts one or two functions. If one is given, it will be executed forevery element that fits the _expression_. If the second function is given,it will be executed for every element that does not fit the _expression_.
Applied to the click dt to show/hide dd example:$(document).ready(function() {$('#faq').find('dd').hide().end().find('dt').click(function() {$(this).next().is(':visible',function() { $(this).slideUp(); },
function() { $(this).slideDown(); });});});The extended is method looks like this:is: function(expr, ifCallback, elseCallback) {if(ifCallback) {var elseCalllback = elseCallback || function() {};
return this.each(function() {if($(this).is(expr)) {ifCallback.apply(this);} else {elseCallback.apply(this);}
});}return expr ? jQuery.filter(expr,this).r.length  0 : false;},The strength of this addition: is() returns the jQuery object, thereforeit does not break the chain. Your opinions?
-- Jörn___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/

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


Re: [jQuery] Chainable if/else - hot or not?

2006-09-30 Thread John Resig
 Well done, Jörn!

 It makes me remember the work of John Klinger:
 http://jquery.com/discuss/2006-July/#7292

It reminded me of that too. I kind of like the simplicity of this
solution. Doing a chainable .else() like what John K did is
fundamentally really hard.

--John

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


Re: [jQuery] mouse gestures?

2006-09-30 Thread Brian Litzinger

This is really good, and written better than what I could have done. In my
case I'm needing it to affect numerous elements on the page such as
li.sortableitem's. It doesn't seem to be allowing me to get the id of which
element is clicked on.
-- 
View this message in context: 
http://www.nabble.com/mouse-gestures--tf2359444.html#a6584504
Sent from the JQuery mailing list archive at Nabble.com.


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



Re: [jQuery] Chainable if/else - hot or not?

2006-09-30 Thread John Resig
Although, going back through his code - I really like what he did. He
made it such that you no longer had to use anonymous function wrappers
- which I really like. It'd be really cool to be able to do:

$(#foo)
.find(div)
.click()
.filter(.someclass)
.addClass(test)
.else()
.addClass(someclass)
.end()
.end();

It looks like it also needs to be ported to 1.0.1. The code is here,
for reference:
http://dmlair.com/jquery/jqIfElse/

--John

On 9/30/06, John Resig [EMAIL PROTECTED] wrote:
  Well done, Jörn!
 
  It makes me remember the work of John Klinger:
  http://jquery.com/discuss/2006-July/#7292

 It reminded me of that too. I kind of like the simplicity of this
 solution. Doing a chainable .else() like what John K did is
 fundamentally really hard.

 --John



-- 
John Resig
http://ejohn.org/
[EMAIL PROTECTED]

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


[jQuery] Community project? Help revive the Lakota language

2006-09-30 Thread Patrick Hall
Hi folks,

I apologize in advance for the length of this post, but I have a
potential community project which could show off jQuery's chops, and
help some people out at the same time.

Here's the background: Through my blog I've ended up in contact with
someone who is working on helping to teach the Lakota language to
kids. Her most recent project was to create a Lakota version of
Scrabble, a story which was written up in a few newspaper articles,
and which I blogged about (that's how I ended up meeting her).

We ended up talking a bit about her work, and she was interested in
developing web-based games for kids to play and learn from. The first
idea she mentioned was flash cards. (I did mess around a bit with some
code a flash card quiz, but I've been too busy to get it working quite
yet.)

I had just read Yehuda's plan for building demos with a wow factor,
and it got me thinking: what if we built demos that also worked as
language teaching tools? We could build quizzes and games that might
appeal to kids. Clearly the wow factor is motivational for kids. It's
a good cause, and everybody knows that there's no tester as efficient
at pounding an application into oblivion as a kid :)

For those that are interested, a couple of issues come to mind:

* It would probably be best to keep it as simple as possible: JSON for
the vocabulary data, jQuery for the games, and the cookie plugin for
things like keeping track of scores. This would mean that server side
stuff wouldn't be necessary. Thus, for the facilitator, adding a new
module would just involve writing a new JSON file and possibly some
images, and then uploading a new folder by FTP.

* One key aspect would involve handling sound recordings of words (the
student clicks and image and hears the name, for instance). This is a
topic that I haven't really seen come up on this list much. Expertise
in this would be great.

* Lots of existing plugins could be used in this project -- the
rotating carousel that Stefen posted today, for instance, would be a
fun way for kids to click the picture of the bird, etc.


I hope it's okay that I wrote up this little proposal here. There's so
much brainpower and creativity on this list, why not see if we can
harness it to help some folks out, and show the capabilities of this
amazing library in the process?

Another cool side effect would be the portability of the quizzes:
Javascript has great Unicode support, and since all the data would be
in JSON files, all the games would be portable to any language pair --
an open source language learning library.

Anyone interested?

Pilamaya (thanks!),
Pat Hall

Some relevant links:

http://en.wikipedia.org/wiki/Lakota_language
Lakota is a Native American language of the Sioux family -- if you've
seen Dances with Wolves, you've heard Lakota.

http://www.indian-affairs.org/languagepreservation.htm
A description of some of this group's previous work

http://blogamundo.net/dev/2006/03/27/flickr-for-language-learning/
Original blog post which resulted in a comment from Tammy Decoteau,
the project organizer

-- 
ᗷɭoℊẚᗰսɳᑯѲ⁈⁈⁈
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] 3D Carousel

2006-09-30 Thread Will Jessup
Stefan ,

Should use my 3d rotator for this ^_^

will
 http://interface.eyecon.ro/development/demos/carousel.html

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



   


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


Re: [jQuery] mouse gestures?

2006-09-30 Thread Kurt Mackey








I just saw this discussion here. 



http://episteme.arstechnica.com/eve/forums/a/tpc/f/6330927813/m/378000821831



Looks like the translated version of this should work:

document. () { return false; } // IE

document. () { return false; } // Others



-Kurt





From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Blair
McKenzie
Sent: Saturday, September 30, 2006 7:55 PM
To: jQuery Discussion.
Subject: Re: [jQuery] mouse gestures?





Good point. I've updated the
plugin so that the gesture callback has access to the originating element as
'this'.

BTW I can't for the life of me remember how to suppress text selection, if
anyone can give me a hand I'd appreciate it. 

Blair



On 10/1/06, Brian Litzinger
[EMAIL PROTECTED] wrote:


This is really good, and written better than what I could have done. In my
case I'm needing it to affect numerous elements on the page such as
li.sortableitem's. It doesn't seem to be allowing me to get the id of which 
element is clicked on.
--
View this message in context: http://www.nabble.com/mouse-gestures--tf2359444.html#a6584504
Sent from the JQuery mailing list archive at Nabble.com.


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










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


[jQuery] jQuery buggy in IE7

2006-09-30 Thread Joe
Has there been much testing with IE7 RC1? Some of the code  I'm writing that uses a lot of slides, fades and cloning works fine simultaneously in FF1.5.0.7, Opera 9.0.2 and Safari 2.0.4 but breaks in IE7 RC1. I'm getting a "This command is not supported." in line 133. I'm not going to dump my source but here's some of the relevant code. It would seem IE7 doesn't like using attr to change type="submit" to type="button" of an input tag.var cloned = $("div#frmPostComment").clone().insertAfter(where).css("visibility","hidden"); // clone the comment box, and put it here, hide itMy line: 133 where attr is messing up IE7 ("This command is not supported."). Removing attr in the line below fixes the IE7 error. But my slides and css() aren't working.var btnCancel =
 $(cloned).find("input.frmSpace").clone().attr("type","button").val(langHash["cancel"]).insertAfter(btnSubmit); // clone the submit into a cancel button and place it besideI've tested the jq 1.0 build and the latest build. I get the same results.Joe___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery buggy in IE7

2006-09-30 Thread John Resig
Have you tried it in IE 6? If I remember correctly, IE has issues
changing input types from one type to another - someone can correct me
on that if I'm mistaken.

--John

On 9/30/06, Joe [EMAIL PROTECTED] wrote:

 Has there been much testing with IE7 RC1? Some of the code I'm writing that
 uses a lot of slides, fades and cloning works fine simultaneously in
 FF1.5.0.7, Opera 9.0.2 and Safari 2.0.4 but breaks in IE7 RC1. I'm getting a
 This command is not supported. in line 133. I'm not going to dump my
 source but here's some of the relevant code. It would seem IE7 doesn't like
 using attr to change type=submit to type=button of an input tag.

 var cloned =
 $(div#frmPostComment).clone().insertAfter(where).css(visibility,hidden);
 // clone the comment box, and put it here, hide it

 My line: 133 where attr is messing up IE7 (This command is not
 supported.). Removing attr in the line below fixes the IE7 error. But my
 slides and css() aren't working.
 var btnCancel =
 $(cloned).find(input.frmSpace).clone().attr(type,button).val(langHash[cancel]).insertAfter(btnSubmit);
 // clone the submit into a cancel button and place it beside

 I've tested the jq 1.0 build and the latest build. I get the same results.

 Joe

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


Re: [jQuery] Help with the SVN Build Process

2006-09-30 Thread Joel Birch
Hi folks!

I am a graphic designer who has taught myself web development over  
the last few years. I have been using jQuery for the behaviour layer  
of a site since maybe March this year and absolutely love it. From a  
Mac-oriented, drag and drop,user-friendly perspective, jQuery makes  
javascript like it just should be.

However, I find the Subversion stuff very hard to grasp. Am I right  
that we actually need to use the command line (gasp!) for much of  
this? I have given John Resig's help steps my best shot but didn't  
quite get there. Step 1, install JRE, I went to that address but had  
no idea which download was for me so instead I assumed that Mac OS X  
would already have the right version installed. Step 2, I downloaded  
Ant and found the 'lib' and 'bin' folders and copied them to a folder  
as instructed at that site. I chose a folder named Ant that I created  
in my Applications folder. I didn't know what to do after that. The  
install instructions do not help me as they assume that I have a  
greater understanding of what is going on than I do:

 * Add the bin directory to your path.
How do I do this?

 * Set the ANT_HOME environment variable to the directory where  
 you installed Ant. On some operating systems the ant wrapper  
 scripts can guess ANT_HOME (Unix dialects and Windows NT/2000) -  
 but it is better to not rely on this behavior.
I am getting the feeling that I am supposed to know how to do this -  
probably in the command line?

 * Optionally, set the JAVA_HOME environment variable (see the  
 Advanced section below). This should be set to the directory where  
 your JDK is installed.
Again - I'm lost.

I am obviously missing something here - can we not just have some  
sort of friendly web interface that retrieves the latest version of  
jQuery and whatever else this Ant build gives you? This seems like  
a high barrier to entry considering the potential demographic that  
jQuery is aimed at (web designers and developers).

The more I think about it the more I realise I am missing something  
here - especially as no-one else seems bothered by this. I understand  
what software developers use SVN for but do not understand why the  
general user of the software is required to set up all these Java/ 
Apache/Ant/SVN technologies just to retrieve an up-to-date version to  
use.

Thanks for your time and sorry for the long post.

Joel.



On 17/08/2006, at 7:24 AM, John Resig wrote:

 Step 1:
 Go to this page and download and install Java Runtime Environment  
 (JRE) 5.0:
 http://java.sun.com/javase/downloads/index.jsp

 Step 2:
 Download and install Apache Ant:
 http://ant.apache.org/bindownload.cgi

 Step 3:
 Go to the jQuery directory and type 'ant'. You now have a compiled
 version of jQuery, the documentation, and the test suite.

 Steps 2  3 Change depending if you're using Ant or the Makefile.
 Since jQuery now includes the Ant build file, it's much easier to
 simply use that (and more cross-platform). For UNIX-type people, like
 myself, I'll just see the Makefile, type Make, and be done with it.

 I recommend that you check out the new, updated, README file in jQuery
 SVN - as it explains this whole process.

 --John

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




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


Re: [jQuery] FadeIn Question

2006-09-30 Thread Klaus Hartl


Glen Lipka schrieb:
 I am working on a page with some tabs.
 http://glenlipka.kokopop.com/jQuery/payroll/AssistedPayroll.htm
 
 I didn't use the tabs plugin because it seemed to have so much specific 
 css attached to it and I wanted to keep it simple.
 
 The main bug I have is that when you click quickly through the tabs, the 
 one that was fading ON persists and gets displayed on the next tab.  So 
 I end up with 2 panels on one tab.
 
 How can I avoid this?
 
 Is there a stripped down version of the tabs plugin that doesn't have 
 all the specific css?
 
 Glen
 


Glen, you can simply throw away the style sheet. The plugin does not 
rely on it at all.


-- Klaus

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


Re: [jQuery] mouse gestures?

2006-09-30 Thread Blair McKenzie
Thanks Kurt, that did the trick. :)On 10/1/06, Kurt Mackey [EMAIL PROTECTED] wrote:













I just saw this discussion here. 



http://episteme.arstechnica.com/eve/forums/a/tpc/f/6330927813/m/378000821831




Looks like the translated version of this should work:

document. () { return false; } // IE

document. () { return false; } // Others



-Kurt





From:
[EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED]] On Behalf Of Blair
McKenzie
Sent: Saturday, September 30, 2006 7:55 PM
To: jQuery Discussion.
Subject: Re: [jQuery] mouse gestures?





Good point. I've updated the
plugin so that the gesture callback has access to the originating element as
'this'.

BTW I can't for the life of me remember how to suppress text selection, if
anyone can give me a hand I'd appreciate it. 

Blair



On 10/1/06, Brian Litzinger
[EMAIL PROTECTED] wrote:


This is really good, and written better than what I could have done. In my
case I'm needing it to affect numerous elements on the page such as
li.sortableitem's. It doesn't seem to be allowing me to get the id of which 
element is clicked on.
--
View this message in context: http://www.nabble.com/mouse-gestures--tf2359444.html#a6584504

Sent from the JQuery mailing list archive at Nabble.com.


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











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


Re: [jQuery] Help with the SVN Build Process

2006-09-30 Thread Ⓙⓐⓚⓔ
Sorry! I got make on my machine from installing xcode(from appple) or
cpan(cpan.perl.org) or somewhere along the way!
I've use it a all the  time,,, cpan (the magic perl installer)
sometimes fails, so I have to resort to make.

make syntax is way out there... ant is cool and xml!

good luck anting! I just avoided it on my home mac os 10 machine... I
would have used it on an xmp or java-setup machine.. (I think java is
installed completely on this machine... Perhaps I need to add a
classpath!),,,

Good luck!

puppy has to pee!!!
http://cigar.dynalias.org/junior/



On 9/30/06, Joel Birch [EMAIL PROTECTED] wrote:
 Thanks for the response Jake. You still give me far too much credit
 though. I have no idea how to go about using Makefile. What is it?
 I assume its not an OS X application with a simple GUI. Do I use the
 Terminal? If so, what do I type? A google search reveals more
 baffling command-line discussion that is still way over there on
 the other side of my knowledge gap.

 My experience with the command line is limited to copy and pasting
 from detailed tutorials to get a job done, then I breathe a sigh of
 relief and quit Terminal with no idea what I did but happy that it
 seemed to work. If Makefile can't be explained in this way then I
 guess I (and others of my knowledge level) am not going to be able to
 keep up to date with jQuery like I really want to.

 I don't know anyone that does web design/development that would
 understand how to use Makefile or Ant, so it seems to me that this
 may put potential converts off.

 Joel.


 On 01/10/2006, at 2:30 PM, Ⓙⓐⓚⓔ wrote:

  I saw ant, and since I hadn't anted on this machine,,, I figured try
  the old fashioned Makefile... it's missing a line @66 to create the
  test/js directory out of the box it does all the make features
  except test pretty good start!
 
  @66
@@mkdir -p ${TEST_DIR}/js
 
  Skip the ant if you are not an ant-head (no offense intended)... I'm
  an old fashioned make-head!
 
 
  On 9/30/06, Joel Birch [EMAIL PROTECTED] wrote:
  Hi folks!
 
  I am a graphic designer who has taught myself web development over
  the last few years. I have been using jQuery for the behaviour layer
  of a site since maybe March this year and absolutely love it. From a
  Mac-oriented, drag and drop,user-friendly perspective, jQuery makes
  javascript like it just should be.
 
  However, I find the Subversion stuff very hard to grasp. Am I right
  that we actually need to use the command line (gasp!) for much of
  this? I have given John Resig's help steps my best shot but didn't
  quite get there. Step 1, install JRE, I went to that address but had
  no idea which download was for me so instead I assumed that Mac OS X
  would already have the right version installed. Step 2, I downloaded
  Ant and found the 'lib' and 'bin' folders and copied them to a folder
  as instructed at that site. I chose a folder named Ant that I created
  in my Applications folder. I didn't know what to do after that. The
  install instructions do not help me as they assume that I have a
  greater understanding of what is going on than I do:
 
  * Add the bin directory to your path.
  How do I do this?
 
  * Set the ANT_HOME environment variable to the directory where
  you installed Ant. On some operating systems the ant wrapper
  scripts can guess ANT_HOME (Unix dialects and Windows NT/2000) -
  but it is better to not rely on this behavior.
  I am getting the feeling that I am supposed to know how to do this -
  probably in the command line?
 
  * Optionally, set the JAVA_HOME environment variable (see the
  Advanced section below). This should be set to the directory where
  your JDK is installed.
  Again - I'm lost.
 
  I am obviously missing something here - can we not just have some
  sort of friendly web interface that retrieves the latest version of
  jQuery and whatever else this Ant build gives you? This seems like
  a high barrier to entry considering the potential demographic that
  jQuery is aimed at (web designers and developers).
 
  The more I think about it the more I realise I am missing something
  here - especially as no-one else seems bothered by this. I understand
  what software developers use SVN for but do not understand why the
  general user of the software is required to set up all these Java/
  Apache/Ant/SVN technologies just to retrieve an up-to-date version to
  use.
 
  Thanks for your time and sorry for the long post.
 
  Joel.
 
 
 
  On 17/08/2006, at 7:24 AM, John Resig wrote:
 
  Step 1:
  Go to this page and download and install Java Runtime Environment
  (JRE) 5.0:
  http://java.sun.com/javase/downloads/index.jsp
 
  Step 2:
  Download and install Apache Ant:
  http://ant.apache.org/bindownload.cgi
 
  Step 3:
  Go to the jQuery directory and type 'ant'. You now have a compiled
  version of jQuery, the documentation, and the test suite.
 
  Steps 2  3 Change depending if you're using Ant or the Makefile.