Re: [jQuery] fadeIn and fieldsets (pixel shifting bug)

2006-10-05 Thread Giuliano Marcangelo
Sam,try setting some padding to your fieldset.I tested with the following :-fieldset {padding:10px;}...and the movement stopsOn 04/10/06, 
Sam Collett [EMAIL PROTECTED] wrote:
Update page.There is a way to prevent fields from moving when you mouse over them.Simply set cssText to 'null'. However, not ideal - if you set the CSSmanually with jQuery, plus the text content is shifted instead.
Anyone know of a proper solution?On 04/10/06, Sam Collett [EMAIL PROTECTED] wrote: I have come across a bug with fadeIn, demonstrated on the following page:
 http://www.texotela.co.uk/fadeinbug.php Form inputs (radio button, dropdowns, text boxes etc) move by a pixel whenever I mouse over them. I know it is to do with fadeIn as the
 fieldset below (which is left alone by jQuery) doesn't have this problem. Only happens in Firefox (IE works fine).___jQuery mailing list
discuss@jquery.comhttp://jquery.com/discuss/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Getting x- and y-positions of elements

2006-10-05 Thread Paul Bakaus
Hi again,good points there, shurely distance(first, second) is not very jQueryish. Probably better would be $(#first).distance(#second) or something like this :) but it's not too important, I just thought about semantics.
Anyway, check it into the SVN into dimensions.js if you can, otherwise just send me again your current version and I will do it for you (ICQ me at 46950233 or gtalk if you want). See ya,Paul
2006/10/4, Brandon Aaron [EMAIL PROTECTED]:
On 10/4/06, Paul Bakaus [EMAIL PROTECTED] wrote: Good work, tell me wether you want to add it to dimensions.js if ready!I think it is ready to be included in 
dimensions.js as it is if no onehas any objections or feature requests. :)--Brandon Aaron___jQuery mailing list
discuss@jquery.comhttp://jquery.com/discuss/-- Paul BakausWeb DeveloperHildastr. 35
79102 Freiburg
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


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

2006-10-05 Thread Christof Donat
Hi,

 Just putting in my vote for John's method. To me it makes sense, and would
 mean I wouldn't have to keep track of numerous .end()s

You wouldn't nedd that with my aproach as well. Actually you could easily tell 
if you need to call end() - simply by looking at the function name. With 
Jhons solution you have to look if the function-call provides a 
context-function. See the difference:

Johns aproach:

// add class to all divs with class hideme
var count = 0;
$('div.hideme').hide().filter('.showme',function() {
count++;
$(this).show();
}).addClass('test');

// add class to all divs with class hideme and showme

$('div.hideme').hide().filter('.showme').each(function() {
count++;
$(this).show();
}).addClass('test');

My aproach:

// add class to all divs with class hideme
$('div.hideme').hide().filterend('.showme',function() {
count++;
$(this).show();
}).addClass('test');

// add class to all divs with class hideme and showme
$('div.hideme').hide().filter('.showme',function() {
count++;
$(this).show();
}).addClass('test');

Christof

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


Re: [jQuery] New Plugin: mousewheel

2006-10-05 Thread Mathias Bank
I think, there is a little bug in your plugin. If you use $(this) in
the event function, your are pointing (in firefox) to the window
instead to the element.

Here is my code (firebug is your fried :):

$('.leaf').mousewheel(function(event, delta){
  if (delta  0) {
console.info(Up);
console.log($(this)); //will return [window]
  } else if (delta  0) {
console.info(Down);
  }
},true);


Mathias

2006/9/29, Brandon Aaron [EMAIL PROTECTED]:
  I overrode the mousewheel method...

 I don't think I used the correct terminology there. That should be 'I
 overloaded' instead of 'I overrode' ... at least I think so.

 --
 Brandon Aaron

 On 9/28/06, Brandon Aaron [EMAIL PROTECTED] wrote:
  Okay ... I've updated the plugin once again.
 
  I overrode the mousewheel method to take an optional two functions
  instead of one. The first function is the up handler and the second
  function is the down handler. The preventDefault is still the last
  param. I also added mousewheelup and mousewheeldown along with
  unmousewheelup and unmousewheeldown. However, you can't chain
  mousewheelup and mousewheeldown together. The last one in the chain
  will override the previous. Also unmousewheelup and unmousewheeldown
  will remove both up and down if they exist. I tried to get around this
  but couldn't easily do so. If you need a seperate function for both up
  and down, just use mousewheel method with two functions.
 
  The example/test page is updated as well as the SVN. The blog entry
  however, is not updated yet.
 
  I've also posted this on the plugins page of jquery.com.
 
  Brandon
 

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


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


[jQuery] Plugin Rewrite: Accordion

2006-10-05 Thread Jörn Zaefferer
Hi folks,

instead of pointing Frank what he could change on his code, I gave it a try for 
myself. You can see the result, yet badly documented, here: 
http://www.joern.jquery.com/accordion/accordion.html

The behaviour should be exactly the same as the original. Is this worthy to put 
it in the jQuery plugin repository?

-- Jörn
-- 
GMX DSL-Flatrate 0,- Euro* - Überall, wo DSL verfügbar ist!
NEU: Jetzt bis zu 16.000 kBit/s! http://www.gmx.net/de/go/dsl

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


Re: [jQuery] Plugin Rewrite: Accordion

2006-10-05 Thread Fil
 The behaviour should be exactly the same as the original.

It sure works fine in Safari

 Is this worthy to put it in the jQuery plugin repository?

I have a question about this: is there (any plans to) an open SVN repository
for jQuery plugins? I'd hate to pollute the main development repo with my
buggy plugin projects :D -- but something's clearly missing here, as we're
unable to really cooperate on the same files and instead must each have a
set of scripts on one's servers.

If this is any indication, we have opened such a project for SPIP, called
the SPIP Zone, and now have around 100 commiters, with no conflict as code
is always progressing (or forked when visions differ). The only base for
participation is accepting a Charter that basically says that everything
we do there is free software around SPIP, for the common good, with no
advertising/self-promotion.

-- Fil


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


Re: [jQuery] Plugin Rewrite: Accordion

2006-10-05 Thread Klaus Hartl

Jörn Zaefferer schrieb:
 Hi folks,
 
 instead of pointing Frank what he could change on his code, I gave it a try 
 for myself. You can see the result, yet badly documented, here: 
 http://www.joern.jquery.com/accordion/accordion.html
 
 The behaviour should be exactly the same as the original. Is this worthy to 
 put it in the jQuery plugin repository?
 
 -- Jörn

Interesting! Did you know I wrote an accordion plugin as well, together 
with Gilles, a while ago?

It's based on a definition list, so it's a little more semantic:

http://stilbuero.de/jquery/accordion/

:-)


-- Klaus

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


Re: [jQuery] Plugin Rewrite: Accordion

2006-10-05 Thread Alex Brem
Jörn Zaefferer wrote:
 Hi folks,
 
 instead of pointing Frank what he could change on his code, I gave it
 a try for myself. You can see the result, yet badly documented, here:
 http://www.joern.jquery.com/accordion/accordion.html
 
 The behaviour should be exactly the same as the original. Is this
 worthy to put it in the jQuery plugin repository?

Hi Jörn,

with Firefox 1.5.0.7 on Windows I see some display bugs concerning the
height of the sub elements.

In the 1st example the height of the third element and in the 2nd
example the second and third element grows out of its box at the bottom.

No problems seem to appear on Firefox (DeerPark) 1.5.0.6 on my Mac.

Alex

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


Re: [jQuery] Capturing modifier key events

2006-10-05 Thread Sam Collett
On 05/10/06, Rich Manalang [EMAIL PROTECTED] wrote:
 What's the best way to capture modifier key events with Jquery (i.e.,
 ctrl1)?

 Rich

This is what I do (in my numeric plugin)

$(#myinput).keypress(
function(e)
{
var key = e.charCode ? e.charCode : e.keyCode ? e.keyCode : 0;
if(e.ctrlKey  key == 49)
{
alert(ctrl + 1 pressed);
}
}
)

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


Re: [jQuery] Capturing modifier key events

2006-10-05 Thread Jörn Zaefferer
 var key = e.charCode ? e.charCode : e.keyCode ? e.keyCode : 0;

Thats looks like something that could be normalized by jQuery.

-- Jörn
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

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


Re: [jQuery] Capturing modifier key events

2006-10-05 Thread Sam Collett
On 05/10/06, Jörn Zaefferer [EMAIL PROTECTED] wrote:
  var key = e.charCode ? e.charCode : e.keyCode ? e.keyCode : 0;

 Thats looks like something that could be normalized by jQuery.

 -- Jörn

That may be a good idea - as long as you don't change the existing
items (charCode, keyCode etc).

I have a test page for showing the various event properties related to
key presses, and have found a few things with various browsers.
http://www.texotela.co.uk/keypress.php

In Firefox:
e.keyCode return cursor keys, backspace, del/ins, home/end, PgUp/PgDown
e.charCode returns input character (A,B,C,1,2,3, , ^ etc)

In IE:
e.keyCode returns the same as e.charCode in Firefox
The keys keyCode detects in Firefox are not detected at all in IE (so
you cannot prevent copy/paste in text boxes for example)

Opera is like Firefox, but does not use charCode (it seems to be
merged with keyCode). You get e.which in Firefox and Opera (not IE).

