[jQuery] Plugin idea

2007-01-09 Thread Ólafur Marteinsson

What about a poll plugin? What if it would animate the current standings /
results of the poll in a similiar fashion as the Poll on www.soccernet.com
does. Maybe someone has already done something like this? :)

One can always hope,
Cheers

Oli
-- 
View this message in context: 
http://www.nabble.com/Plugin-idea-tf2945357.html#a8236234
Sent from the jQuery Plugins mailing list archive at Nabble.com.


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


Re: [jQuery] jQuery 1.1a (form submit)

2007-01-09 Thread Mike Alsup
 Strangely, the button element has no methods
 whatsoever[1]

 [1]
 http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-34812697

According to this spec they do:

http://www.w3.org/TR/html4/interact/forms.html#h-17.5

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


Re: [jQuery] Splitter - here's my shot at it

2007-01-09 Thread Jip

Great!! Its simple and flexible. another quality plugin by dave !



dave.methvin wrote:
 
 Give this a try.
 
 http://methvin.com/jquery/splitter/
 
 Oskar, it sounds like you may have solved some of the problems with IE6 I
 haven't tackled yet. This version doesn't yet handle min-width and
 max-width
 for IE6 but I plan to put it there. Maybe we could join forces on this? It
 looks like you've pulled the min-width and max-width support out into its
 own plugin, which would be a great way to handle it.
 
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 

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


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


Re: [jQuery] jQuery 1.1a (form submit)

2007-01-09 Thread Mike Alsup
 According to this spec they do:

Sorry, Klaus, I think I misread your post.

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


Re: [jQuery] Operand definition?

2007-01-09 Thread Felix Geisendörfer

Hey agent2026,

http://docs.jquery.com/DOM/Traversing/Selectors#Supported.2C_but_different

*= means 'contains'
^= means 'begins exactly with'
$= means 'ends exactly with'


-- Felix Geisendörfer aka the_undefined
--
http://www.thinkingphp.org
http://www.fg-webdesign.de


agent2026 wrote:

Hi all,

Forgive me if this is really basic, but what's the difference between *= and
^=, as in [EMAIL PROTECTED]
I thought *= was something like 'exact match', and ^= was 'contains', but
now I'm not sure.

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


Re: [jQuery] Dimension plugin updates

2007-01-09 Thread Dotan Dimet
Thanks, Brandon! That's fixed it!





Brandon Aaron wrote:

 Looks like a couple of colons where causing the problem. Can you try
 it again and let me know if it is still giving you an error?

 --
 Brandon Aaron

 On 1/8/07, Dotan Dimet [EMAIL PROTECTED] wrote:
   
 Brandon, I just did an svn update and tried to parse the docs for the
 plugins,

 and I get an error in parse.js when it tries to parse dimensions.js:

 parsing file ../plugins/dimensions/dimensions.js
 js: build/js/parse.js, line 41: uncaught JavaScript runtime exception:
 TypeError: Cannot set property result of undefined to { top: 100,
 left: 100 }

 Any idea what's up with that?

 I think the line in parse.js is line 40:

  40 if ( n == 'desc' || n == 'before' || n ==
 'after' || n == 'result' ) {
  41 ret.examples[ ret.examples.length -
 1 ][ n ] = v;


 Erik Beeson wrote:

 
 Thanks Brandon! For the lazy, get the latest version here:
 http://jquery.com/dev/svn/trunk/plugins/dimensions/dimensions.js?format=raw
 Or all the files related to the plugin here:
 http://jquery.com/dev/svn/trunk/plugins/dimensions/

 --Erik

 On 1/7/07, Brandon Aaron [EMAIL PROTECTED] wrote:

   
 I just finished checking in some major updates to the dimensions plugin.

 * Added unit tests
 * Fixed a bug in .innerHeight() and .innerWidth()
 * Major refactor of .offset() method to be faster and fix a couple of bugs
 * Added a test/example/benchmark page for the .offset() method

 All of this can be found in SVN but you can try the unit tests for
 yourself here:
 http://brandon.jquery.com/plugins/dimensions/test/unit.html
 http://brandon.jquery.com/plugins/dimensions/test/offset.html

 The .offset() method has changed a lot in the name of performance.
 First it takes an optional param called, includeScrollOffsets. By
 default this param is true and will calculate the scroll offsets. The
 returned object will have two extra properties called scrollTop and
 scrollLeft. These two properties are the cumulative scroll offset. If
 the includeScrollOffsets param is set to false, then the scroll offset
 calculation is ignored and that should provide a performance boost.

 Even with the changes made getting the offset of an element is a slow
 process. So try and cache the offset value when you can instead of
 calling it lots of times in succession.

 There is a bug in Firefox with the .scrollWidth property where it only
 returns width of the visible area, hence the one failure in Firefox. I
 could use some help with this nasty little bug. :)

 If you find any bugs or have a feature request feel free to log them
 and set the component to dimensions. http://jquery.com/dev/bugs/new/

 --
 Brandon Aaron

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

 

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


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


Re: [jQuery] Operand definition?

2007-01-09 Thread Erik Beeson
http://jquery.com/docs/Base/Expression/CSS/

--Erik

On 1/9/07, agent2026 [EMAIL PROTECTED] wrote:

 Hi all,

 Forgive me if this is really basic, but what's the difference between *= and
 ^=, as in [EMAIL PROTECTED]
 I thought *= was something like 'exact match', and ^= was 'contains', but
 now I'm not sure.

 Adam
 --
 View this message in context: 
 http://www.nabble.com/Operand-definition--tf2945284.html#a8236064
 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] Operand definition?

2007-01-09 Thread Klaus Hartl
Felix Geisendörfer schrieb:
 Hey agent2026,
 
 http://docs.jquery.com/DOM/Traversing/Selectors#Supported.2C_but_different
 
 *= means 'contains'
 ^= means 'begins exactly with'
 $= means 'ends exactly with'

And as this is taken from CSS 2/3 selectors you may also look here for a 
complete overview:

http://www.w3.org/TR/REC-CSS2/selector.html#q10
http://www.w3.org/TR/2001/CR-css3-selectors-2003/#attribute-selectors


-- Klaus

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


Re: [jQuery] jQuery 1.1a (form submit)

2007-01-09 Thread Sam Collett
On 09/01/07, Mike Alsup [EMAIL PROTECTED] wrote:
  Strangely, the button element has no methods
  whatsoever[1]
 
  [1]
  http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-34812697

 According to this spec they do:

 http://www.w3.org/TR/html4/interact/forms.html#h-17.5

I wonder if their are other examples of where the HTML spec doesn't
agree with the DOM spec?

In terms of HTML, I try to follow the specification (or at least stick
with the attributes that it defines). But when it comes to JavaScript,
you really limit yourself if you try to be this strict.

jQuery wouldn't work if it was written like that (as it uses innerHTML
and the different methods of adding/removing events).

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


