[jQuery] question on how not() works

2006-10-04 Thread Jacky
Hi all, I'm a newbie in jQuery. I have some question on how 'not()' works. e.g. HTML: table id=test tr td input type=checkbox name=checkbox/ input type=hidden name=hidden/ /td td

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

2006-10-04 Thread John Resig
.not() is really greedy, if filters out /everything/ that you specify, so when you say: [EMAIL PROTECTED]@name=checkbox] You're saying: - Anything that's not an input element - AND anything that's type property isn't checkbox - AND anything that's name isn't checkbox It's the first one that's

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

2006-10-04 Thread Jacky
So, it's a special case in not()? Just to clarify: If I use $('[EMAIL PROTECTED]@name=checkbox]') , It should read: select an input element with checkbox type and named 'checkbox'. But in not('[EMAIL PROTECTED]@name=checkbox]') , It should read: select input element OR element with checkbox type

Re: [jQuery] slideUp / slideDown and nested divs

2006-10-04 Thread Mika Tuupola
On Oct 4, 2006, at 11:16, Mika Tuupola wrote: ** Example 1: http://www.appelsiini.net/~tuupola/jquery/slideupdown/ slideupdown2.html ** Example 2: http://www.appelsiini.net/~tuupola/jquery/slideupdown/ slideupdown3.html Answering to myself here. It seems that calling slideDown() also

[jQuery] slashing

2006-10-04 Thread Andrea Ercolino
I 'vefound that addresses like http://jquery.com/dev/don't work if the last slash is stripped off. I think they should be mapped to theslash version in the server configuration. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

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

2006-10-04 Thread Jacky
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) On 10/4/06, John Resig [EMAIL PROTECTED] wrote: But in not('[EMAIL PROTECTED]@name=checkbox]') ,

Re: [jQuery] extending functions?

2006-10-04 Thread Franck Marcia
OK I modified Accordion to be more flexible: http://fmarcia.info/jquery/accordion.html. You can now set an action when an item is clicked, shown or hidden and you can choose the animation speed. Any comment appreciated. Cheers, Franck. ___ jQuery

[jQuery] Interface Sortables Slow in IE

2006-10-04 Thread Matthew Bidwell
I just update an application that uses the Sortables plug-in-in with the current code. It works, however the speed is much slower than the previous version that I was using from 6-8 weeks ago. The slow part happens immediately when you click on an item to drag begin dragging it. Any idea what

Re: [jQuery] extending functions?

2006-10-04 Thread sivy
Hi Franck (et al), You know, I had a whole post written as to how I needed to be able to extend the accordion object somehow, but in the process realized that it would be easier to explain what it is I'm trying to do. I've been asked to create a wizard version of the accordion, such that: 1)

Re: [jQuery] JCarousel + ajax + Safari = trouble!

2006-10-04 Thread Francisco Brito
I didn't like your puppy.ok, just kidding. On 10/3/06, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote: no comments? did you even like my puppy? did any versions work in IE?No safari gurus out there? does Jan Sorgalla have any idea? On 10/2/06, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote: My first jquery page was to celebrate my

[jQuery] Object cloning

2006-10-04 Thread Yehuda Katz
Is there a way to clone an object so that I can hold onto the data but still rename the original variable (without assigning it to a new variable... I need to do this an arbitrary amount of times, so doing it anonymously would be best). -- Yehuda KatzWeb Developer | Wycats Designs(ph)718.877.1325

[jQuery] Autocomplete Plugin: iframe visible in IE6.

2006-10-04 Thread Jason Huck
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

Re: [jQuery] New JTicker version - multiple tickers on a single page

2006-10-04 Thread Rey Bango
Working good in FF IE 7. Rey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jason Levine Sent: Tuesday, October 03, 2006 2:34 PM To: jQuery Discussion Subject: [jQuery] New JTicker version - multiple tickers on a single page I've updated

Re: [jQuery] extending functions?

2006-10-04 Thread Rey Bango
In FF, it looks very nice. In IE 7, on the accordian with options, there's a very noticeable color change in the text from dark to light which doesn't happen in FF. Also, the accordian w/ options also has a very distracting flicker to it when you select a div to expand or contract. Other