This is how I found out that Opera returns a keyCode (16) when shift
is pressed (other browsers don't) and it doesn't detect when ins/del
and home/end are pressed.

ctrl+A returns e.ctrlKey (true) and e.charCode (97, lowercase 'a') in
Firefox, nothing in IE and e.ctrlKey (true) and e.charCode (65,
uppercase 'a'). CapsLock has no impact on this.

I am not really sure which browser has done it 'properly' as they all
work differently.

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


Re: [jQuery] Capturing modifier key events

2006-10-05 Thread Sam Collett
 ...and e.ctrlKey (true) and e.charCode (65, uppercase 'a').
Referring to Opera in this situation

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


Re: [jQuery] Unwanted side effects when jQuery object is empty?

2006-10-05 Thread Dave Methvin

 $(.rounded).removeClass(rounded).wrap(env(div, test,
{class:rounded})); 

 I found that the function was being called once
 even though no html was generated. 
 
The jQuery object doesn't have any elements, but by the time the wrap method
executes it has already evaluated its arguments, which in this case includes
your env() function. The env() executes once, only once, and always once, no
matter how many elements the jQuery object has selected.

 I can avoid the problem by rewriting the code as something like 

$(.rounded).removeClass(rounded).each(function(){$(this).wrap(env(div,
test, {class:rounded}))}); 

Right, because the anonymous function will be executed once for each element
in the jQuery object.



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


[jQuery] New plugin: toXML (XML serializer)

2006-10-05 Thread Mark Gibson
Hi,
I've submitted the XML serializer plugin to the wiki:

http://jquery.com/docs/Plugins/toXML/

- Mark Gibson

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


Re: [jQuery] New plugin: toXML (XML serializer)

2006-10-05 Thread Mathias Bank
Oh, that's interesting. Perhaps this page will help you:

http://simon-kuehn.de/projekte_innerdom.html (via
http://www.strohhalm.org/forum/index.php?action=viewTopictopic=1516)

Mathias

2006/10/5, Mark Gibson [EMAIL PROTECTED]:
 Hi,
 I've submitted the XML serializer plugin to the wiki:

 http://jquery.com/docs/Plugins/toXML/

 - Mark Gibson

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


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


[jQuery] Plugin Update: numeric

2006-10-05 Thread Sam Collett
I have updated my plugin for only allowing numbers to be typed into
input boxes. It now works with textareas (possibly of use if you need
to enter a very large number). You can also prevent pasting (so people
don't paste in non-numeric values), while still allowing copying and
cutting.

Works in IE 6, Firefox 1.5 and Opera 8.51 (I think later versions of
Opera will be fine too).

Demo, code:
http://www.texotela.co.uk/code/jquery/numeric/

The plugin found at http://sam.collett.googlepages.com/numeric.html is
the old version and will no longer be updated (the same is true of all
my plugins on Google Pages).

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


Re: [jQuery] NEWS: JQuery mentioned in Web Builder magazine, Sept 2006 issue #154

2006-10-05 Thread digital spaghetti
Hey Rik,

I used that article to great effect with my new Wordpress theme (you
can see it in action at http://www.digitalspaghetti.me.uk)

Thanks for a great article!

Tane

On 10/5/06, Rik Lomas [EMAIL PROTECTED] wrote:
 Hi guys,

 It was me who wrote that article - the magazine is actually called
 .net in the UK [http://www.netmag.co.uk/], but they change the title
 for the US for conflict reasons (or something like that).

 In fact, issue 155 (out now in the UK) has another jQuery article, on
 improving accessibility with jQuery, and there should be another one
 in issue 157 (that should be the December issue) about fixing the back
 button in Ajax.

 Rik


 On 05/10/06, Sam Collett [EMAIL PROTECTED] wrote:
  On 04/10/06, Rey Bango [EMAIL PROTECTED] wrote:
   Not sure if any of you read Web Builder magazine. Its a UK-based
   magazine published by the same guys that publish .net magazine.
  
   In the September 2006 (#154) magazine, they published are article on
   creating lightboxes and have a VERY lengthy tutorial on ThickBox. They
   go on to provide a link to the ThickBox demo on JQuery demo page and
   provide a great quote about JQuery:
  
   Thickbox takes advantage of the lightweight, but powerful, JQuery to do
   a lot of the heavy lifting.
  
   This is great exposure for JQuery and I thought everyone would be happy
   to see that JQuery is getting mentioned in trade mags as well.
  
   Congrats to Cody Lindley for the mention of his great ThickBox plugin
   and to John for the continued success of JQuery.
  
   Rey...
 
 
  I remember posting about that before:
  http://jquery.com/discuss/2006-August/010360/
 
  But perhaps some have missed it (discovered jQuery after the post).
  This months issue also has another article on jQuery to do with
  accessibility (a style switcher), again by Rik Lomas (who recently did
  a quicksearch plugin).
 
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
 


 --
 Rik Lomas
 http://rikrikrik.com

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


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


Re: [jQuery] New plugin: toXML (XML serializer)

2006-10-05 Thread Christof Donat
Hi,

 I've submitted the XML serializer plugin to the wiki:

 http://jquery.com/docs/Plugins/toXML/

Since Trac doesn't have a possibility to discuss such things before editing 
the Webpage I'd like to post two other Variants here for discussion:

Simulate XMLSerializer globally and use it always - change the serialization 
function on first call to distinguish between IE and others.

if (typeof XMLSerializer == 'function') {
XMLSerializer = function() {};
XMLSerializer.prototype.serializeToString = function(node) {
var fn = function(node) {return node.xml; };
if (this[0].xml !== undefined) {
fn = function(node) {
// TODO: Manually serialize DOM here, for browsers
// that support neither of two methods above.
};
}
XMLSerializer.prototype.serializeToString = 
this.serializeToString = fn
return fn(node);
}
}

$.fn.toXML = function () {
var out = '';
if (this.length  0) {
var xs = new XMLSerializer();
this.each(function() {
out += xs.serializeToString(this);
});
}
return out;
};


Change the toXML-function at first call

$.fn.toXML = function () {
var fn = function() {
var out = '';
this.each(function() { out += this.xml; });
return out;
};
if (typeof XMLSerializer == 'function') {
fn = function() {
var out = '';
var xs = new XMLSerializer();
this.each(function() {
out += xs.serializeToString(this);
});
return out;
};
} else if (this[0].xml === undefined) {
fn = function() {
var out = '';
// TODO: Manually serialize DOM here, for browsers
// that support neither of two methods above.
return out;
};
}

$.fn.toXML = fn;
return fn.apply(this,[]);
};


I admit, that the two suggestions might not be to easy to understand. I like 
to play with functions as values :-)

At least the first one provides a more general solution by simulating 
XMLSerializer and both of them are faster after the first call. That might be 
a criterium if you work with large Datasets. If performance is imortant to 
you, you might also consider to replace the calls to each() with for-loops.

Christof

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


Re: [jQuery] Unwanted side effects when jQuery object is empty?

2006-10-05 Thread Alan Williams

Dave

Yes, this answer occurred to me while I was eating lunch. Oh well, I guess
it's a rite of passage to ask your first dumb question.

Thanks for your time and help. jQuery looks really very nice indeed.

Alan

-Original Message-
From: Dave Methvin [mailto:[EMAIL PROTECTED] 
Sent: 05 October 2006 13:07
To: [EMAIL PROTECTED]; 'jQuery Discussion.'
Subject: RE: [jQuery] Unwanted side effects when jQuery object is empty?


 $(.rounded).removeClass(rounded).wrap(env(div, test,
{class:rounded})); 

 I found that the function was being called once
 even though no html was generated. 
 
The jQuery object doesn't have any elements, but by the time the wrap method
executes it has already evaluated its arguments, which in this case includes
your env() function. The env() executes once, only once, and always once, no
matter how many elements the jQuery object has selected.

 I can avoid the problem by rewriting the code as something like 

$(.rounded).removeClass(rounded).each(function(){$(this).wrap(env(div,
test, {class:rounded}))}); 

Right, because the anonymous function will be executed once for each element
in the jQuery object.



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


[jQuery] How can one add httpheaders or cookies to $.ajax() request?

2006-10-05 Thread George Adamson

What is the best way to add a custom httpheader and/or cookie info to a
$.ajax() request?

Many thanks,

George

PS: The http://jquery.com/api/ doc for ajax() differs slightly from the
$.ajax() functionlality in the current jquery release.

-- 
View this message in context: 
http://www.nabble.com/How-can-one-add-httpheaders-or-cookies-to-%24.ajax%28%29-request--tf2388404.html#a6658459
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] New Plugin: mousewheel

2006-10-05 Thread Brandon Aaron
Thanks Mathias! I've gone ahead and fixed it in SVN but haven't
updated the example/test yet.
http://svn.brandonaaron.net/svn/jquery_plugins/mousewheel.js

--
Brandon Aaron

On 10/5/06, Mathias Bank [EMAIL PROTECTED] wrote:
 I think, there is a little bug in your plugin. If you use $(this) in
 the event function, your are pointing (in firefox) to the window
 instead to the element.

 Here is my code (firebug is your fried :):

 $('.leaf').mousewheel(function(event, delta){
   if (delta  0) {
 console.info(Up);
 console.log($(this)); //will return [window]
   } else if (delta  0) {
 console.info(Down);
   }
 },true);


 Mathias

 2006/9/29, Brandon Aaron [EMAIL PROTECTED]:
   I overrode the mousewheel method...
 
  I don't think I used the correct terminology there. That should be 'I
  overloaded' instead of 'I overrode' ... at least I think so.
 
  --
  Brandon Aaron
 
  On 9/28/06, Brandon Aaron [EMAIL PROTECTED] wrote:
   Okay ... I've updated the plugin once again.
  
   I overrode the mousewheel method to take an optional two functions
   instead of one. The first function is the up handler and the second
   function is the down handler. The preventDefault is still the last
   param. I also added mousewheelup and mousewheeldown along with
   unmousewheelup and unmousewheeldown. However, you can't chain
   mousewheelup and mousewheeldown together. The last one in the chain
   will override the previous. Also unmousewheelup and unmousewheeldown
   will remove both up and down if they exist. I tried to get around this
   but couldn't easily do so. If you need a seperate function for both up
   and down, just use mousewheel method with two functions.
  
   The example/test page is updated as well as the SVN. The blog entry
   however, is not updated yet.
  
   I've also posted this on the plugins page of jquery.com.
  
   Brandon
  
 
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
 

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


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


Re: [jQuery] New plugin: toXML (XML serializer)

2006-10-05 Thread Mark Gibson
Christof Donat wrote:
 Simulate XMLSerializer globally and use it always - change the serialization 
 function on first call to distinguish between IE and others.
[snip]
 I admit, that the two suggestions might not be to easy to understand. I like 
 to play with functions as values :-)
 
 At least the first one provides a more general solution by simulating 
 XMLSerializer and both of them are faster after the first call. That might be 
 a criterium if you work with large Datasets. If performance is imortant to 
 you, you might also consider to replace the calls to each() with for-loops.

Christof, thanks for your ideas.

The thing is, the main use case for a toXML() call is to send
XML data via an ajax request.

The duration of the request greatly overshadows any optimisation
that could be applied to toXML.

Also, I don't think it is a good idea to attempt to implement an
XMLSerializer object for the sake of it, especially when the full
interface isn't being implemented - it could have further reaching
effects than you expect.

As a rule I live by the KISS principle, and never optimise code unless
it becomes a bottleneck, and then only do so under profiling conditions.

Regards
- Mark Gibson

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


Re: [jQuery] New plugin: toXML (XML serializer)

2006-10-05 Thread Christof Donat
Hi,

 The thing is, the main use case for a toXML() call is to send
 XML data via an ajax request.

Well, I could imagine that there may be other usecases as well, like doing 
search and replace operations on the string representation of a XML which is 
reparsed afterwards. It was just a joke, but you may look at that use case 
which could be usefull for XML-Data as well:

http://dean.edwards.name/weblog/2006/07/erlaubt/#comment7262

 The duration of the request greatly overshadows any optimisation
 that could be applied to toXML.

Well, there are also use cases, where you can assume a really fast network 
connections (inhouse with 1GB-Ethernet e.g.) and thus work with huge datasets 
on the client side. Then suddenly the time, the client and server need to 
process the request becomes the dominating factor.

I think that jQuery could also be really usefull for Applications using 
XULrunner (I haven't tried yet) and thus there are many other use cases like 
e.g. working with RDF-Data, etc. - OK, we don't need to emulate XMLSerializer 
then.

 Also, I don't think it is a good idea to attempt to implement an
 XMLSerializer object for the sake of it, especially when the full
 interface isn't being implemented

You are right here of course. I was too lazy to look for the 
XMLSerializer-interface and see if the other functions can also be simulated 
so easy.

 As a rule I live by the KISS principle, and never optimise code unless
 it becomes a bottleneck, and then only do so under profiling conditions.

Well, KISS is an optimization strategy :-) Most of the time code is fast when 
it is simple, but most of the time is not always.

Christof

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


Re: [jQuery] unhover and untoggle

2006-10-05 Thread Brandon Aaron
On 10/4/06, Blair Mitchelmore [EMAIL PROTECTED] wrote:
 Well, while I might not need untoggle and unhover, I definitely enjoy a
 challenge! I've been thinking about a reliable way to allow multiple
 hover/toggles and to be able to remove them independently... I'll let
 you know if I get anywhere with it...

I hope you can because I think it would be confusing to new-comers if
they can't apply multiple hover and toggle handlers. Also, I would
hopefully be able to use the solution for the mousewheel plugin as
well.

--
Brandon Aaron

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


[jQuery] Selected value in dropdownlist

2006-10-05 Thread Harlley Roberto
Hi folks,How can I get selected value in dropdownlist?That code does not work. Why ?$(document).ready(function(){ var test;  test = document.getElementById(ddlCourse).value;
 $(#ddlCourse).change( function() { $('#class').load('filter_report.asp', {ajax:'1', cod_course: test }); } );});thanks,Harlley 
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Slider plugin (pre-alpha): HELP NEEDED

2006-10-05 Thread Yehuda Katz
I've developed (or partially developed) a new plugin that implements webform2's slider. Specifically, you can do stuff like input type=range step=1 min=1 max=10 value=1 id=a / 
and jQuery will automatically convert it into a stylable range widget.It uses jQuery and Interface, but there are three problems:1) There is a rounding error of some sort, such that sometimes (not always), it's tough to get the range widget to get to the last number in the range.
2) There's a bug in IE I can't track down.3) In order to make it work, I had to multiply my values (for the Interface slider's value array) by 234. Not 200; not 255; 234. The only reason I know it works is that I did a ton of trial and error to figure out how SliderSetValues works, and multiplying by that linear number fixed all the problems I was having. Ideally, I'd like to know why this is happening.
You can check out the widget as it currently stands at: http://www.visualjquery.com/plugins/slider.htmlThe _javascript_ is at: 
http://www.visualjquery.com/plugins/range_control.jsThe pertinent HTML is in the about div, and the pertinent CSS (the little that there is) is the CSS related to #a, #b, and #c.Please help!
-- Yehuda KatzWeb Developer | Wycats Designs(ph)718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Plugin Rewrite: Accordion

2006-10-05 Thread Karl Swedberg
On Oct 5, 2006, at 4:43 AM, Klaus Hartl wrote:
 Interesting! Did you know I wrote an accordion plugin as well,  
 together
 with Gilles, a while ago?

 It's based on a definition list, so it's a little more semantic:

 http://stilbuero.de/jquery/accordion/

Hi Klaus,

I like the semantic aspect of your accordion plugin. Still, it looks  
like it requires a one-to-one relationship between each dt and dd .

I know this was brought up before in another thread, but I don't  
think anyone satisfactorily answered it. Is there a way to find  
multiple dd tags for a given dt to slideUp/slideDown?

I poked around the w3c site a bit and found something that would be  
very helpful in this regard:
 The term and its definition can be grouped within a di element to  
 help clarify the relationship between a term and its definition(s).
http://www.w3.org/TR/2004/WD-xhtml2-20040722/mod-list.html#edef_list_di

Alas, it's xhtml 2.0 working draft. :(

Anyone else have any ideas on this?


Cheers,
Karl


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



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


Re: [jQuery] Plugin Rewrite: Accordion

2006-10-05 Thread Fil
 I know this was brought up before in another thread, but I don't  
 think anyone satisfactorily answered it. Is there a way to find  
 multiple dd tags for a given dt to slideUp/slideDown?
  .../...
 Anyone else have any ideas on this?

John Resig himself:
http://jquery.com/discuss/2006-August/010451/
(then he got sick)

-- Fil


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


[jQuery] IE fadeTo won't work?

2006-10-05 Thread Onno Timmerman
$(li.menu).hover(function(){
$(this).find(ul).fadeTo(medium, 0.92);
},
function(){$(this).find(ul).fadeTo(medium, 0);}
);

This does work in Firefox but not in IE.
1. the fade won't work.
2. the hover over starts. But when the mouse goes out of the box it 
doesn't go away...

Is this a known error.

Onno

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


Re: [jQuery] Selected value in dropdownlist

2006-10-05 Thread Stephen Howard
if ddlCourse is the select box, you can simplify your code to this, but 
I'm not sure why it isn't working:

$(function() {

$('#ddlCourse).change( function() {

$('#class').load( 'filter_report.asp',  {  ajax: 1,  cod_course: 
this.value  } );
});
});

Have you tried doing an alert(this.value) to see if it's a problem with 
the select box value retrieval or a problem with the ajax loader?

-Stephen

Harlley Roberto wrote:
 Hi folks,

 How can I get selected value in dropdownlist?

 That code does not work. Why ?

 $(document).ready(function()
 {
 var test;
 test = document.getElementById(ddlCourse).value;
 $(#ddlCourse).change( function() { 
 $('#class').load('filter_report.asp', {ajax:'1', cod_course: test }); } );
 });


 thanks,

 Harlley
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 

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

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


Re: [jQuery] Selected value in dropdownlist

2006-10-05 Thread Sam Collett
On 05/10/06, Harlley Roberto [EMAIL PROTECTED] wrote:
 Hi folks,

 How can I get selected value in dropdownlist?

 That code does not work. Why ?

 $(document).ready(function()
 {
 var test;
 test = document.getElementById(ddlCourse).value;
 $(#ddlCourse).change( function() {
 $('#class').load('filter_report.asp', {ajax:'1',
 cod_course: test }); } );
 });


 thanks,

 Harlley
  [EMAIL PROTECTED]

You can get the selected value like this:
test = $(#ddlCourse).val()

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


Re: [jQuery] Slider plugin (pre-alpha): HELP NEEDED

2006-10-05 Thread George Adamson


Very nice. That'll be useful. I attempted the same thing not long ago but
got distracted onto other things.
http://www.softwareunity.com/sandbox/JQuerySlider/   (best in IE). Thought
it may be helpful to share some discoveries...

By using css alone I found there was no need to wrap the slider in any DIVs
etc. The bg image provides the button that you move (and horizontal line if
you want it). Borders could be removed too. If you need static markers to
show increments then I suppose you could add them with extra markup. I was
thinking of experimenting with a carefully positioned list-style-image for
that, but it may be too fussy.

The tricky part is translating between the ranges of the value, the slider
and the mouse pointer. I found it easier to separate these translations into
functions so that I did not have to think about them again!

Good luck

George

wycats wrote:
 
 I've developed (or partially developed) a new plugin that implements
 webform2's slider. Specifically, you can do stuff like input type=range
 step=1 min=1 max=10 value=1 id=a / and jQuery will
 automatically
 convert it into a stylable range widget.
 
 It uses jQuery and Interface, but there are three problems:
 1) There is a rounding error of some sort, such that sometimes (not
 always),
 it's tough to get the range widget to get to the last number in the range.
 2) There's a bug in IE I can't track down.
 3) In order to make it work, I had to multiply my values (for the
 Interface
 slider's value array) by 234. Not 200; not 255; 234. The only reason I
 know
 it works is that I did a ton of trial and error to figure out how
 SliderSetValues works, and multiplying by that linear number fixed all the
 problems I was having. Ideally, I'd like to know why this is happening.
 
 You can check out the widget as it currently stands at:
 http://www.visualjquery.com/plugins/slider.html
 The Javascript is at: http://www.visualjquery.com/plugins/range_control.js
 
 The pertinent HTML is in the about div, and the pertinent CSS (the
 little
 that there is) is the CSS related to #a, #b, and #c.
 
 Please help!
 
 -- 
 Yehuda Katz
 Web Developer | Wycats Designs
 (ph)  718.877.1325
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 
Quoted from: 
http://www.nabble.com/Slider-plugin-%28pre-alpha%29%3A-HELP-NEEDED-tf2389171.html#a6660725


wycats wrote:
 
 I've developed (or partially developed) a new plugin that implements
 webform2's slider. Specifically, you can do stuff like input type=range
 step=1 min=1 max=10 value=1 id=a / and jQuery will
 automatically
 convert it into a stylable range widget.
 
 It uses jQuery and Interface, but there are three problems:
 1) There is a rounding error of some sort, such that sometimes (not
 always),
 it's tough to get the range widget to get to the last number in the range.
 2) There's a bug in IE I can't track down.
 3) In order to make it work, I had to multiply my values (for the
 Interface
 slider's value array) by 234. Not 200; not 255; 234. The only reason I
 know
 it works is that I did a ton of trial and error to figure out how
 SliderSetValues works, and multiplying by that linear number fixed all the
 problems I was having. Ideally, I'd like to know why this is happening.
 
 You can check out the widget as it currently stands at:
 http://www.visualjquery.com/plugins/slider.html
 The Javascript is at: http://www.visualjquery.com/plugins/range_control.js
 
 The pertinent HTML is in the about div, and the pertinent CSS (the
 little
 that there is) is the CSS related to #a, #b, and #c.
 
 Please help!
 
 -- 
 Yehuda Katz
 Web Developer | Wycats Designs
 (ph)  718.877.1325
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 

-- 
View this message in context: 
http://www.nabble.com/Slider-plugin-%28pre-alpha%29%3A-HELP-NEEDED-tf2389171.html#a6661610
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Plugin Rewrite: Accordion

2006-10-05 Thread Steve Ivy
Looks pretty good, Jörn. One thing I'd add somewhere in there is, after
expanding a section, set it's height to . This was discussed on the
list a while back, and is necessary so the section will expand to
contain any dynamically added content.

--Steve

[EMAIL PROTECTED] | irc: monkinetic|redmonk



  Original Message 
 Subject: [jQuery] Plugin Rewrite: Accordion
 From: Jörn Zaefferer [EMAIL PROTECTED]
 Date: Thu, October 05, 2006 1:14 am
 To: jQuery Discussion. discuss@jquery.com
 
 Hi folks,
 
 instead of pointing Frank what he could change on his code, I gave it a try 
 for myself. You can see the result, yet badly documented, here: 
 http://www.joern.jquery.com/accordion/accordion.html
 
 The behaviour should be exactly the same as the original. Is this worthy to 
 put it in the jQuery plugin repository?
 
 -- Jörn
 -- 
 GMX DSL-Flatrate 0,- Euro* - Überall, wo DSL verfügbar ist!
 NEU: Jetzt bis zu 16.000 kBit/s! http://www.gmx.net/de/go/dsl
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/


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


Re: [jQuery] Slider plugin (pre-alpha): HELP NEEDED

2006-10-05 Thread Yehuda Katz
One of my goals was to hide EVERYTHING from the user. In the implementation I used, if you set an id on the input range element, you can actually set the width on it, and the range will scale accordingly. It wasn't trivial, but I think I struck a good balance between customizability and hiding the implementation from an average designer.
On 10/5/06, George Adamson [EMAIL PROTECTED] wrote:
Very nice. That'll be useful. I attempted the same thing not long ago butgot distracted onto other things.http://www.softwareunity.com/sandbox/JQuerySlider/
 (best in IE). Thoughtit may be helpful to share some discoveries...By using css alone I found there was no need to wrap the slider in any DIVsetc. The bg image provides the button that you move (and horizontal line if
you want it). Borders could be removed too. If you need static markers toshow increments then I suppose you could add them with extra markup. I wasthinking of experimenting with a carefully positioned list-style-image for
that, but it may be too fussy.The tricky part is translating between the ranges of the value, the sliderand the mouse pointer. I found it easier to separate these translations intofunctions so that I did not have to think about them again!
Good luckGeorgewycats wrote: I've developed (or partially developed) a new plugin that implements webform2's slider. Specifically, you can do stuff like input type=range
 step=1 min=1 max=10 value=1 id=a / and jQuery will automatically convert it into a stylable range widget. It uses jQuery and Interface, but there are three problems:
 1) There is a rounding error of some sort, such that sometimes (not always), it's tough to get the range widget to get to the last number in the range. 2) There's a bug in IE I can't track down.
 3) In order to make it work, I had to multiply my values (for the Interface slider's value array) by 234. Not 200; not 255; 234. The only reason I know it works is that I did a ton of trial and error to figure out how
 SliderSetValues works, and multiplying by that linear number fixed all the problems I was having. Ideally, I'd like to know why this is happening. You can check out the widget as it currently stands at:
 http://www.visualjquery.com/plugins/slider.html The _javascript_ is at: http://www.visualjquery.com/plugins/range_control.js
 The pertinent HTML is in the about div, and the pertinent CSS (the little that there is) is the CSS related to #a, #b, and #c. Please help! --
 Yehuda Katz Web Developer | Wycats Designs (ph)718.877.1325 ___ jQuery mailing list 
discuss@jquery.com http://jquery.com/discuss/Quoted from:
http://www.nabble.com/Slider-plugin-%28pre-alpha%29%3A-HELP-NEEDED-tf2389171.html#a6660725wycats wrote: I've developed (or partially developed) a new plugin that implements webform2's slider. Specifically, you can do stuff like input type=range
 step=1 min=1 max=10 value=1 id=a / and jQuery will automatically convert it into a stylable range widget. It uses jQuery and Interface, but there are three problems:
 1) There is a rounding error of some sort, such that sometimes (not always), it's tough to get the range widget to get to the last number in the range. 2) There's a bug in IE I can't track down.
 3) In order to make it work, I had to multiply my values (for the Interface slider's value array) by 234. Not 200; not 255; 234. The only reason I know it works is that I did a ton of trial and error to figure out how
 SliderSetValues works, and multiplying by that linear number fixed all the problems I was having. Ideally, I'd like to know why this is happening. You can check out the widget as it currently stands at:
 http://www.visualjquery.com/plugins/slider.html The _javascript_ is at: http://www.visualjquery.com/plugins/range_control.js
 The pertinent HTML is in the about div, and the pertinent CSS (the little that there is) is the CSS related to #a, #b, and #c. Please help! --
 Yehuda Katz Web Developer | Wycats Designs (ph)718.877.1325 ___ jQuery mailing list 
discuss@jquery.com http://jquery.com/discuss/--View this message in context: 
http://www.nabble.com/Slider-plugin-%28pre-alpha%29%3A-HELP-NEEDED-tf2389171.html#a6661610Sent from the JQuery mailing list archive at Nabble.com.___
jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/-- Yehuda Katz
Web Developer | Wycats Designs(ph)718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Slider plugin (pre-alpha): HELP NEEDED

2006-10-05 Thread Dave Methvin
  I've developed (or partially developed) a new plugin  that implements 
  webform2's slider. Specifically, you can do stuff like  
  input type=range step=1 min=1 max=10 value=1 id=a / 
  and jQuery will automatically convert it into a stylable range widget.
 
That won't validate for HTML4 or XHTML; range isn't a legal value for the
type attribute. Perhaps you could make it a type=text and convert it on the
fly using information in the class attribute?

As for the IE bug, I suspect you're running afoul of IE's flakiness when you
try to insert/delete elements in document.body before the page has loaded.
Your .ready() handler is wrapping the input.range elements with a div.slider
and then trying to modify it just a few lines down.


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


Re: [jQuery] NEWS: JQuery mentioned in Web Builder magazine, Sept 2006 issue #154

2006-10-05 Thread Rey Bango
Yep, I started using JQuery in early September.

Sam Collett wrote:
 I remember posting about that before:
 http://jquery.com/discuss/2006-August/010360/

 But perhaps some have missed it (discovered jQuery after the post).
 This months issue also has another article on jQuery to do with
 accessibility (a style switcher), again by Rik Lomas (who recently did
 a quicksearch plugin).

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

   

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


Re: [jQuery] IE fadeTo won't work?

2006-10-05 Thread Brandon Aaron
See if this patch helps you: http://jquery.com/dev/bugs/bug/204/

--
Brandon Aaron

On 10/5/06, Onno Timmerman [EMAIL PROTECTED] wrote:
 $(li.menu).hover(function(){
 $(this).find(ul).fadeTo(medium, 0.92);
 },
 function(){$(this).find(ul).fadeTo(medium, 0);}
 );

 This does work in Firefox but not in IE.
 1. the fade won't work.
 2. the hover over starts. But when the mouse goes out of the box it
 doesn't go away...

 Is this a known error.

 Onno

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


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


[jQuery] JQuery Forge

2006-10-05 Thread Mike Hostetler
A thread a while back mentioned a jQuery Forge website. I have built a forge type website with Drupal for another open source project I'm involved with called Qcodo. That website is at http://qforge.qcodo.com
. I wanted to bring the issue back up because I still see people asking about it. If this is already in the works, I don't want to step on anyones toes. Additionally, if John is working on something like this, I'd be happy to take the back seat to whatever he wants to do. 
So, is there any interest in a forge type website with Subversion hosting, written on top of Drupal? Each project (or plugin) would have it's own site along with issue tracking and control of their piece of the SVN repository.
Is there anyone out there that would be willing to help with this too?-- Mike Hostetler[EMAIL PROTECTED]
http://www.amountaintop.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Slider plugin (pre-alpha): HELP NEEDED

2006-10-05 Thread Yehuda Katz
Regarding the validation:I designed this around the *new* as-yet-unimplemented spec for WebForms2. I'm doing this on purpose *knowing* it won't validate as present. It's a tradeoff I'm willing to make (since it's not like I'm making up my own spec).
-- YehudaOn 10/5/06, Dave Methvin [EMAIL PROTECTED] wrote:
I've developed (or partially developed) a new pluginthat implementswebform2's slider. Specifically, you can do stuff likeinput type=range step=1 min=1 max=10 value=1 id=a /
and jQuery will automatically convert it into a stylable range widget.That won't validate for HTML4 or XHTML; range isn't a legal value for thetype attribute. Perhaps you could make it a type=text and convert it on the
fly using information in the class attribute?As for the IE bug, I suspect you're running afoul of IE's flakiness when youtry to insert/delete elements in document.body before the page has loaded.Your .ready() handler is wrapping the 
input.range elements with a div.sliderand then trying to modify it just a few lines down.___jQuery mailing listdiscuss@jquery.com
http://jquery.com/discuss/-- Yehuda KatzWeb Developer | Wycats Designs(ph)718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Selected value in dropdownlist

2006-10-05 Thread Harlley Roberto
It works! Thanks a lot :-)On 10/5/06, Sam Collett [EMAIL PROTECTED] wrote:
On 05/10/06, Harlley Roberto [EMAIL PROTECTED] wrote: Hi folks, How can I get selected value in dropdownlist? That code does not work. Why ?
 $(document).ready(function() { var test; test = document.getElementById(ddlCourse).value; $(#ddlCourse).change( function() { $('#class').load('filter_report.asp', {ajax:'1',
 cod_course: test }); } ); }); thanks, Harlley[EMAIL PROTECTED]You can get the selected value like this:
test = $(#ddlCourse).val()___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/
-- Att.Harlley R. Oliveira[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Plugin Rewrite: Accordion

2006-10-05 Thread Karl Swedberg
On Oct 5, 2006, at 11:10 AM, Fil wrote:

 I know this was brought up before in another thread, but I don't
 think anyone satisfactorily answered it. Is there a way to find
 multiple dd tags for a given dt to slideUp/slideDown?
  .../...
 Anyone else have any ideas on this?

 John Resig himself:
 http://jquery.com/discuss/2006-August/010451/
 (then he got sick)

 -- Fil

Ah, yes. Don't know how I missed that.

Would be great to see that added to core. John, is that still in the  
works? Any ETA?

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



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


Re: [jQuery] Slider plugin (pre-alpha): HELP NEEDED

2006-10-05 Thread Dave Methvin
  Regarding the validation:
 
  I designed this around the *new* as-yet-unimplemented spec for  
  WebForms2. I'm doing this on purpose *knowing* it won't validate 
  as present. It's a tradeoff I'm willing to make (since it's not like I'm 
  making up my own spec). 

I understand your goal, but the HTML validator and my text editors
(Aptana/Notepad++) don't sympathize. Eventually I get tired of their harping
and give in so they stop bothering me. :-) 

BTW, range_control.js is using the word float in line 18. I can't recall
whether the most recent browsers still call it a reserved word but my editor
thinks it is, so it's probably safest to quote it. You might want to cache
$(this) or chain it to avoid constructing it so many times. Also I don't see
any use of the self variable, maybe it's leftover from something?


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


Re: [jQuery] JQuery Forge

2006-10-05 Thread Larry Garfield
I seem to recall John saying he was already planning to do exactly that. 
Although if you wanted to volunteer to do it for him, that would give him
more time to work on jQuery itself. ;-)