[jQuery] jQuery powered site launched

2007-01-09 Thread Steve Urmston

Hi folks

We have recently launched
http://www.yorkminster.org/
using jQuery, and several excellent plugins (thickbox, jCarousel,
datepicker).

I just wanted to say thanks to everyone on the development team, and to
everyone who replies to problems raised in this list.

Thanks again, and keep it up!
steve
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery powered site launched

2007-01-09 Thread Erik Beeson
Hi Steve,

I don't normally offer feedback on sites because I'm a lousy designer,
but a couple of things jump out at me.

First, those 4 big buttons between the header and the content scream
1998 rollover button, which feel like they clash with the rest of the
generally modern looking site. Also, while I like how the colors
change under the different top level categories, I really don't care
for that heavy border around the buttons when a top level page is
active.
Second, you have 3 sets of menus: the blue boxes in the upper right,
the aforementioned huge buttons, and the links across the bottom. Plus
a sitemap, which _also_ has an additional menu on the left side. Maybe
it's clear to the target audience, but it's a little confusing to me.
I understand why it is that way, but it still seems a little
confusing.

But what do I know? I'm a programmer :) Generally it looks great.
Certainly one of the nicest looking church related websites I've seen.
Nice job!

--Erik

On 1/9/07, Steve Urmston [EMAIL PROTECTED] wrote:
 Hi folks

 We have recently launched
 http://www.yorkminster.org/
 using jQuery, and several excellent plugins (thickbox, jCarousel,
 datepicker).

 I just wanted to say thanks to everyone on the development team, and to
 everyone who replies to problems raised in this list.

 Thanks again, and keep it up!
 steve



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




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


Re: [jQuery] jQuery powered site launched

2007-01-09 Thread Abel Tamayo

Great site. I specially enjoyed the virtual visit-you made a smart use of
thickbox there. The stile for the whole site is very appropiate: legible,
colorful and cool but not flashy and it still distills some holy quality.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery powered site launched

2007-01-09 Thread agent2026

Looks good, especially the virtual tour.  Nice work.

Your getting a horizontal (and a resulting vertical) scroll in FF 2 with
thickbox (though I don't think it's browser specific).  Search the forum for
a fix, it's in here somewhere.

Adam



Steve Urmston wrote:
 
 Hi folks
 
 We have recently launched
 http://www.yorkminster.org/
 using jQuery, and several excellent plugins (thickbox, jCarousel,
 datepicker).
 
 I just wanted to say thanks to everyone on the development team, and to
 everyone who replies to problems raised in this list.
 
 Thanks again, and keep it up!
 steve
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 

-- 
View this message in context: 
http://www.nabble.com/jQuery-powered-site-launched-tf2945594.html#a8237025
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] select links not children of li

2007-01-09 Thread spinnach
it should probably be return this.set, not return jQuery.set, if i'm 
right?..

Yehuda Katz wrote:
 And John's better alternative:
 
 $.fn.notFind = function(obj) {
   if ( obj.constructor == String ) obj = $(obj);
   return jQuery.set( jQuery.grep(this, function(i) { return obj.index(i) 
 == -1 }) );
 };
 
 On 1/8/07, *Yehuda Katz* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
 
 Make that
 
 $.fn.notFind = function(obj) {
   if(typeof obj == string) return $.map(this, function(i) { return
 $(obj).index(i) == -1 ? i : null  })
   else if(obj.jquery) return $.map(this, function(i) { return
 obj.index(i) == -1 ? i : null  })
 
 }
 
 On 1/8/07, * Yehuda Katz*  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
 
 You could do something like this:
 
 $.fn.notFind = function(obj) {
   if(typeof obj == string) return $.map(this, function(i) {
 return $(obj).index(i) == -1 ? i : null  })
   else if(obj.jquery) return $.map(obj, function(i) { return
 obj.index(i) == -1 ? i : null  })
 }
 
 then you could do $(a).notFind(li a)
 
 -- Yehuda
 
 
 
 On 1/8/07, *Yehuda Katz* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
 
 .not(n) only works when n is a filter, like
 .not(.absolute) or .not(:visible)... it can not be used
 to test arbitrary expressions.
 
 -- Yehuda
 
 
 On 1/8/07, * Andy Matthews* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
 
 Why doesn't this work:
 
 $('a').not('li a').click( function() {
 $(this).remove();
 return false;
 });
 
 On this code:
 a href=this is a link/a
 br /br /
 
 lia href=a link inside an li tag/a/li
 lia href=and another/a/li
 
 br /br /
 a href=and finally another link at the bottom/a
 
 It correctly removes the bottom and top links, but it
 also removes the two
 links found within LI tags, which from the way I read
 the API it should not.
 
 
 
 Andy Matthews
 Senior Coldfusion Developer
 
 Office:  877.707.5467 x747
 Direct:  615.627.9747
 Fax:  615.467.6249
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 www.dealerskins.com http://www.dealerskins.com
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]] On
 Behalf Of Jörn Zaefferer
 Sent: Monday, January 08, 2007 3:59 PM
 To: jQuery Discussion.
 Subject: Re: [jQuery] select links not children of li
 
 spinnach schrieb:
   ..how to select all links on a page that are not
 inside a list (not
   children of 'li')?..
 
 Untested:
 $(a).filter(function() { return
 !$(this).parents().is(ul ); })
 
 Requires 1.1
 
 --
 Jörn Zaefferer
 
 http://bassistance.de
 
 
 ___
 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/
 
 
 
 
 -- 
 Yehuda Katz
 Web Developer | Wycats Designs
 (ph)  718.877.1325 
 
 
 
 
 -- 
 Yehuda Katz
 Web Developer | Wycats Designs
 (ph)  718.877.1325 
 
 
 
 
 -- 
 Yehuda Katz
 Web Developer | Wycats Designs
 (ph)  718.877.1325 
 
 
 
 
 -- 
 Yehuda Katz
 Web Developer | Wycats Designs
 (ph)  718.877.1325
 
 
 
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/


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


[jQuery] Problem with Thickbox plugin

2007-01-09 Thread Abel Tamayo

Ok, this is rather strange:
I begin with a list of images like this:

ul class=list_images
   liimg src=images/imag1.png//li
   liimg src=images/imag2.png//li
   liimg src=images/imag3.png//li
/ul

then I include the following piece of jQuery script at $(document).ready:

$(.list_images img).each(function(){$(this).wrap(a
href='+$(this).attr(src)+' class='thickbox'/a);});

as expected, the result is the following modified list, right what I needed
to be able to apply the thickbox effect:

ul class=list_images
   lia class=thickbox href=images/imag1.pngimg
src=images/imag1.png//a/li
   lia class=thickbox href=images/imag2.pngimg
src=images/imag1.png//a/li
   lia class=thickbox href=images/imag3.pngimg
src=images/imag3.png//a/li
/ul