[jQuery] Remove elements with a particular first-child from matches?

2006-10-04 Thread Luke Lutman
Hi all, I'm having trouble removing a div from a set of matches if the div has a particular first-child element. ##Here's what I've got: div123/div divspanabc/spanxyz/div divspandef/spanghi/div I have a $() object matching all divs (i.e. $('div')), but I only want to process divs which

[jQuery] New tableSorter demo, custom text extraction and more.

2006-10-04 Thread Christian Bach
Hi, I put together a small demo of some new improved features in the upcoming 1.1 release. More info and live demo: http://motherrussia.polyester.se/pub/jquery/demos/extraction/ Best regards christian ___ jQuery mailing list discuss@jquery.com

Re: [jQuery] hover, Firefox, uncaught exception

2006-10-04 Thread Choan C. Gálvez
On 10/3/06, Brandon Aaron [EMAIL PROTECTED] wrote: Okay ... So instead of this: while ( p p != this ) try { p = p.parentNode } catch(e) { p = null; }; I should have set p = this like this: while ( p p != this ) try { p = p.parentNode } catch(e) { p = this; }; You can see it working here:

[jQuery] position: fixed with

2006-10-04 Thread Vaska
Bonjour: Has anybody successfully used 'position: fixed;' with Interface FX? http://interface.eyecon.ro/demos/ifxslide.html In particular, the 'slide toggle down' function. I'm using... htmlbody #footer { position:fixed; bottom:0; z-index:10; } // jquery layer htmlbody

Re: [jQuery] New Plugin: bgiframe

2006-10-04 Thread Klaus Hartl
Brandon Aaron schrieb: Cool! It's always great to see how different people come up with different solutions. I'm curious why you need to toggle the iframe's display if you are hiding and showing its parent? Am I missing something? It seems like it is just an extra call in the chain that

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

2006-10-04 Thread Karl Swedberg
On Oct 4, 2006, at 10:33 AM, Jason Huck 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

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

2006-10-04 Thread Dave Methvin
As an aside, or perhaps a branch, to this conversation... I'm a jQuery newbie, and have found it interesting that callbacks in the system do not seem to get parameters. In systems that I've used before that provided callbacks, those callbacks typically got a parameter or set of parameters

Re: [jQuery] jQuery Plugin question