-- 
Larry Garfield

On Thu, October 5, 2006 11:02 am, Mike Hostetler said:
 A thread a while back mentioned a jQuery Forge website.  I have built a
 forge type website with Drupal for another open source project I'm
 involved
 with called Qcodo.  That website is at http://qforge.qcodo.com.

 I wanted to bring the issue back up because I still see people asking
 about
 it.  If this is already in the works, I don't want to step on anyones
 toes.
 Additionally, if John is working on something like this, I'd be happy to
 take the back seat to whatever he wants to do.

 So, is there any interest in a forge type website with Subversion hosting,
 written on top of Drupal?  Each project (or plugin) would have it's own
 site
 along with issue tracking and control of their piece of the SVN
 repository.

 Is there anyone out there that would be willing to help with this too?

 --
 Mike Hostetler
 [EMAIL PROTECTED]
 http://www.amountaintop.com
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/




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


[jQuery] jQuery Map solution

2006-10-05 Thread alfdesign.sk

Hi,

I want to know, if anyone have any interactive map solution in jQuery,
like this at http://www.alistapart.com/articles/cssmaps


-- 
View this message in context: 
http://www.nabble.com/jQuery-Map-solution-tf2388045.html#a6657345
Sent from the JQuery mailing list archive at Nabble.com.


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