Everything is working smoothly so far, but when I load the page in Firefox
and click on the images, the lightbox doesn't appear at all and I'm
redirected to a blank page with only the image I expected to see (not the
effect I'm looking for). Plus, Firebug warns me that theres an error, but
I've investigated it and it doest the same everytime you try to load an
image in Firefox when it's not inside a HTML document.
And this is when things get freaky: I copy-paste that modified list into a
blank document, load it and guess what: it works! But why can't I generate
the list dynamically? I'm trying to separate content from presentation in
three layers (HTML, script and CSS), so I would really like to make it work.
Plus, it's driving me crazy.

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


Re: [jQuery] Problem with Thickbox plugin

2007-01-09 Thread Mike Alsup
 Plus, it's driving me crazy.

Be aware that thickbox also uses $(document).ready().  If it runs
before your code then things won't work.  You may need to do this so
that your doc-ready is registered first:

script type=text/javascript src=jquery.js/script
script type=text/javascript
$().ready(function() {
$(.list_images img).each(function() {
$(this).wrap(a href='+$(this).attr(src)+' class='thickbox'/a);
});
});
/script
script type=text/javascript src=thickbox.js/script

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


Re: [jQuery] Dimensions plugin myths ... was: Please wait.. tutorial

2007-01-09 Thread Klaus Hartl
Klaus Hartl schrieb:
 If it is intended to provide the height even for hidden elements, it 
 should be changed to this:
 
 return arguments[0] != undefined ? this.css(height, arguments[0]) : 
 parseInt( jQuery.css(this[0], height) );
 
 I vote for the latter. This applies to jQuery 1.1 as well (tested).

parseInt is not needed in that case:

return arguments[0] != undefined ? this.css(height, arguments[0]) : 
jQuery.css(this[0], height);


Also do not forget to update the documentation:

  * @example $(#testdiv).width()
  * @result 200px
^^

-- Klaus



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


[jQuery] List of jQuery-Powered Sites

2007-01-09 Thread Rey Bango
Hi everyone,

With the release jQuery v1.1 eminent, I'd like to begin compiling a list 
of jQuery powered sites for posting on the jQuery site. The sites *DO 
NOT* have to be jQuery v1.1 specific. Sites using prior versions of 
jQuery are perfectly fine for this list. Also, if you're using jQuery 
with another library (YUI, PT, Dojo, et al), that's fine as well. We 
want to know which sites are using jQuery.

If you could, please provide a description of where jQuery is being used 
within the website.

Please reply to this email and I'll begin compiling the list.

Thanks,

Rey

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


Re: [jQuery] Dimensions plugin -- width and height

2007-01-09 Thread Brandon Aaron
On 1/9/07, Dave Methvin [EMAIL PROTECTED] wrote:

  I have left some code in the .height() and .width() methods
  to take a value to set the height or width. This behavior will
  not be documented and is to be deprecated in 1.1 but I have
  left it in for backwards compatibility. Do not rely on this
  behavior because it will be removed in the future.

 The core .height() and .width() methods are also setters though. If that's
 deprecated then we're back to dimensions.js having different behavior than
 the core methods it replaces. Or are the core methods losing their setter
 ability too?

The core .height() and .width() methods are deprecated in 1.1. The
added code is so that the methods are backwards compatible with
previous versions of jQuery that use the .height() and .width()
methods as setters. The setter part of the .height() and .width()
methods in dimensions will eventually be removed.

--
Brandon Aaron

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


Re: [jQuery] jQuery powered site launched

2007-01-09 Thread Sam Collett
On 09/01/07, Shane Graber - jQuery [EMAIL PROTECTED] wrote:
  I find ThickBoxMod works better than the one on the jQuery site:
  http://www.nabble.com/My-ThickBoxMod-tf2740161.html

 Is there a place where this mod can be viewed?  I'm using v.2 of
 Thickbox and I'd like to see the difference.

 Shane

 --

I have uploaded a sample:
http://www.texotela.co.uk/code/jquery/thickboxmod/

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


Re: [jQuery] List of jQuery-Powered Sites

2007-01-09 Thread Klaus Hartl
Rey Bango schrieb:
 Hi everyone,
 
 With the release jQuery v1.1 eminent, I'd like to begin compiling a list 
 of jQuery powered sites for posting on the jQuery site. The sites *DO 
 NOT* have to be jQuery v1.1 specific. Sites using prior versions of 
 jQuery are perfectly fine for this list. Also, if you're using jQuery 
 with another library (YUI, PT, Dojo, et al), that's fine as well. We 
 want to know which sites are using jQuery.
 
 If you could, please provide a description of where jQuery is being used 
 within the website.
 
 Please reply to this email and I'll begin compiling the list.
 
 Thanks,
 
 Rey

I guess you know already, but still:

http://plazes.com - usage everywhere...


-- Klaus

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


Re: [jQuery] jQuery powered site launched

2007-01-09 Thread Steve Urmston

Hi again

Thanks for all the comments, always interesting to hear!

Afraid I can't comment on design related stuff, thanks for the feedback
though.

The tooltips don't use jQuery, was a long time ago now that it was added,
but if I was doing it again, would use;
http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/
I still might if I have time.

I've had myself in a twist with various different thickbox scripts (did try
http://www.nabble.com/My-ThickBoxMod-tf2740161.html, but didn't work dropped
in), the site uses the latest version on http://jquery.com/demo/thickbox/ as
seemed the most stable.

Thanks for the heads up on the scroll bar Adam, was a stray css rule and is
fixed now.

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


Re: [jQuery] List of jQuery-Powered Sites

2007-01-09 Thread Christian Bach
Rey Bango wrote:
 Hi everyone,
 
 With the release jQuery v1.1 eminent, I'd like to begin compiling a list 
 of jQuery powered sites for posting on the jQuery site. The sites *DO 
 NOT* have to be jQuery v1.1 specific. Sites using prior versions of 
 jQuery are perfectly fine for this list. Also, if you're using jQuery 
 with another library (YUI, PT, Dojo, et al), that's fine as well. We 
 want to know which sites are using jQuery.
 
 If you could, please provide a description of where jQuery is being used 
 within the website.
 
 Please reply to this email and I'll begin compiling the list.
 
 Thanks,
 
 Rey

http://www.megastore.se - used all over the site (Swedish, English version 
available at http://english.megastore.se/)

/christian

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


Re: [jQuery] Thickbox to be updated?

2007-01-09 Thread Sam Collett
An example of why I can't really use Thickbox:
http://www.texotela.co.uk/code/jquery/thickbox/

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


Re: [jQuery] List of jQuery-Powered Sites

2007-01-09 Thread Brandon Aaron
Hey Rey,

Here are a few sites we've launched that use jQuery and another is
supposed to launch this week.

Ensemble Studioes: Age of Empires III (http://agecommunity.com/)
jQuery helped us quickly throw together an expandable nav and to very
easily address some cross browser issues.

Sewell (http://sewell.com/)
jQuery saved the day for me on this site. I was previously using
Prototype + Scriptaculous and the whole site felt extremely heavy and
sluggish. I spent a weekend porting the whole site over to jQuery and
that is when I realized the astounding benefits of jQuery. I
immediately cut the library in 1/3 and cut my own JavaScript in half
in a few places. I found that once I switched to jQuery my code became
much easier for myself and other team members to read and maintain.
You can find jQuery in use on every page of this site.

Hope Cottage (http://hopecottage.org/)
You can find jQuery behind the scenes helping us build the unique
navigation on the Home page and delivering an enhanced user experience
in the FAQs.

Dallas Symphony Orchestra (http://dallassymphony.com/)
jQuery's excellent AJAX support enabled us to quickly create an
AJAX'ified calendar widget and made creating the drop down navigation
a breeze.

--
Brandon Aaron

On 1/9/07, Rey Bango [EMAIL PROTECTED] wrote:
 Hi everyone,

 With the release jQuery v1.1 eminent, I'd like to begin compiling a list
 of jQuery powered sites for posting on the jQuery site. The sites *DO
 NOT* have to be jQuery v1.1 specific. Sites using prior versions of
 jQuery are perfectly fine for this list. Also, if you're using jQuery
 with another library (YUI, PT, Dojo, et al), that's fine as well. We
 want to know which sites are using jQuery.

 If you could, please provide a description of where jQuery is being used
 within the website.

 Please reply to this email and I'll begin compiling the list.

 Thanks,

 Rey

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


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


Re: [jQuery] List of jQuery-Powered Sites

2007-01-09 Thread SeViR
Rey Bango wrote:
 Hi everyone,

 With the release jQuery v1.1 eminent, I'd like to begin compiling a list 
 of jQuery powered sites for posting on the jQuery site. The sites *DO 
 NOT* have to be jQuery v1.1 specific. Sites using prior versions of 
 jQuery are perfectly fine for this list. Also, if you're using jQuery 
 with another library (YUI, PT, Dojo, et al), that's fine as well. We 
 want to know which sites are using jQuery.

 If you could, please provide a description of where jQuery is being used 
 within the website.

 Please reply to this email and I'll begin compiling the list.

   

For my part:

LocalMultidem: http://www.um.es/localmultidem   (jQuery + TurboWidgets)
MPASymposium2007: http://www.mpasymposium2007.eu  (in admin area, 
registration, online payment,...)
GAT:   http://www.um.es/atica/gat/gat2/   (jQuery + GreyBox + some of 
own plugins)
SeViR CW:  http://www.sevir.org
and beta projects site: http://www.sevir.org/projects

 Thanks,

 Rey

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

   


-- 
Best Regards,
 José Francisco Rives Lirola sevir1ATgmail.com

 SeViR CW · Computer Design
 http://www.sevir.org
  
 Murcia - Spain


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


[jQuery] insertrows()

2007-01-09 Thread Timothy Bowler

I wish to create rows of a table using the DOM.

Using var tblObj = $(#allProjects); to retrieve the table element i 
then want to use the JS insertRow();


This fails, and if i alert tblObj it reports that its an Object object.


However, when using var tblObj = document.getElementById(allProjects); 
The alert says that its objectHTMLTableElement.


Therefore how can i use JQuery to return the html tabl element object?


thanx

--
___
Timothy M Bowler BSc(Hons) MSc MIET | Senior Programmer

Or Media
Unit 5 Elm Court
156 -170 Bermondsey Street
London
SE1 3TQ

T: 020 7939 9540
F: 020 7939 9541

___ 



The information in this e-mail and any attachments is confidential and is 
intended solely for the addressee. The material may not be reproduced either in 
whole or in part without permission and may not be used or disclosed without 
permission. No copies of the entirety or part of the information set out in 
this email or any attachment may be made without our prior approval.  Any views 
or opinions presented are solely those of the author and do not necessarily 
represent those of Or Multimedia Limited.  If you are not the intended 
recipient of this email, please contact us at [EMAIL PROTECTED]

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


Re: [jQuery] insertrows()

2007-01-09 Thread Brandon Aaron
jQuery wraps one or more elements into what is called a jQuery object.
Then you can use jQuery methods like .addClass() to add a class to the
elements in the jQuery object. If you need to access the actual DOM
node you can do this:

var tblObj = $('#allProjects').get(0);

or you can also do it this way:

var tblObj = $('#allProjects')[0];

This will give you the first matched element in the jQuery object.

--
Brandon Aaron

On 1/9/07, Timothy Bowler [EMAIL PROTECTED] wrote:

  I wish to create rows of a table using the DOM.

  Using var tblObj = $(#allProjects); to retrieve the table element i then
 want to use the JS insertRow();

  This fails, and if i alert tblObj it reports that its an Object object.


  However, when using var tblObj = document.getElementById(allProjects);
 The alert says that its objectHTMLTableElement.

  Therefore how can i use JQuery to return the html tabl element object?


  thanx --
 ___
 Timothy M Bowler BSc(Hons) MSc MIET | Senior Programmer

 Or Media
 Unit 5 Elm Court
 156 -170 Bermondsey Street
 London
 SE1 3TQ

 T: 020 7939 9540
 F: 020 7939 9541

 ___


 The information in this e-mail and any attachments is confidential and is
 intended solely for the addressee. The material may not be reproduced either
 in whole or in part without permission and may not be used or disclosed
 without permission. No copies of the entirety or part of the information set
 out in this email or any attachment may be made without our prior approval.
 Any views or opinions presented are solely those of the author and do not
 necessarily represent those of Or Multimedia Limited. If you are not the
 intended recipient of this email, please contact us at [EMAIL PROTECTED]

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




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


Re: [jQuery] insertrows()

2007-01-09 Thread Mike Alsup
  Therefore how can i use JQuery to return the html tabl element object?

$(..) is not a shortcut for document.getElementById.  It returns a
jQuery object, not a DOM element.  Use this to get the element:

$(#allProjects)[0];

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


Re: [jQuery] dynamic loading of jquery.js into my web page

2007-01-09 Thread Andrea Ercolino


Christof Donat wrote:
 
 Yes, I downloaded it short before.
 Please, tell me when I can download the fixed version, and I'll test
 again
 I just have uploaded the current version again. Please try again.
 

I've just downloaded and tried again but... nothing changed :(

-- 
View this message in context: 
http://www.nabble.com/dynamic-loading-of-jquery.js-into-my-web-page-tf2905089.html#a8243235
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] List of jQuery-Powered Sites

2007-01-09 Thread Yehuda Katz

http://www.pro-core.com uses jQuery.

The site that comes up when you go to that URL is a Flash *marketing* site.
We offer a project management tool for construction companies. The tool is
built in Rails (it's really, really complex), and we offer some cool
features like webcam integration (so that a contractor's clients can see
what's happening on site) and MS Project integration.

I use jQuery fairly extensively through the site, which also uses Prototype
in some places where I wasn't the guy who wrote the code (there's
Proto/Rails stuff everywhere ;)). There are around 5 full-time developers
who have been working on the project, and I've gotten most of them to at
least try using jQuery when JavaScript stuff comes us (although I've become
the unofficial UI/JS dude, so all of the new stuff is in jQuery).

We have an application-wide JavaScript file, which does all sorts of neat
stuff:
* Defines rules for forms
** inline documentation (marked with class=inline-documentation) appears
when a form
   element is focused
** Items marked show_with_checkbox appear when a sibling checkbox is
checked
** Items marked show_with_select appear when a sibling select box has the
correct value
** We built a select-mover widget, which consists of two multiple select
boxes that stuff can be
   moved between. You can also sort the contents of the boxes by company or
name.
* All tables with the class data_panel are sortable
** Throughout the site, there are markup-based facilities for getting the
sortable-ness to be turned off
   for a particular column.
** We built custom parsers for table sorter.
* We have a date-picker widget that was originally written in pure DOM but
that has gotten heavy jQuery
  tune-ups.
* The entire startup section of my app takes a context param, which can be
used to run the startup
  application-related stuff on a newly loaded Ajax section (this is a
function called by $(document).ready)
* We hide and show advanced filters via a simple jQuery one-liner.
* There's a lot more functionality in the site, but I can't find it all at
the moment.

-- Yehuda

On 1/9/07, Brandon Aaron [EMAIL PROTECTED] wrote:


Hey Rey,

Here are a few sites we've launched that use jQuery and another is
supposed to launch this week.

Ensemble Studioes: Age of Empires III (http://agecommunity.com/)
jQuery helped us quickly throw together an expandable nav and to very
easily address some cross browser issues.

Sewell (http://sewell.com/)
jQuery saved the day for me on this site. I was previously using
Prototype + Scriptaculous and the whole site felt extremely heavy and
sluggish. I spent a weekend porting the whole site over to jQuery and
that is when I realized the astounding benefits of jQuery. I
immediately cut the library in 1/3 and cut my own JavaScript in half
in a few places. I found that once I switched to jQuery my code became
much easier for myself and other team members to read and maintain.
You can find jQuery in use on every page of this site.

Hope Cottage (http://hopecottage.org/)
You can find jQuery behind the scenes helping us build the unique
navigation on the Home page and delivering an enhanced user experience
in the FAQs.

Dallas Symphony Orchestra (http://dallassymphony.com/)
jQuery's excellent AJAX support enabled us to quickly create an
AJAX'ified calendar widget and made creating the drop down navigation
a breeze.

--
Brandon Aaron

On 1/9/07, Rey Bango [EMAIL PROTECTED] wrote:
 Hi everyone,

 With the release jQuery v1.1 eminent, I'd like to begin compiling a list
 of jQuery powered sites for posting on the jQuery site. The sites *DO
 NOT* have to be jQuery v1.1 specific. Sites using prior versions of
 jQuery are perfectly fine for this list. Also, if you're using jQuery
 with another library (YUI, PT, Dojo, et al), that's fine as well. We
 want to know which sites are using jQuery.

 If you could, please provide a description of where jQuery is being used
 within the website.

 Please reply to this email and I'll begin compiling the list.

 Thanks,

 Rey

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


___
jQuery mailing list
discuss@jquery.com
http://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] insertrows()

2007-01-09 Thread Timothy Bowler

Kewl, makes more sense now - thanx dudes

xxx

--
___
Timothy M Bowler BSc(Hons) MSc MIET | Senior Programmer

Or Media
Unit 5 Elm Court
156 -170 Bermondsey Street
London
SE1 3TQ

T: 020 7939 9540
F: 020 7939 9541

___ 



The information in this e-mail and any attachments is confidential and is 
intended solely for the addressee. The material may not be reproduced either in 
whole or in part without permission and may not be used or disclosed without 
permission. No copies of the entirety or part of the information set out in 
this email or any attachment may be made without our prior approval.  Any views 
or opinions presented are solely those of the author and do not necessarily 
represent those of Or Multimedia Limited.  If you are not the intended 
recipient of this email, please contact us at [EMAIL PROTECTED]

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


Re: [jQuery] insertrows()

2007-01-09 Thread Alex Cook
Take a look at the .get() function in the API.

 

You need something like this...

 

var tblObj = $(#allProjects).get(0);

 

or, even shorter...

 

var tblObj = $(#allProjects)[0];

 

Basically, when using the $() function, you receive a JQ object.  .get()
returns the actual HTML element, so you can now use JS .insertRows()
function.

 

-ALEX

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Timothy Bowler
Sent: Tuesday, January 09, 2007 10:09 AM
To: discuss@jquery.com
Subject: [jQuery] insertrows()

 

I wish to create rows of a table using the DOM.

Using var tblObj = $(#allProjects); to retrieve the table element i
then want to use the JS insertRow();

This fails, and if i alert tblObj it reports that its an Object object.


However, when using var tblObj = document.getElementById(allProjects);
The alert says that its objectHTMLTableElement.

Therefore how can i use JQuery to return the html tabl element object?


thanx 

-- 
___
Timothy M Bowler BSc(Hons) MSc MIET | Senior Programmer
 
Or Media
Unit 5 Elm Court
156 -170 Bermondsey Street
London
SE1 3TQ
 
T: 020 7939 9540
F: 020 7939 9541
 
___ 
 
 
The information in this e-mail and any attachments is confidential and
is intended solely for the addressee. The material may not be reproduced
either in whole or in part without permission and may not be used or
disclosed without permission. No copies of the entirety or part of the
information set out in this email or any attachment may be made without
our prior approval.  Any views or opinions presented are solely those of
the author and do not necessarily represent those of Or Multimedia
Limited.  If you are not the intended recipient of this email, please
contact us at [EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Plugin idea

2007-01-09 Thread Jörn Zaefferer
Ólafur Marteinsson schrieb:
 What about a poll plugin? What if it would animate the current standings /
 results of the poll in a similiar fashion as the Poll on www.soccernet.com
 does. Maybe someone has already done something like this? :)
   
You could modify http://sandbox.wilstuckey.com/jquery-ratings/ to make 
it more generic.

-- 
Jörn Zaefferer

http://bassistance.de


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


Re: [jQuery] Dimensions plugin -- width and height

2007-01-09 Thread Jörn Zaefferer
Dave Methvin schrieb:
  The core .height() and .width() methods are deprecated in 1.1.
 

 Sho 'nuff, I missed that. In that case it makes sense to remove it from
 dimensions.js eventually.
   
Could someone please explain the difference between.

1.0.4 height()/width()
1.0.4 css(height/width)
1.1 css(height/width)
dimension's height()/width()

What do I need to compute width/height of an invisible element?

-- 
Jörn Zaefferer

http://bassistance.de


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


Re: [jQuery] Problem with Thickbox plugin

2007-01-09 Thread Abel Tamayo

I can't believe it, but that TB_init() call after unbinding the event works.
I don't understand very well why, but thanks for your help, Sam.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Sticky Tooltips Plug-in?

2007-01-09 Thread Dan G. Switzer, II
I'm looking for tooltip that supports sticky tips (i.e. trigger via a click
and have to manually close.)

I've looked at the Tip libraries on the plug-in page, but none do what I
need.

Specifically what I'm wanting to do is load an external chunk of HTML when a
user clicks on an object. I know thickbox will do this, but I don't want to
cover up the rest of the page.

-Dan


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


Re: [jQuery] Dimensions plugin -- width and height

2007-01-09 Thread Klaus Hartl


Jörn Zaefferer schrieb:
 Dave Methvin schrieb:
  The core .height() and .width() methods are deprecated in 1.1.
 
 Sho 'nuff, I missed that. In that case it makes sense to remove it from
 dimensions.js eventually.
   
 Could someone please explain the difference between.
 
 1.0.4 height()/width()
 1.0.4 css(height/width)
 1.1 css(height/width)
 dimension's height()/width()
 
 What do I need to compute width/height of an invisible element?
 

  1.0.4 height()/width()
returns an integer value (via clientHeight/offsetHeight), e.g. 110

  1.0.4 css(height/width)
returns a string (via getComputedStyle), e.g. 110px

  1.1 css(height/width)
same as 1.0.4

  dimension's height()/width()
with the latest additions from Brandon same as 1.04 height()/width()

  What do I need to compute width/height of an invisible element?
height()/width() from latest dimensions plugin or $.css(elem, 
'height')/$.css(elem, 'width') - $(elem).css('height') will return NaN.


PS: ...unless I'm not totally confused again.


-- Klaus

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


Re: [jQuery] Dimensions plugin -- width and height

2007-01-09 Thread Jörn Zaefferer
Klaus Hartl schrieb:
 Jörn Zaefferer schrieb:
   
 Dave Methvin schrieb:
 
  The core .height() and .width() methods are deprecated in 1.1.
 
 
 Sho 'nuff, I missed that. In that case it makes sense to remove it from
 dimensions.js eventually.
   
   
 Could someone please explain the difference between.

 1.0.4 height()/width()
 1.0.4 css(height/width)
 1.1 css(height/width)
 dimension's height()/width()

 What do I need to compute width/height of an invisible element?

 

   1.0.4 height()/width()
 returns an integer value (via clientHeight/offsetHeight), e.g. 110

   1.0.4 css(height/width)
 returns a string (via getComputedStyle), e.g. 110px

   1.1 css(height/width)
 same as 1.0.4

   dimension's height()/width()
 with the latest additions from Brandon same as 1.04 height()/width()

   What do I need to compute width/height of an invisible element?
 height()/width() from latest dimensions plugin or $.css(elem, 
 'height')/$.css(elem, 'width') - $(elem).css('height') will return NaN.
   
Ok, thanks for the clarification.

-- 
Jörn Zaefferer

http://bassistance.de


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


Re: [jQuery] Dimensions plugin -- width and height

2007-01-09 Thread Alex Cook
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Klaus Hartl
Subject: Re: [jQuery] Dimensions plugin -- width and height

PS: ...unless I'm not totally confused again.


-- Klaus

-

If you're confused we're all screwed then...

-ALEX

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


Re: [jQuery] Sticky Tooltips Plug-in?

2007-01-09 Thread Jörn Zaefferer
Dan G. Switzer, II schrieb:
 I'm looking for tooltip that supports sticky tips (i.e. trigger via a click
 and have to manually close.)

 I've looked at the Tip libraries on the plug-in page, but none do what I
 need.

 Specifically what I'm wanting to do is load an external chunk of HTML when a
 user clicks on an object. I know thickbox will do this, but I don't want to
 cover up the rest of the page.
   
I guess my click feature is not yet quite what you are looking for, 
right? http://jquery.bassistance.de/tooltip/tooltipTest.html Click the 
image to see it.

You could just remove the overlay code from thickbox... that should go 
into it's own plugin anyway.

-- 
Jörn Zaefferer

http://bassistance.de


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


Re: [jQuery] Sticky Tooltips Plug-in?

2007-01-09 Thread Dan G. Switzer, II
Jörn,

I guess my click feature is not yet quite what you are looking for,
right? http://jquery.bassistance.de/tooltip/tooltipTest.html Click the
image to see it.

You could just remove the overlay code from thickbox... that should go
into it's own plugin anyway.

No. I need the hide/close functionality to be based upon the user clicking
something. I've been working on modifying the jTip plug-in to meet my needs.

-Dan


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


[jQuery] .addOption/.removeOption broke in jq1.1?

2007-01-09 Thread Christopher Jordan

Hi folks,

I'm using Sam Collett's plug-in to add and remove options from a select 
list, and under jQuery 1.1a it breaks.


for(i = 0; i  ClientData.shifts.length; i++){
 $(##Shift_ID).addOption(ClientData.shifts[i].shiftcode + ~ + 
ClientData.shifts[i].shiftid + ~ + ClientData.shifts[i].shiftname, 
ClientData.shifts[i].shiftname, false);

}

The above code used to work and now it doesn't. The specific error is 
object doesn't support this property or method.


Any ideas? Short enough, Jörn? ;o)

Chris

--
http://www.cjordan.info

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


Re: [jQuery] .addOption/.removeOption broke in jq1.1?

2007-01-09 Thread Jörn Zaefferer
Christopher Jordan schrieb:
 Hi folks,

 I'm using Sam Collett's plug-in to add and remove options from a 
 select list, and under jQuery 1.1a it breaks.

 for(i = 0; i  ClientData.shifts.length; i++){
   $(##Shift_ID).addOption(ClientData.shifts[i].shiftcode + ~ + 
 ClientData.shifts[i].shiftid + ~ + ClientData.shifts[i].shiftname, 
 ClientData.shifts[i].shiftname, false);
 }

 The above code used to work and now it doesn't. The specific error is 
 object doesn't support this property or method.

 Any ideas? Short enough, Jörn? ;o)
Great! You just forgot to add a link to an example page or at least to 
the plugin.

-- 
Jörn Zaefferer

http://bassistance.de


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


Re: [jQuery] .addOption/.removeOption broke in jq1.1?

2007-01-09 Thread Brandon Aaron
As of 1.0.3 I believe you can do this with straight HTML across all browsers.

$('#optionElm').append('option value=Name/option');

--
Brandon Aaron

On 1/9/07, Christopher Jordan [EMAIL PROTECTED] wrote:

  Hi folks,

  I'm using Sam Collett's plug-in to add and remove options from a select
 list, and under jQuery 1.1a it breaks.

  for(i = 0; i  ClientData.shifts.length; i++){
$(##Shift_ID).addOption(ClientData.shifts[i].shiftcode + ~ +
 ClientData.shifts[i].shiftid + ~ + ClientData.shifts[i].shiftname,
 ClientData.shifts[i].shiftname, false);
  }

  The above code used to work and now it doesn't. The specific error is
 object doesn't support this property or method.

  Any ideas? Short enough, Jörn? ;o)

  Chris

  --
 http://www.cjordan.info

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




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


Re: [jQuery] .addOption/.removeOption broke in jq1.1?

2007-01-09 Thread Christopher Jordan

lol! :o)

My dev box isn't accessible to the outside world. It's a shame. I've 
asked several times that it be made accessible, but they won't do it. :o(


Lemme see if I can get a small example together that I could put in a 
publicly accessible place. :o)


Chris

Jörn Zaefferer wrote:

Christopher Jordan schrieb:
  

Hi folks,

I'm using Sam Collett's plug-in to add and remove options from a 
select list, and under jQuery 1.1a it breaks.


for(i = 0; i  ClientData.shifts.length; i++){
  $(##Shift_ID).addOption(ClientData.shifts[i].shiftcode + ~ + 
ClientData.shifts[i].shiftid + ~ + ClientData.shifts[i].shiftname, 
ClientData.shifts[i].shiftname, false);

}

The above code used to work and now it doesn't. The specific error is 
object doesn't support this property or method.


Any ideas? Short enough, Jörn? ;o)

Great! You just forgot to add a link to an example page or at least to 
the plugin.


  


--
http://www.cjordan.info

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


Re: [jQuery] .addOption/.removeOption broke in jq1.1?

2007-01-09 Thread Christopher Jordan
Hmm... It might be trivial, but that means I have to write code that 
will decide if an option is selected or not rather than passing a boolean.


I used to be able to do this:
$(##Classification_ID).addOption(myValue, myOptionDisplay, 
(a[i].toUpperCase() == RN));


The last bit would evaluate to a true or false, and either select the 
option or not. It's was a handy shortcut. Well, I'll overcome it.


Jörn: I was able to get a small sample to break, but since it appears 
that what the dev folks want is for us to .append and .prepend, I'll do 
that. Whatever is faster. :o)


Thanks Brandon.
Thanks Jörn.

Cheers,
Chris

Brandon Aaron wrote:

A plugin used to be necessary for something like this as IE had some
problems adding html to a select element. In jQuery we were able to
work around this and provide a way to add html to select elements. I
think it is better to not use a plugin if you don't have too. Less
code to push to the browser. You should be able to select and element
like this:

$('#select').append('option value= selected=selectedName/option');

You can also use .prepend().

--
Brandon Aaron

On 1/9/07, Christopher Jordan [EMAIL PROTECTED] wrote:
  

 Does everyone agree that this is the best way? I figured that the plug-in
was written for a reason. I picked it up early, before I knew very much
jQuery, and have just kept it in my code. I did notice that the plug-in
doesn't appear to be available from jQuery.com/plugins (but, then again
neither is the plug-in that I wrote).

 So which way *should* I be trying to accomplish building my selects? One
nice feature of this plug-in is the ability to pass a true or false to
select the option or not.

 Any more thoughts? (also, I'm still trying to produce an example showing
the break I'm seeing)

 Chris


 Brandon Aaron wrote:
 As of 1.0.3 I believe you can do this with straight HTML across all
browsers.

$('#optionElm').append('option value=Name/option');

--
Brandon Aaron

On 1/9/07, Christopher Jordan [EMAIL PROTECTED] wrote:


 Hi folks,

 I'm using Sam Collett's plug-in to add and remove options from a select
list, and under jQuery 1.1a it breaks.

 for(i = 0; i  ClientData.shifts.length; i++){
 $(##Shift_ID).addOption(ClientData.shifts[i].shiftcode + ~ +
ClientData.shifts[i].shiftid + ~ + ClientData.shifts[i].shiftname,
ClientData.shifts[i].shiftname, false);
 }

 The above code used to work and now it doesn't. The specific error is
object doesn't support this property or method.

 Any ideas? Short enough, Jörn? ;o)

 Chris

 --
http://www.cjordan.info

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




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



 --
http://www.cjordan.info

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






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

  


--
http://www.cjordan.info

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


Re: [jQuery] .addOption/.removeOption broke in jq1.1?

2007-01-09 Thread Brandon Aaron
On 1/9/07, Christopher Jordan [EMAIL PROTECTED] wrote:

  Hmm... It might be trivial, but that means I have to write code that will
 decide if an option is selected or not rather than passing a boolean.

  I used to be able to do this:
  $(##Classification_ID).addOption(myValue,
 myOptionDisplay, (a[i].toUpperCase() == RN));

  The last bit would evaluate to a true or false, and either select the
 option or not. It's was a handy shortcut. Well, I'll overcome it.

  Jörn: I was able to get a small sample to break, but since it appears that
 what the dev folks want is for us to .append and .prepend, I'll do that.
 Whatever is faster. :o)

No, I just wanted to make sure you knew it was possible to do without
the plugin. I would encourage you to make it as simple on yourself as
possible. If you are already using the plugin, I wouldn't drop it.
Sometimes, bug fixes like the select element get overlooked and I just
wanted to try and spread the word. :)