2006-10-04 Thread Brian Miller
Create an empty object, pass it to the .each() block, and add each id as a property of it as you go. My first crack (which is probably hopelessly b0rked, but may get the point across...): var myInputs = {}; function sliderCallback { myInputs[this.id].rangeEl =

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

2006-10-04 Thread John Resig
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

Re: [jQuery] New JTicker version - multiple tickers on a single page

2006-10-04 Thread Klaus Hartl
providing something similiar with the tabs plugin. If you want to use your own custom animation, you can pass in hashes exactly of the form the animate function expects. $(...).tabs({ fxAnimate: [ {height: 'show', opacity: 'show'}, {height: 'hide', opacity: 'hide'}

Re: [jQuery] jQuery Plugin question

2006-10-04 Thread Dave Methvin
Is there a way to set a variable in an each that will be stored separately for each instance of the plugin (for example, if I am performing an action on all inputs, is there a way to store the input type and reuse it later?). Maybe I'm not being clear, so here's the example:

Re: [jQuery] jQuery Plugin question

2006-10-04 Thread Ⓙⓐⓚⓔ
While I agree that var is often missing and global vars are often not a good idea... In JS vars are not scoped in a for or if so var inside the for (or if) does little more than a var before it. This is the reason that we have to resort to the confusing looking function(){var x = 1...}();

[jQuery] fadeIn/fadeOut in Firefox?

2006-10-04 Thread XriS
Hello everybody, I have a problem with fadeIn/fadeOut in Firefox 1.5/2.0. I tried to program a simple drop-down menu with jQuery und use the fadeIn animation to show the sub-menu. The sub-menu is not completely faded in, though. A small part is faded and the rest unfolds as in the Interface

Re: [jQuery] New JTicker version - multiple tickers on a single page

2006-10-04 Thread Klaus Hartl
providing something similiar with the tabs plugin. If you want to use your own custom animation, you can pass in hashes exactly of the form the animate function expects. $(...).tabs({ fxAnimate: [ {height: 'show', opacity: 'show'}, {height: 'hide', opacity: 'hide'}

[jQuery] jQuery stylesheets

2006-10-04 Thread Mark Gibson
Recently I've been playing with loading of HTML into pages dynamically, which lead to my script evaluation plugin, that I posted yesterday. Now I've hit another problem: I'd like to apply a common set of operations (ie. applying plugins) to all elements on a page, whether they were there from

Re: [jQuery] extending functions?

2006-10-04 Thread Franck Marcia
2006/10/4, Rey Bango [EMAIL PROTECTED]: In FF, it looks very nice. In IE 7, on the accordian with options, there's a very noticeable color change in the text from dark to light which doesn't happen in FF. Also, the accordian w/ options also has a very distracting flicker to it when you

Re: [jQuery] Full featured form validation library in jQuery?

2006-10-04 Thread Andy Matthews
Brian... Good points. I hesitated before sending my request because I don't want to be one of those people that just asks for things without giving back. Unfortunately I'm just not all that good at Javascript so any contribution I make in that arena will be nearly worthless. What I can offer

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

2006-10-04 Thread Sam Collett
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 CSS manually with jQuery, plus the text content is shifted instead. Anyone know of a proper solution? On 04/10/06, Sam Collett [EMAIL PROTECTED]

Re: [jQuery] Single Value Attributes

2006-10-04 Thread Brandon Aaron
I think it has already been brought up that this will not work as expected but ... here it goes again ... These attributes are used to set the 'default' value and are thereafter ignored in favor of the JS object's properties. At least that is how I understand it. -- Brandon Aaron On 10/2/06,

Re: [jQuery] extending functions?

2006-10-04 Thread Rey Bango
Much smoother Franck. It works great in IE7 as well. Great work! Rey,.. Franck Marcia wrote: 2006/10/4, Rey Bango [EMAIL PROTECTED]: In FF, it looks very nice. In IE 7, on the accordian with options, there's a very noticeable color change in the text from dark to light which doesn't happen

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

2006-10-04 Thread Brandon Aaron
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 one has any objections or feature requests. :) -- Brandon Aaron

Re: [jQuery] New tableSorter demo, custom text extraction and more.

2006-10-04 Thread Jörn Zaefferer
Olivier Percebois-Garve schrieb: Its a detail feedback, but you should put your links on the whole upper cell rather than just the columns title. I was clicking the icon and was wondering why it was sometimes working, sometimes not. I must second that! Its very irritating behaviour.

Re: [jQuery] jQuery Plugin question

2006-10-04 Thread Brandon Aaron
Also most JavaScript compressors depend on the var being their or you could get undesired results. -- Brandon Aaron On 10/4/06, Jörn Zaefferer [EMAIL PROTECTED] wrote: Ⓙⓐⓚⓔ schrieb: Javascript doesn't have block scoping, providing only global and function scopes! That may be right, but

[jQuery] Small jQuery demo

2006-10-04 Thread Jörn Zaefferer
Hi folks, while I hardly get the chance to use jQuery at work (or even update my blog to use jQuery), I implemented a small script for a page of a friend. I implemented it to work with only one picture, but in FF it already works with two of em. You can see it here:

Re: [jQuery] NEWS: JQuery being used for Bookmarklets

2006-10-04 Thread dizzledorf
Patrick, I haven's used JS Shell, but digging around that site led me to their Bookmarklets page: http://www.squarefree.com/bookmarklets/ This is a godsend for development and testing! Many features are already present in the Web Dev toolbar, other bookmarklets, etc. But there's still a few

Re: [jQuery] New JTicker version - multiple tickers on a single page

2006-10-04 Thread Jörn Zaefferer
Klaus Hartl schrieb: I'm going to change that. The tabs plugin will be found in the repository soon by the way... Cool. This would enable plugin writes to simply point to the docs for animate, instead of documenting their custom animation parser over and over again. That was

Re: [jQuery] New JTicker version - multiple tickers on a single page

2006-10-04 Thread Andy Matthews
Works great for me in IE6/PC. This is an excellent plugin Jason. Great job. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: [EMAIL

Re: [jQuery] New tableSorter demo, custom text extraction and more.

2006-10-04 Thread Karl Swedberg
On Oct 4, 2006, at 4:56 PM, Jörn Zaefferer wrote: Olivier Percebois-Garve schrieb: Its a detail feedback, but you should put your links on the whole upper cell rather than just the columns title. I was clicking the icon and was wondering why it was sometimes working, sometimes not.

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

2006-10-04 Thread Brandon Aaron
I did some basic benchmarks and even the deeply nested ones was still pretty fast. I'm going to look into possibly adding these checks though. distance(firstElement, secondElement) doesn't really seem to fit with typical jQuery methods. Essentially distance would be doing the exact same thing and

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

2006-10-04 Thread Jörn Zaefferer
[EMAIL PROTECTED] schrieb: As an aside, or perhaps a branch, to this conversation... I'm a jQuery newbie, and have found it interesting that callbacks in the system do not seem to get parameters. In systems that I've used before that provided callbacks, those callbacks typically got a

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

2006-10-04 Thread Rey Bango
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

[jQuery] New tableSorter demo, custom text extraction and more.

2006-10-04 Thread Christian Bach
Hi, I put together a small demo of some new improved features in the upcoming 1.1 release. More info and live demo: http://motherrussia.polyester.se/pub/jquery/demos/extraction/ Best regards christian ___ jQuery mailing list discuss@jquery.com

Re: [jQuery] Bug?

2006-10-04 Thread Jason Huck
Also of note: using $.get() in combination with .empty() and .append() instead of .load() has the added benefit of fixing reflow issues I've seen in Opera when replacing table contents. With .load(), the new content flows in inline in a big jumble, but with $.get(), it retains the correct visual

Re: [jQuery] Small jQuery demo

2006-10-04 Thread Andy Matthews
How would we know you if we saw you? !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of

Re: [jQuery] New JTicker version - multiple tickers on a single page

2006-10-04 Thread Klaus Hartl
I'm going to change that. The tabs plugin will be found in the repository soon by the way... Cool. It's in there now. I have made the changes we talked about. You can now pass in options for show/hide animations independently: $('#container-8').tabs({ fxShow: {height: 'show',

[jQuery] Third stab

2006-10-04 Thread Yehuda Katz
It seems I might be able to get this to work if I can get access to the element being slid inside the onSlide function of Interface's slider. It doesn't seem trivial. Any ideas?-- Yehuda KatzWeb Developer | Wycats Designs (ph)718.877.1325 ___ jQuery

Re: [jQuery] New tableSorter demo, custom text extraction and more.

2006-10-04 Thread Christian Bach
Thanks, I agree thats it is annoying, i think the css is involved a bit to. In the demo i have cursor: pointer; on the whole td cell... /christian Olivier Percebois-Garve wrote: Its a detail feedback, but you should put your links on the whole upper cell rather than just the columns title.

Re: [jQuery] New tableSorter demo, custom text extraction and more.

2006-10-04 Thread Christian Bach
Jörn Zaefferer wrote: I must second that! Its very irritating behaviour. Apart from that: Groovy! -- Jörn Jörn, While i have it in my head, would you like to help with the new manual for the 1.1 release? If you have the time, and would perhaps would think it was fun? Or perhaps someone

Re: [jQuery] New tableSorter demo, custom text extraction and more.

2006-10-04 Thread Christian Bach
I must second that! Its very irritating behaviour. Apart from that: Groovy! I agree, both on the links part and the groovy part. :) Also, the input column didn't sort as I expected. Looked like maybe it treated the numbers as string? Anyway, when I changed the 7.00 cell to 10.00,

Re: [jQuery] Serializing XML

2006-10-04 Thread John Resig
There is Object.toXML(), can be found here: http://jquery.com/dev/svn/jquery/build/js/xml.js Not really something special by jQuery, but should do the job. Well, it is sort of specific to jQuery, because I wrote it ;-) With that being said, I wouldn't trust that code any more than I could

Re: [jQuery] JCarousel + ajax + Safari = trouble!

2006-10-04 Thread Karl Swedberg
On Oct 3, 2006, at 11:24 PM, Ⓙⓐⓚⓔ wrote: no comments? did you even like my puppy? did any versions work in IE? No safari gurus out there? does Jan Sorgalla have any idea? Hi Jake, I like your puppy. :) Testing in IE 6: http://cigar.dynalias.org/junior/ On page load, I get two alerts

Re: [jQuery] Remove elements with a particular first-child from matches?

2006-10-04 Thread John Resig
Hi Luke - I was able to get what you wanted, working using: $(span:first-child).parent(div) Right now, in jQuery, doing the XPath /../ is broken (since it's just a cheap XPath - CSS conversion). However, it's recommended that you use methods like .parent() instead. All that being said,

[jQuery] Grazr effect

2006-10-04 Thread Leandro Ardissone
Hi, Anyone knows how to do the effect in the Grazr app ? IE: http://grazr.com/gzpanel?font=Tahoma,sans-seriffontsize=8ptfile=http://tagjag.com/all/javascript/opml The effect that on click loads content that comes from the right and looks like infinite. Anyone ? Thanks

[jQuery] jQuery Plugin question

2006-10-04 Thread Yehuda Katz
Is there a way to set a variable in an each that will be stored separately for each instance of the plugin (for example, if I am performing an action on all inputs, is there a way to store the input type and reuse it later?). Maybe I'm not being clear, so here's the example:

Re: [jQuery] JCarousel + ajax + Safari = trouble!

2006-10-04 Thread Ⓙⓐⓚⓔ
Thanks Karl. The music is setup for quicktime, and totally gratuitous! Once quicktime is loaded most activeX BS should go away hmm No picture on -2 or -3, same as Safari I poked into jCarousel a bit... and didn't see what might be causing this... the carousel spins as if there were pictures,

Re: [jQuery] New Plugin: bgiframe

2006-10-04 Thread Brandon Aaron
Cool! It's always great to see how different people come up with different solutions. I'm curious why you need to toggle the iframe's display if you are hiding and showing its parent? Am I missing something? It seems like it is just an extra call in the chain that is unnecessary. I also explained

Re: [jQuery] New tableSorter demo, custom text extraction and more.

2006-10-04 Thread Christian Bach
Karl Swedberg wrote: I agree, both on the links part and the groovy part. :) Also, the input column didn't sort as I expected. Looked like maybe it treated the numbers as string? Anyway, when I changed the 7.00 cell to 10.00, it was sorted between 1.00 and 5.00. I updated the demo and

Re: [jQuery] Bug?

2006-10-04 Thread Jason Huck
Thanks, Rey. Trimming the output allows it to display correctly. Of note: The callback for my new $.get() contains another (different) $.get(). The inner $.get() doesn't use a callback, but when I first switched the outer call over from .load(), IE reported this: Line: 1615 Error:

[jQuery] Interface: Sortables onChange not working?

2006-10-04 Thread bbuchs
Is the onChange callback functional in Interface's Sortables? If so, does anyone have any documentation on it (what parameters it accepts)? I found some older message threads with more or less the same question, and it looks like it may have been resolved at one point - but no longer. -- View

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

2006-10-04 Thread Chris Domigan
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()sChris ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

[jQuery] Capturing modifier key events

2006-10-04 Thread Rich Manalang
What's the best way to capture modifier key events with Jquery (i.e., ctrl1)?Rich ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] New tableSorter demo, custom text extraction and more.

2006-10-04 Thread Karl Swedberg
On Oct 4, 2006, at 6:10 PM, Christian Bach wrote: Karl Swedberg wrote: I agree, both on the links part and the groovy part. :) Also, the input column didn't sort as I expected. Looked like maybe it treated the numbers as string? Anyway, when I changed the 7.00 cell to 10.00, it was sorted

Re: [jQuery] Remove elements with a particular first-child from matches?

2006-10-04 Thread Luke Lutman
Hey John, Thanks for the reply, it's much appreciated. I played around with using $(span:first-child).parent(div), but it selects the opposite of what I need (divs *with* a span:first-child rather than divs *without* a span:first-child). Is there a way to remove the above from a larger set of

Re: [jQuery] unhover and untoggle

2006-10-04 Thread Blair Mitchelmore
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... -blair Brandon Aaron wrote: Nothing? Am I

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

2006-10-04 Thread Dylan Verheul
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