[jQuery] Using $ to insert HTML into the page

2006-10-05 Thread Matthew Pennell
Apologies if this has been raised before - I searched but couldn't find anything.In the documentation (visualjquery.com version), it says that the $ function, when passed some HTML as a string, will create the DOM elements representing that HTML string, on the fly.
Looking at the code though (the clean function), it appears all it is doing is using innerHTML - is this the case? If it is, I think the documentation should be changed to better represent what is actually happening. If not, can someone explain how this works to me please?
Thanks,Matthew.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] check all functions

2006-10-05 Thread Sam Collett
On 05/10/06, Charles Peterson [EMAIL PROTECTED] wrote:
 Note sure where to post this so heres some code.
 This allows you to have a set of check all check boxes that check
 another set of check boxes.

 Example
 $.checkallCheckboxClickEvent('.MyCheckAllClass','.CheckTheseClass');




 /**
 // modified from check function() @
 http://jquery.bassistance.de/jquery-getting-started.html
 EXAMPLES
 $([EMAIL PROTECTED]'checkbox']).checkDynamic();
 $([EMAIL PROTECTED]'checkbox']).checkDynamic('on');
 $([EMAIL PROTECTED]'checkbox']).checkDynamic(true);
 $([EMAIL PROTECTED]'checkbox']).checkDynamic('off');
 $([EMAIL PROTECTED]'checkbox']).checkDynamic(false);
 $([EMAIL PROTECTED]'checkbox']).checkDynamic('toggle');
 ***/
 /*
  * checks, unchecks or toggles a set of checkboxes.
  *
  * @name $('?').checkDynamic
  * @parammode  (true,'on',false,'off', or null) defaults to on if
 null or other.
  * @author   Charles Peterson (http://www.artistandesigns.com)
  * @example  $(boxes_ele).checkDynamic(checked);
  *
  */
 $.fn.checkDynamic = function(mode) {
 return this.each(function() {
 if($(this).is([EMAIL PROTECTED]'checkbox'])){
 switch(mode) {
 case false:
 case 'off':
 this.checked = false;
 break;
 case 'toggle':
 this.checked = !this.checked;
 break;
 case true:
 default://'on'
 this.checked = true;
 break;
 }
 }
 });
 };

 /*
  * this sets a click event for Check All checkboxes.
  *
  * @name $.checkallCheckboxClickEvent
  * @paramclick_elem  Checkboxes that are for Checking All
  * @paramboxes_ele  Checkboxes to check when a Check All box is checked
  * @author   Charles Peterson (http://www.artistandesigns.com)
  * @example
 $.checkallCheckboxClickEvent('.LISTTICKETselectedticketsCHECK','.LISTTICKETselectedtickets')
  *
  */
 $.checkallCheckboxClickEvent = function(click_elem,boxes_ele){
 $(click_elem).click(function
 (){$.checkallCheckbox(click_elem,boxes_ele,this.checked);});
 };

 /*
  * this should be used with a click event function
  *
  * @name $.checkallCheckbox
  * @paramclick_elem  Checkboxes that are for Checking All
  * @paramboxes_ele  Checkboxes to check when a Check All box is checked
  * @paramchecked  boolean, what to set the checkboxes to.
  * @author   Charles Peterson (http://www.artistandesigns.com)
  * @example  $(click_elem).click(function
 (){$.checkallCheckbox(click_elem,boxes_ele,this.checked);});
  *
  */
 $.checkallCheckbox = function(click_elem,boxes_ele,checked){
 // check all the boxes based on clicked element
 $(boxes_ele).checkDynamic(checked);
 // make sure all the CheckAll boxes are set the same also
 $(click_elem).checkDynamic(checked);
 };

I also did this a while ago (so you may have missed it):
http://www.texotela.co.uk/code/jquery/checkboxes/

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


Re: [jQuery] JQuery Forge