If you could post a link to the actual plugin, I can setup a simple
test case and see if we can find the issue.

--
Brandon Aaron

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


Re: [jQuery] .addOption/.removeOption broke in jq1.1?

2007-01-09 Thread Dave Methvin
 As of 1.0.3 I believe you can do this with straight
 HTML across all browsers.
 $('#optionElm').append('option value=Name/option');

If it doesn't work, please file a bug. I was the suspect last seen in the
vicinity of that code, and it worked for me.

Browser bugs have been reported here that some attributes don't carry over
(in both FF and IE) when you move form-related DOM elements around. For
example, I think you may need to set the selectedIndex attribute of the
select to get the correct index set after appending elements; it may not pay
attention to an appended option with a selected attribute. Similarly, I
think checkboxes become unchecked when you move them in FF. We've had some
threads about it but I can't find them offhand. 

Really, I can't see the reason why the original plugin doesn't work; I
looked through the code quickly but nothing stuck out. A demo page would
help. You've got the most recent version, right?
http://www.texotela.co.uk/code/jquery/select/


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


Re: [jQuery] .addOption/.removeOption broke in jq1.1?

2007-01-09 Thread Christopher Jordan
It only took like five minutes to switch to using .append(). In the 
beginning it's how I would have done it to begin with.


However, the plug-in is here: 
http://sam.collett.googlepages.com/addOption.html and I've already 
written code that breaks it.


html
   head
   titleSelect Test Page/title
   script type=text/javascript src=/include/js/jquery.js/script
   script
   var a = new Array;
   a[0] = jQuery;
   a[1] = really;
   a[2] = rocks!;
  
   function PopulateSelect(){

   for(var i = 0; i  a.length; i++){
   $(#MySelectID).addOption(a[i], a[i], false);
   }
   }
   /script
   /head
  
   body

   select id=MySelectID name=MySelect/select
   input type=button value= Populate  onclick=PopulateSelect();
   /body
/html

I hadn't gotten the chance to post it on my personal site so folks could 
look at it, but now I'm not sure there's a need. It'd be nice if the 
plug-in worked too, but like you said, don't push code that you don't 
need down to the browser. :o)


I think I'm using the plug-in in one or two more areas, but those pages 
have not been upgraded to jq1.1 just yet. :o)


Thanks,
Chris

Brandon Aaron wrote:

On 1/9/07, Christopher Jordan [EMAIL PROTECTED] wrote:
  

 Hmm... It might be trivial, but that means I have to write code that will
decide if an option is selected or not rather than passing a boolean.

 I used to be able to do this:
 $(##Classification_ID).addOption(myValue,
myOptionDisplay, (a[i].toUpperCase() == RN));

 The last bit would evaluate to a true or false, and either select the