2006-10-05 Thread Jörn Zaefferer
Hi Mike!
 A thread a while back mentioned a jQuery Forge website.  I have built 
 a forge type website with Drupal for another open source project I'm 
 involved with called Qcodo.  That website is at 
 http://qforge.qcodo.com http://qforge.qcodo.com. 

 I wanted to bring the issue back up because I still see people asking 
 about it.  If this is already in the works, I don't want to step on 
 anyones toes.  Additionally, if John is working on something like 
 this, I'd be happy to take the back seat to whatever he wants to do. 

 So, is there any interest in a forge type website with Subversion 
 hosting, written on top of Drupal?  Each project (or plugin) would 
 have it's own site along with issue tracking and control of their 
 piece of the SVN repository.

 Is there anyone out there that would be willing to help with this too?
To my knowlegde, there are several plans for something like this, but so 
far no implementations, though I'm not sure what Paul and John are up to 
about the new jQuery site. I think it would be great if you could 
provide a prototype for a jQuery forge. Apart from hosting projects and 
providing (restrictable) subversion access, there should be some way to 
integrate the jQuery build system. Apart from some small issues, the 
current ant build can be easily used to build plugins and bundle them 
with jQuery into one file. It would be great if this build could be 
triggered by the jQuery forge...
The most basic requirement would be the ability to launch a java process 
on the server.

 From what I have seen after a quick look at the qcodo forge: Groovy! 
Seems to provide most of the requirements I had in mind. See below for 
details.

-- Jörn


*'jQuery community' is my working name for the basic idea of a central 
plugin repository.*

It provides the following use cases or rather roles.
Parts in italic are more experimental thoughts.

*Anonymous user*
An anonymous user browses for plugins, either by listing them 
(alphabeticaly; ranked by votes or downloads; category), searching by 
keywords (title; title  description) or looking for dependencies (list 
all dependencies of a certain plugin; list all plugins, that depend on a 
certain plugin).
For a given plugin, he can download all released version of that plugin 
and can give an anonymous vote. He can read the provided documentation 
and examples. He can try out the plugin in a sandbox enviroment without 
downloading any code (see w3schools.com for examples, eg. 
http://www.w3schools.com/js/tryit.asp?filename=tryjs_function2 ). /The 
sandbox provides either enough generic markup to demonstrate the plugin 
or provides markup created with the plugin in mind./
He can read the public forums.
He can register to become a registered user.

*Registered user*
In addition to the possibilites of the anonymous user (minus the 
registering), the registered user vote for plugins. He can vote only 
once per plugin, but can modify he vote later on. This allows him to 
correct his vote if he knows more about the plugin or if some serious 
bugs were fixed, new features added etc. The vote of a registered user 
weighs either more than the anonymous one or is registered/counted as a 
seperate vote.
He can both read and write in the public forums.
He can check out trunk versions from the svn repository, if one is used 
(see below).
He can write comments (praise, flame, feature requests) and bug reports 
for every plugin. In addition, he can write comments for every plugin 
project (explained soon).

He can create a new plugin project. A plugin project consists of one or 
more plugins (eg. Interface is a plugin project, draggable is considered 
a plugin). To create the project, he must provide at least a short 
description of the purpose of the project. The create request is then 
reviewed by a moderator (see below).
With a created and approved project, he can do the following:
Upload files via forms or SVN. When uploading via forms, he can choose 
wheather warnings should be displayed when overwriting files; his 
decision is remembered. To use SVN, he must request svn access. This can 
be either approved automaticaly or by a moderator. /There is no need to 
create a repository when it isn't used. On the other hand, it can be 
considered to commit files uploaded via forms to a svn repository on the 
server side./

After commiting files, he can create a release. The initial version 
number is either 1.0 or 0.1. When creating new releases, he can choose 
between creating minor and major releases. Minor releases increase minor 
version, eg. 1.0 to 1.1 or 1.59 to 1.60. Major releases increase the 
major version, eg. 1.2 to 2.0. He should choose a minor release when 
users can update the plugin without changing their own code. He should 
create a major release when users have to change their own code in order 
to upgrade.
When creating releases, API documentation should be parsed from the 
plugin code, just like its happening with jQuery. Those docs 

Re: [jQuery] Using $ to insert HTML into the page

2006-10-05 Thread Jörn Zaefferer
Matthew Pennell schrieb:
 Apologies if this has been raised before - I searched but couldn't 
 find anything.

 In the documentation (visualjquery.com http://visualjquery.com 
 version), it says that the $ function, when passed some HTML as a 
 string, will create the DOM elements representing that HTML string, 
 on the fly.

 Looking at the code though (the clean function), it appears all it is 
 doing is using innerHTML - is this the case? If it is, I think the 
 documentation should be changed to better represent what is actually 
 happening. If not, can someone explain how this works to me please?
The documentation also says that the created html is to be (assumedly) 
inserted into the document later. That's the important point, after 
creating the element, you need to add it to the document using something 
like appendTo or prependTo. The second example demonstrates that: 
$(divpHello/p/div).appendTo(#body)
Hope that helps.

-- Jörn

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


Re: [jQuery] Plugin Update: numeric

2006-10-05 Thread Jörn Zaefferer
Sam Collett schrieb:
 Demo, code:
 http://www.texotela.co.uk/code/jquery/numeric/

 The plugin found at http://sam.collett.googlepages.com/numeric.html is
 the old version and will no longer be updated (the same is true of all
 my plugins on Google Pages).
   
I updated the URL on the plugins list :-)

-- Jörn

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


Re: [jQuery] JQuery Forge

2006-10-05 Thread Mike Hostetler
Jörn- Very cool requirements. I am more then happy to take the lead on this and even sponsor the hosting on my servers, or work on others servers. 
MikeOn 10/5/06, Jörn Zaefferer [EMAIL PROTECTED] wrote:
Hi Mike! A thread a while back mentioned a jQuery Forge website.I have built a forge type website with Drupal for another open source project I'm involved with called Qcodo.That website is at
 http://qforge.qcodo.com http://qforge.qcodo.com. I wanted to bring the issue back up because I still see people asking
 about it.If this is already in the works, I don't want to step on anyones toes.Additionally, if John is working on something like this, I'd be happy to take the back seat to whatever he wants to do.
 So, is there any interest in a forge type website with Subversion hosting, written on top of Drupal?Each project (or plugin) would have it's own site along with issue tracking and control of their
 piece of the SVN repository. Is there anyone out there that would be willing to help with this too?To my knowlegde, there are several plans for something like this, but sofar no implementations, though I'm not sure what Paul and John are up to
about the new jQuery site. I think it would be great if you couldprovide a prototype for a jQuery forge. Apart from hosting projects andproviding (restrictable) subversion access, there should be some way to
integrate the jQuery build system. Apart from some small issues, thecurrent ant build can be easily used to build plugins and bundle themwith jQuery into one file. It would be great if this build could betriggered by the jQuery forge...
The most basic requirement would be the ability to launch a java processon the server. From what I have seen after a quick look at the qcodo forge: Groovy!Seems to provide most of the requirements I had in mind. See below for
details.-- Jörn*'jQuery community' is my working name for the basic idea of a centralplugin repository.*It provides the following use cases or rather roles.Parts in italic are more experimental thoughts.
*Anonymous user*An anonymous user browses for plugins, either by listing them(alphabeticaly; ranked by votes or downloads; category), searching bykeywords (title; title  description) or looking for dependencies (list
all dependencies of a certain plugin; list all plugins, that depend on acertain plugin).For a given plugin, he can download all released version of that pluginand can give an anonymous vote. He can read the provided documentation
and examples. He can try out the plugin in a sandbox enviroment withoutdownloading any code (see w3schools.com for examples, eg.
http://www.w3schools.com/js/tryit.asp?filename=tryjs_function2 ). /Thesandbox provides either enough generic markup to demonstrate the pluginor provides markup created with the plugin in mind./He can read the public forums.
He can register to become a registered user.*Registered user*In addition to the possibilites of the anonymous user (minus theregistering), the registered user vote for plugins. He can vote onlyonce per plugin, but can modify he vote later on. This allows him to
correct his vote if he knows more about the plugin or if some seriousbugs were fixed, new features added etc. The vote of a registered userweighs either more than the anonymous one or is registered/counted as a
seperate vote.He can both read and write in the public forums.He can check out trunk versions from the svn repository, if one is used(see below).He can write comments (praise, flame, feature requests) and bug reports
for every plugin. In addition, he can write comments for every pluginproject (explained soon).He can create a new plugin project. A plugin project consists of one ormore plugins (eg. Interface is a plugin project, draggable is considered
a plugin). To create the project, he must provide at least a shortdescription of the purpose of the project. The create request is thenreviewed by a moderator (see below).With a created and approved project, he can do the following:
Upload files via forms or SVN. When uploading via forms, he can choosewheather warnings should be displayed when overwriting files; hisdecision is remembered. To use SVN, he must request svn access. This can
be either approved automaticaly or by a moderator. /There is no need tocreate a repository when it isn't used. On the other hand, it can beconsidered to commit files uploaded via forms to a svn repository on the
server side./After commiting files, he can create a release. The initial versionnumber is either 1.0 or 0.1. When creating new releases, he can choosebetween creating minor and major releases. Minor releases increase minor
version, eg. 1.0 to 1.1 or 1.59 to 1.60. Major releases increase themajor version, eg. 1.2 to 2.0. He should choose a minor release whenusers can update the plugin without changing their own code. He should
create a major release when users have to change their own code in orderto upgrade.When creating releases, API documentation should be parsed from 

Re: [jQuery] JQuery Forge

2006-10-05 Thread Jörn Zaefferer
Mike Hostetler schrieb:
 Very cool requirements.  I am more then happy to take the lead on this 
 and even sponsor the hosting on my servers, or work on others servers.
You might want to keep them in mind and discuss the rest with John :-)

-- Jörn

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


Re: [jQuery] Using $ to insert HTML into the page

2006-10-05 Thread Scott Sharkey
Jörn Zaefferer wrote:
 Matthew Pennell schrieb:
 Apologies if this has been raised before - I searched but couldn't 
 find anything.

 In the documentation (visualjquery.com http://visualjquery.com 
 version), it says that the $ function, when passed some HTML as a 
 string, will create the DOM elements representing that HTML string, 
 on the fly.

 Looking at the code though (the clean function), it appears all it is 
 doing is using innerHTML - is this the case? If it is, I think the 
 documentation should be changed to better represent what is actually 
 happening. If not, can someone explain how this works to me please?
 The documentation also says that the created html is to be (assumedly) 
 inserted into the document later. That's the important point, after 
 creating the element, you need to add it to the document using something 
 like appendTo or prependTo. The second example demonstrates that: 
 $(divpHello/p/div).appendTo(#body)

Jorn -- quick question-- does append actually create new DOM nodes as 
children of whatever the target is?

I have an application which is an online quote form.  It is supposed to 
have line items, which may be of one of 4 types, depending on the 
item.  Each of these line items will be connected via ajax so that I can 
do item lookup as they progress. For instance, they select type A, and 
it put's in a selection box (choose color) where the contents are loaded 
via ajax.  Then, as they choose red, the next dropdown box is filled, 
with say, size... etc.  So, each line item will have to have some unique 
way to be identified so that I can target them for later calls.

And I want to have an unlimited number of line items, if that makes 
sense.  Can I use the append functions to do this?

I hope my question makes sense.  Thanks!

-Scott




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


Re: [jQuery] question on how not() works

2006-10-05 Thread Jacky
Thank you for your help~~
And yes, I'm going to match a set of checkboxes with same id prefix.
(some multiple editable row control)

On 10/5/06, John Resig [EMAIL PROTECTED] wrote:
  I tried to assign an id 'checkbox' to the checkbox in the example.
  Using not('[EMAIL PROTECTED]') result in js error in firefox:
 
  'z has no properties' points to line 710 of jQuery.js (Rev: 249)

 Also, just using = should be sufficient. If you're trying to match a
 set of checkboxs, you should go against the @type attribute, or its
 classname, instead.

 --John

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




-- 
Best Regards,
Jacky
網絡暴民 http://jacky.seezone.net

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


Re: [jQuery] Highlight fade plugin bug

2006-10-05 Thread Blair Mitchelmore
That's pretty weird, the page works in firefox but not IE. I'll have to 
investigate in a bit; at the moment I've got a large scale software 
engineering assignment due...

-blair

Rafael Santos wrote:
 hey, have you faced this bug?

 http://blocparty.com.br/js/teste2.html

 Should that happen?

 

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


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


Re: [jQuery] Slider plugin (pre-alpha): HELP NEEDED

2006-10-05 Thread Yehuda Katz
It does put the value back into the input (if you look at the screen, you'll see the input being updated).My goal is to develop a bunch of webforms2-type widget that use the webform2 standard. John suggested this a while back, but I haven't had a need for it until now. 
Obviously, the main problem is the widget's failure in IE. It didn't always fail (there was an earlier iteration that passed), but it had other substantial problems. I think it started to fail when I started to rely more heavily on closures.
The 234 multiplier issue is just weird. Stefan, can you shed any light?-- YehudaOn 10/5/06, Jörn Zaefferer 
[EMAIL PROTECTED] wrote:Yehuda Katz schrieb: I've developed (or partially developed) a new plugin that implements
 webform2's slider. Specifically, you can do stuff like input type=range step=1 min=1 max=10 value=1 id=a / and jQuery will automatically convert it into a stylable range widget.
Does the slider put its current value back into the input? I couldn'tquite figure it out by looking at the code. It's an interesting aspectwhen thinking about integration with both form and validation plugins.
Building widgets and validation according to the Webforms2 spec seemslike the best excuse around for invalid html... :-)If I find anything that would actually help with your questions, I'lllet you know...
-- Jörn___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/
-- Yehuda KatzWeb Developer | Wycats Designs(ph)718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Bug?

2006-10-05 Thread Klaus Hartl

 I propose that instead of prepending to the body, the node should be
 prepended to its parent.
 
 Like this: (or something like this)
 e = $(e.cloneNode(true)).css({
   visibility: hidden, position: absolute, display: block
 }).prependTo($(e).parent())[0];
 
 Am I full of it? I am just getting to know jquery and I may be way out
 there...
 Where should I report bugs like this?
 Thanks all. This is one of the friendliest lists that I subscribe to. Guess
 it should be fun


You are totally right - I fixed that a while ago :-)

You have to get a newer version...


- Klaus

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


Re: [jQuery] Highlight fade plugin bug

2006-10-05 Thread Blair Mitchelmore
OK, in what can officially be called the stupidest mistake ever, my 
regex tested for #FFF before #FF so all 6 char colour strings got 
caught and made into a 3 char so your F0F0F0 became F0F and therefore 
purple... I've fixed the code in the unpacked version at 
http://jquery.offput.ca/js/jquery.highlightFade.js but I'll have to get 
home before I can get a chance to upload a new packed version...

Man do I feel stupid... and amazed that this wasn't caught until now...

-blair

Still gonna look into that table cell highlighting issue later on as well...

Rafael Santos wrote:
 Yeah, it works on IE, but i didnt mention the real bug. This purple 
 color is not defined.. lol


 2006/10/5, Blair Mitchelmore [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] :

 That's pretty weird, the page works in firefox but not IE. I'll
 have to
 investigate in a bit; at the moment I've got a large scale software
 engineering assignment due...

 -blair

 Rafael Santos wrote:
  hey, have you faced this bug?
 
  http://blocparty.com.br/js/teste2.html
 
  Should that happen?
 
 
 
 
  ___
  jQuery mailing list
  discuss@jquery.com mailto:discuss@jquery.com
  http://jquery.com/discuss/


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



 

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


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


Re: [jQuery] Autocomplete Plugin: iframe visible in IE6.

2006-10-05 Thread Jason Huck

FWIW, I killed the parts of the CSS that were hacks for IE5 support (we
haven't supported IE5 in a while), and it seems to be fine now.

- jason





Dylan Verheul wrote:
 
 I've had the same experience writing it.
 You can set the width of the iframe to the width of the autocomplete
 results, that prevents horizontal scrollbars.
 
 Other than that, I haven't had any problems.
 
 Maybe the recent bgiframe extension might be of help?
 
 Dylan
 
 On 10/4/06, Jason Huck [EMAIL PROTECTED] wrote:

 When using the Autocomplete plugin found here:

 http://www.dyve.net/jquery?autocomplete

 I've got one version of IE (6.0.3790.1830) that shows the entire 3000px
 by
 3000px iframe on the screen, obscuring everything behind it and causing
 huge
 scrollbars to appear on the page. It even happens on the demo page
 itself.

 Other browsers (even other versions of IE 6) have a few mild quirks here
 and
 there, but nothing like this.

 Anyone else seeing this? Any ideas for a workaround? I am guessing,
 looking
 at the CSS, that it has something to do with z-index and/or
 filter:mask()...

 Thanks,
 Jason



 --
 View this message in context:
 http://www.nabble.com/Autocomplete-Plugin%3A-iframe-visible-in-IE6.-tf2382681.html#a6640691
 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/Autocomplete-Plugin%3A-iframe-visible-in-IE6.-tf2385392.html#a6667727
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] ScrollTo Functionality

2006-10-05 Thread Ⓙⓐⓚⓔ
I looked at that page... wouldn't it be cooler to just say a
href=#place and have it scroll to a name=place ?

and let JQ do it all behind the scenes?

Is there a more experienced JQ person out there to tackle this?


On 10/5/06, dizzledorf [EMAIL PROTECTED] wrote:

 Interface is the way to go:
 http://interface.eyecon.ro/download

 Demo:
 http://interface.eyecon.ro/demos/ifxscrollto.html


 --DIZZLE


 Junior wrote:
 
  I am wanting to add the ScrollTo functionality in JQuery that produces an
  animated back to top of page. What is the best plugin to use for this? I
  want to mimick the traditional 'Back to Top' link that appears at the
  bottom of long pages.
 

 --
 View this message in context: 
 http://www.nabble.com/ScrollTo-Functionality-tf2391291.html#a6668233
 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] Plugin Rewrite: Accordion