option or not. It's was a handy shortcut. Well, I'll overcome it.

 Jörn: I was able to get a small sample to break, but since it appears that
what the dev folks want is for us to .append and .prepend, I'll do that.
Whatever is faster. :o)



No, I just wanted to make sure you knew it was possible to do without
the plugin. I would encourage you to make it as simple on yourself as
possible. If you are already using the plugin, I wouldn't drop it.
Sometimes, bug fixes like the select element get overlooked and I just
wanted to try and spread the word. :)

If you could post a link to the actual plugin, I can setup a simple
test case and see if we can find the issue.

--
Brandon Aaron

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

  


--
http://www.cjordan.info

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


Re: [jQuery] .addOption/.removeOption broke in jq1.1?

2007-01-09 Thread Christopher Jordan

Dave,

See my most recent post. I got the source code for the select from a 
different place (I searched for it in nabble, and this was the first 
place I found it), http://sam.collett.googlepages.com/addOption.html. I 
just got the code from the link you provided. Let me see if that helps any.


Chris

Dave Methvin wrote:

As of 1.0.3 I believe you can do this with straight
HTML across all browsers.
$('#optionElm').append('option value=Name/option');



If it doesn't work, please file a bug. I was the suspect last seen in the
vicinity of that code, and it worked for me.