2006-10-05 Thread John Resig
On 10/5/06, Fil [EMAIL PROTECTED] wrote:
   John Resig himself:
   http://jquery.com/discuss/2006-August/010451/
 
  Ah, yes. Don't know how I missed that.

 I guess almost everyone is overwhelmed by this mailing-list :(

  Would be great to see that added to core. John, is that still in the
  works? Any ETA?

 I can't answer this, however I think that using the bug/feature tracking
 system will be more productive.

 First check existing tickets
 http://jquery.com/dev/bugs/

 Then create a new ticket
 http://jquery.com/dev/bugs/new/

That's still the best way to make sure that bugs and/or features get
noticed. I'm still inundated, trying to keep up with everything - but
I still try.

--John

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


Re: [jQuery] Highlight fade plugin bug

2006-10-05 Thread Blair Mitchelmore
OK, I uploaded a new packed version and just in case it mattered, your 
highlightFade code could be made prettier by setting some useful default 
values:

$.highlightFade.defaults['speed'] = 1000;
$.highlightFade.defaults['iterator'] = 'exponential';
$('td.link1').click(function() { $(this).highlightFade('#33') });
$('td.link1').hover(function() { $(this).highlightFade('#F0F0F0') 
},function() { return true });

-blair

Blair Mitchelmore wrote:
 OK, in what can officially be called the stupidest mistake ever, my 
 regex tested for #FFF before #FF so all 6 char colour strings got 
 caught and made into a 3 char so your F0F0F0 became F0F and therefore 
 purple... I've fixed the code in the unpacked version at 
 http://jquery.offput.ca/js/jquery.highlightFade.js but I'll have to get 
 home before I can get a chance to upload a new packed version...

 Man do I feel stupid... and amazed that this wasn't caught until now...

 -blair

 Still gonna look into that table cell highlighting issue later on as well...

 Rafael Santos wrote:
 Yeah, it works on IE, but i didnt mention the real bug. This purple 
 color is not defined.. lol


 2006/10/5, Blair Mitchelmore [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] :

 That's pretty weird, the page works in firefox but not IE. I'll
 have to
 investigate in a bit; at the moment I've got a large scale software
 engineering assignment due...

 -blair

 Rafael Santos wrote:
  hey, have you faced this bug?
 
  http://blocparty.com.br/js/teste2.html
 
  Should that happen?
 
 
 
 
  ___
  jQuery mailing list
  discuss@jquery.com mailto:discuss@jquery.com
  http://jquery.com/discuss/


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



 

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


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


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


Re: [jQuery] Highlight fade plugin bug

2006-10-05 Thread Rafael Santos
nice one man...Thanks a lot2006/10/5, Blair Mitchelmore [EMAIL PROTECTED]:
OK, I uploaded a new packed version and just in case it mattered, yourhighlightFade code could be made prettier by setting some useful defaultvalues:$.highlightFade.defaults['speed'] = 1000;$.highlightFade.defaults['iterator'] = 'exponential';
$('td.link1').click(function() { $(this).highlightFade('#33') });$('td.link1').hover(function() { $(this).highlightFade('#F0F0F0')},function() { return true });-blairBlair Mitchelmore wrote:
 OK, in what can officially be called the stupidest mistake ever, my regex tested for #FFF before #FF so all 6 char colour strings got caught and made into a 3 char so your F0F0F0 became F0F and therefore
 purple... I've fixed the code in the unpacked version at http://jquery.offput.ca/js/jquery.highlightFade.js but I'll have to get home before I can get a chance to upload a new packed version...
 Man do I feel stupid... and amazed that this wasn't caught until now... -blair Still gonna look into that table cell highlighting issue later on as well... Rafael Santos wrote:
 Yeah, it works on IE, but i didnt mention the real bug. This purple color is not defined.. lol 2006/10/5, Blair Mitchelmore 
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] : That's pretty weird, the page works in firefox but not IE. I'll have to
 investigate in a bit; at the moment I've got a large scale software engineering assignment due... -blair Rafael Santos wrote:  hey, have you faced this bug?
   http://blocparty.com.br/js/teste2.html   Should that happen? 
     ___  jQuery mailing list
  discuss@jquery.com mailto:discuss@jquery.com  http://jquery.com/discuss/
 ___ jQuery mailing list discuss@jquery.com mailto:
discuss@jquery.com http://jquery.com/discuss/ 
 ___ jQuery mailing list discuss@jquery.com 
http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com 
http://jquery.com/discuss/___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/

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


Re: [jQuery] New plugin: toXML (XML serializer)

2006-10-05 Thread Antonio Collins
I'm sorry but I don't agree with this plugin's name or usage.  It simply
appends multiple valid xml together so the result could be invalid xml and
include multiple root elements.  In my opinion, the result of any method
named .toXML() should be valid xml and the following tests should result in
valid XML documents.

IE: domDoc.loadXML( $([ item1, item2 ]).toXML() ); 
FF: (new DOMParser()).parseFromString( $([ item1, item2 ]).toXML(),
text/xml );

Tony Collins


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Christof Donat
Sent: Thursday, October 05, 2006 10:02 AM
To: jQuery Discussion.
Subject: Re: [jQuery] New plugin: toXML (XML serializer)

Hi,

 The thing is, the main use case for a toXML() call is to send XML data 
 via an ajax request.

Well, I could imagine that there may be other usecases as well, like doing
search and replace operations on the string representation of a XML which is
reparsed afterwards. It was just a joke, but you may look at that use case

which could be usefull for XML-Data as well:

http://dean.edwards.name/weblog/2006/07/erlaubt/#comment7262

 The duration of the request greatly overshadows any optimisation that 
 could be applied to toXML.

Well, there are also use cases, where you can assume a really fast network
connections (inhouse with 1GB-Ethernet e.g.) and thus work with huge
datasets on the client side. Then suddenly the time, the client and server
need to process the request becomes the dominating factor.

I think that jQuery could also be really usefull for Applications using
XULrunner (I haven't tried yet) and thus there are many other use cases like
e.g. working with RDF-Data, etc. - OK, we don't need to emulate
XMLSerializer then.

 Also, I don't think it is a good idea to attempt to implement an 
 XMLSerializer object for the sake of it, especially when the full 
 interface isn't being implemented

You are right here of course. I was too lazy to look for the
XMLSerializer-interface and see if the other functions can also be simulated
so easy.

 As a rule I live by the KISS principle, and never optimise code unless 
 it becomes a bottleneck, and then only do so under profiling conditions.

Well, KISS is an optimization strategy :-) Most of the time code is fast
when it is simple, but most of the time is not always.

Christof

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


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


Re: [jQuery] New plugin: toXML (XML serializer)

2006-10-05 Thread John Resig
Tony -

It's not, necessarily, implied that this plugin will return valid XML
for an entire XML Document - instead, it's returning valid XML for an
XML Document Fragment - which is perfectly ok.

I mean, you can't expect $([ item1, item2 ]).toXML() to give you a
valid XML document - and forcefully wrapping itself seems foolhardy.
If it was so much of a concern, maybe there could be a
.toXMLDocument() which returned a valid XML document instead of just a
fragment.

--John

On 10/5/06, Antonio Collins [EMAIL PROTECTED] wrote:
 I'm sorry but I don't agree with this plugin's name or usage.  It simply
 appends multiple valid xml together so the result could be invalid xml and
 include multiple root elements.  In my opinion, the result of any method
 named .toXML() should be valid xml and the following tests should result in
 valid XML documents.

 IE: domDoc.loadXML( $([ item1, item2 ]).toXML() );
 FF: (new DOMParser()).parseFromString( $([ item1, item2 ]).toXML(),
 text/xml );

 Tony Collins


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of Christof Donat
 Sent: Thursday, October 05, 2006 10:02 AM
 To: jQuery Discussion.
 Subject: Re: [jQuery] New plugin: toXML (XML serializer)

 Hi,

  The thing is, the main use case for a toXML() call is to send XML data
  via an ajax request.

 Well, I could imagine that there may be other usecases as well, like doing
 search and replace operations on the string representation of a XML which is
 reparsed afterwards. It was just a joke, but you may look at that use case

 which could be usefull for XML-Data as well:

 http://dean.edwards.name/weblog/2006/07/erlaubt/#comment7262

  The duration of the request greatly overshadows any optimisation that
  could be applied to toXML.

 Well, there are also use cases, where you can assume a really fast network
 connections (inhouse with 1GB-Ethernet e.g.) and thus work with huge
 datasets on the client side. Then suddenly the time, the client and server
 need to process the request becomes the dominating factor.

 I think that jQuery could also be really usefull for Applications using
 XULrunner (I haven't tried yet) and thus there are many other use cases like
 e.g. working with RDF-Data, etc. - OK, we don't need to emulate
 XMLSerializer then.

  Also, I don't think it is a good idea to attempt to implement an
  XMLSerializer object for the sake of it, especially when the full
  interface isn't being implemented

 You are right here of course. I was too lazy to look for the
 XMLSerializer-interface and see if the other functions can also be simulated
 so easy.

  As a rule I live by the KISS principle, and never optimise code unless
  it becomes a bottleneck, and then only do so under profiling conditions.

 Well, KISS is an optimization strategy :-) Most of the time code is fast
 when it is simple, but most of the time is not always.

 Christof

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


 ___
 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/


[jQuery] $.fn.height in dimensions.js

2006-10-05 Thread Pascal
I added the dimensions.js plugin to a project I'm working on (mostly  
to get access to the offset component that was added recently) and I  
noticed that it steps on jquery's builtin height() function which can  
be used to get or set the height value. is there a reason for this?

i commented out that part of the plugin (as well as the $.fn.width()  
part) and the parts of my project that were using $.fn.height() to  
set the height of an object are now working again.

is there a reason the dimensions plugin was coded to replace these  
builtin functions without replicating their ability to set and well  
as get the height of an object?

-p

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


Re: [jQuery] jQuery + Atlas (ASP.NET AJAX) or $ conflict

2006-10-05 Thread Oliver Boermans
Thanks Kurt: very useful. Renaming $ and replacing it in my jQuery
script worked nicely.

Dave: At a glance it seems the use of $ in Atlas is pretty much the
same as Prototype http://atlas.asp.net/docs/Client/Global/M_$.aspx.
So the first part of the PrototypeAndJQuery page is relevant here.
Although my script makes extensive use of jQuerys fabulous CSS
selector goodness, so adapting it to work with just id's would be
non-trivial.

Regardless, renaming $ for jQuery works so all is well.

Thanks for the help guys!

Regarding our developers credentials... Two words says it all:
'Microsoft Certified'


On 04/10/06, Kurt Mackey [EMAIL PROTECTED] wrote:
 You might look at the PrototypeAndJQuery page on the wiki:
 http://jquery.com/docs/PrototypeAndJQuery/

 The first section probably isn't applicable, but the second portion
 looks like a workaround that might work with the Atlas client side
 stuff.

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