Browser bugs have been reported here that some attributes don't carry over
(in both FF and IE) when you move form-related DOM elements around. For
example, I think you may need to set the selectedIndex attribute of the
select to get the correct index set after appending elements; it may not pay
attention to an appended option with a selected attribute. Similarly, I
think checkboxes become unchecked when you move them in FF. We've had some
threads about it but I can't find them offhand. 


Really, I can't see the reason why the original plugin doesn't work; I
looked through the code quickly but nothing stuck out. A demo page would
help. You've got the most recent version, right?
http://www.texotela.co.uk/code/jquery/select/


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

  


--
http://www.cjordan.info

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


[jQuery] Play around with JQuery

2007-01-09 Thread Olaf Bosch
Hi @All, go on ;)

I further play with a new Plugin. I would give external Links a marker 
from the favicon.
Look this:
http://olaf-bosch.de/bugs/jquery/links.html

Errors are, all Links are find. $(#text a).favicon(); is the Selector.
And i become not the TAG in or after the Links.
The correct TAG is given, in alert!

Cane you help?

-- 
Viele Grüße, Olaf

---
[EMAIL PROTECTED]
http://olaf-bosch.de
www.akitafreund.de
---

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


Re: [jQuery] Play around with JQuery

2007-01-09 Thread Olaf Bosch
Olaf Bosch schrieb:

 Errors are, all Links are find. $(#text a).favicon(); is the Selector.

Oh, i stupid, i close not the DIV, dammit :)


-- 
Viele Grüße, Olaf

---
[EMAIL PROTECTED]
http://olaf-bosch.de
www.akitafreund.de
---

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


Re: [jQuery] Play around with JQuery

2007-01-09 Thread Klaus Hartl
Olaf Bosch schrieb:
 Olaf Bosch schrieb:
 
 Errors are, all Links are find. $(#text a).favicon(); is the Selector.
 
 Oh, i stupid, i close not the DIV, dammit :)
 

That's not the problem but inside the each loop this is a DOM element 
and not a jQuery object, thus this.append(cue) won't work.

It has to be: jQuery(this).append(cue)

Also, if you intend to make that plugin chainable (jQuery.fn.favicon) 
you have to use:

return this.each(...);

And maybe you don't need to use all the regular expressions to parse the 
domain. There are properties ready to use:

this.hostname would give you www.google.com

All in all, try this:

jQuery.fn.favicon = function () {
   return this.each(function() {
 var hoststring = /^http:/i;
 var hrefvalue = this.getAttribute(href);
 if (hrefvalue.search(hoststring) != -1) {
   var domain = this.hostname;
   var cuesrc = http://+domain+/favicon.ico;;
   var cue = img class=\favicon\ src=\+cuesrc+\ alt=\\ /;
   jQuery(this).append(cue);
 }
   });
};


-- Klaus




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


[jQuery] Can't seem to get BlockUI to work.

2007-01-09 Thread Christopher Jordan
I'm trying to get blockUI to work for the first time, and I'm having 
trouble. I want it to block the UI at the start of every ajax call, and 
unblock at upon the completion of call (presumably after the success 
function has completed). I've looked at the code on 
http://malsup.com/jquery/block/, and from it I've gathered that what I 
want is to use .ajaxStart() and .ajaxStop(). I've got the following code 
in my $(document).ready:

$().ajaxStart(function() {
$.blockUI();
});

$().ajaxStop(function() {
$.unblockUI();
});

My understanding is that these should be global and will automatically 
fire with each ajax call. It seems to think that $.blockUI isn't a 
function. I wrote a little test page and put it on my site 
http://cjordan.info/projects/jQuery/Tests/Test-BlockUI.cfm. I believe 
I'm including all the right files this time. :o) I hope someone can help 
me with this. I feel like it's my usage of the ajaxStart/Stop functions 
that are wrong, but I don't know.

Thanks,
Chris

-- 
http://www.cjordan.info


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


Re: [jQuery] Can't seem to get BlockUI to work.

2007-01-09 Thread Mike Alsup
 Try this:

 $.ajaxStart($.blockUI);
 $.ajaxStop($.unblockUI);

 It is $.ajaxStart not $().ajaxStart (these are not supposed to be

Klaus, that doesn't work.  ajaxStart, and the rest, are bound to the
jQuery prototype.  $.ajaxStart is not a defined function.
$.fn.ajaxStart is.

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