[jQuery] jQuery UI praises and questions
Great work on the jQuery UI, I take my hat off for all who worked on it, keep it up and keep amazing us!! In the docs it isn't mentioned which version of jQuery you have to use and if it's possible to use the compontents separate? ps : other jQuery UI question i will post in the jQuery UI list. -- David Duymelinck [EMAIL PROTECTED]
[jQuery] Re: jQuery UI praises and questions
Good call - I just went back and added dependency information to all the components - yes, it's possible to use them separately. I'll have to flush out the docs on this some more, once I'm awake. --John On 9/17/07, David Duymelinck [EMAIL PROTECTED] wrote: Great work on the jQuery UI, I take my hat off for all who worked on it, keep it up and keep amazing us!! In the docs it isn't mentioned which version of jQuery you have to use and if it's possible to use the compontents separate? ps : other jQuery UI question i will post in the jQuery UI list. -- David Duymelinck [EMAIL PROTECTED]
[jQuery] Announce: jQuery UI 1.0 Released
Hi Everyone - We just pushed the brand-new jQuery UI 1.0 out the door. The full release notes: http://jquery.com/blog/2007/09/17/jquery-ui-interactions-and-widgets/ The jQuery UI site: http://ui.jquery.com/ Enjoy! Reminder: We have a jQuery UI mailing list, if you're interested in discussing this new library: http://groups.google.com/group/jquery-ui As always, feedback is appreciated. --John
[jQuery] Looking for OnMinimize/OnMaximize
I am wondering if there is a better solution than looking for a onMinimize/OnMaximize events. Basically, I have a hidden div container with a applet tag that was injected with a button click. Once injected the applet is auto- activated. If the page is minimized and restored, the applet is reactivated again. I'm trying to avoid this. This is only the behavior under IE, not FF. This is a simple java class. I have code control over the java applet. So it is possible for me to make it send an event to destroy the HTML element, but I want to see if there is a simpler better way maybe with jQuery. In short, 1) when the page is first display, I have a play button to play wav files. 2) The button will call: $(#divAudio).html(sAppletString); to add the applet tag to the container and the wav file is played. 3) Under IE, if the page is minimized and then restored, IE will play the existing applet again. I'm trying to have it avoid this playing again. Ideas? -- HLS
[jQuery] Thanks for bringing back eq() in 1.2.1
It really makes things easier when selecting elements with variables. Bernd
[jQuery] Re: Disable the Firefox Error Console
Hi, As Erik explained jQuery doesn't do anything special to interact with the error console. I found the my issue was being caused by the way I was interacting javascript with a tag elements. Hope that helps you. Cheers Keith 胡争辉 wrote: What is the code ? 2007/9/15, quayfee [EMAIL PROTECTED]: Hi All, I'm finding that the error console pops up on every .load() call, even if there are no errors. While it's fine and very helpful for development, I would like to be able to turn it off as the last stage before putting the app into a production environment. Can anyone tell me how i can do this? Cheers Keith -- View this message in context: http://www.nabble.com/Disable-the-Firefox-Error-Console-tf4447691s15494.html#a12690141 Sent from the JQuery mailing list archive at Nabble.com. -- http://www.goumin.com/ QQ: 443089607 QQ mail: [EMAIL PROTECTED] Skype: huzhenghui Gtalk: huzhengh -- View this message in context: http://www.nabble.com/Disable-the-Firefox-Error-Console-tf4447691s15494.html#a12730881 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: jQuery UI already released?
Moo who? I'm glad I made the switch. jQ UI rocks. Duncan - - - - - - - - - - - - - - - - - Sprocket Web Design www.sprocket.co.nz - - - - - - - - - - - - - - - - - On 17/09/2007, at 3:01 PM, Kyle wrote: I am very excited about this. I hope to start on a small project for a class tonight as soon as this is released.
[jQuery] Re: Announce: jQuery UI 1.0 Released
John Resig ha scritto: We just pushed the brand-new jQuery UI 1.0 out the door. Very, very, very cool! I love you all :-)
[jQuery] Re: Thanks for bringing back eq() in 1.2.1
On Sep 17, 9:36 am, Bernd Matzner [EMAIL PROTECTED] wrote: It really makes things easier when selecting elements with variables. Amen! Is there any chance of getting gt/lt() back in? My main arguments are: a) the same as above: working with variables is easier than when using selectors. b) having to use slice() removed the symmetry which gt/lt() had with their selector counterparts. e.g. $(...:lt(3)) == $ (...).slice(0,3). Whereas $(...:gt(3)) == slice(4) == the off-by- one there is particular inelegant, IMO.
[jQuery] Re: Thanks for bringing back eq() in 1.2.1
I have to agree with Stephan about the slice method, it's not intuitive. But why do you want to use eq/lt/gt as methods if you have them as selectors? Can you give an example where a method can do more than a selector? -- David Stephan Beal schreef: On Sep 17, 9:36 am, Bernd Matzner [EMAIL PROTECTED] wrote: It really makes things easier when selecting elements with variables. Amen! Is there any chance of getting gt/lt() back in? My main arguments are: a) the same as above: working with variables is easier than when using selectors. b) having to use slice() removed the symmetry which gt/lt() had with their selector counterparts. e.g. $(...:lt(3)) == $ (...).slice(0,3). Whereas $(...:gt(3)) == slice(4) == the off-by- one there is particular inelegant, IMO.
[jQuery] idea to track plugin updates: myJquery.com
hi all, This email presents a suggestion for a community tool, maybe it's already under preparation, AFAIK, it is not. (but myjquery.com is already taken so maybe...) Discovering with lust and pleasure the update to 1.2.1 this morning i realized the recurring complain about how to keep track of updates of jquery and jquery plugins. I personally use about 30 plugins in all varieties across my projects Yet there is a potential solution that should help and has also a great statistical potential (so marketing return for jquery): solution name: myJquery.com myJquery.com is a splashpage for developers, allowing them to specify which plugins they use (and maybe even allowing them to create groups of plugins, one group per project they work on). It would be interfaced to the plugin repository. this would mean developers would login to their area and : - create a new project - associate the plugins he uses in this project. Now, plugin authors can update their plugins in the repository. Therefore, it is possible to have a warning: update is available for plugin pluginname displayed on the developer area page. He can then see in which of his projects he used it, and know where updates need to be done. This interface does not need to be clogged of everything jquery, but only for tracking updates and personal projects. Am i making myself understandable? thank you for your attention, Alexandre Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.485 / Base de données virus: 269.13.21/1012 - Date: 16/09/2007 18:32
[jQuery] parents() clears vars
I have the following funtion: function foo() { console.log( arguments ); // -- OK var e = arguments[0]; console.log( e );// -- OK var p = arguments[0].parents( 'li' ); // -- problem occurs ONLY if this selection is empty // and empty selection is legit in my case // same behavior also when var p = e.parents( 'li' ) ; console.log( arguments ); // -- if p.empty -- [ ], else OK console.log( e );// -- if p.empty -- [ ], else OK console.log( p );// -- OK } What am I missing? Thank you.
[jQuery] parents() clears vars
I have the following funtion: function foo() { console.log( arguments ); // -- OK var e = arguments[0]; console.log( e );// -- OK var p = arguments[0].parents( 'li' ); // -- problem occurs ONLY if this selection is empty // and empty selection is legit in my case // same behavior also when var p = e.parents( 'li' ) ; console.log( arguments ); // -- if p.empty -- [ ], else OK console.log( e );// -- if p.empty -- [ ], else OK console.log( p );// -- OK } What am I missing? Thank you.
[jQuery] Re: parents() clears vars
What does OK mean? What's the problem? How are you trying to use this function? --Erik On 9/17/07, Nikola Ivanov [EMAIL PROTECTED] wrote: I have the following funtion: function foo() { console.log( arguments ); // -- OK var e = arguments[0]; console.log( e );// -- OK var p = arguments[0].parents( 'li' ); // -- problem occurs ONLY if this selection is empty // and empty selection is legit in my case // same behavior also when var p = e.parents( 'li' ) ; console.log( arguments ); // -- if p.empty -- [ ], else OK console.log( e );// -- if p.empty -- [ ], else OK console.log( p );// -- OK } What am I missing? Thank you.
[jQuery] pngFix - not working
Hello, On my example, i have a list of link to load some png in a div. For the first click, the fix work but on the next click the pngfix don't work anymore. Anyone can tell me what's wrong with this example ? example : http://www.hybridbears.com/pngFix/index.htm (Of course, IE only) -- View this message in context: http://www.nabble.com/pngFix---not-working-tf4465385s15494.html#a12732057 Sent from the jQuery Plugins mailing list archive at Nabble.com.
[jQuery] Re: idea to track plugin updates: myJquery.com
Well I own the URL, getjQuery.org - it's due for renewal in December and I wasn't going to re-new it, but if you want to go ahead with this, i'd be happy to donate it. On 9/17/07, Alexandre Plennevaux [EMAIL PROTECTED] wrote: hi all, This email presents a suggestion for a community tool, maybe it's already under preparation, AFAIK, it is not. (but myjquery.com is already taken so maybe...) Discovering with lust and pleasure the update to 1.2.1 this morning i realized the recurring complain about how to keep track of updates of jquery and jquery plugins. I personally use about 30 plugins in all varieties across my projects Yet there is a potential solution that should help and has also a great statistical potential (so marketing return for jquery): solution name: myJquery.com myJquery.com is a splashpage for developers, allowing them to specify which plugins they use (and maybe even allowing them to create groups of plugins, one group per project they work on). It would be interfaced to the plugin repository. this would mean developers would login to their area and : - create a new project - associate the plugins he uses in this project. Now, plugin authors can update their plugins in the repository. Therefore, it is possible to have a warning: update is available for plugin pluginname displayed on the developer area page. He can then see in which of his projects he used it, and know where updates need to be done. This interface does not need to be clogged of everything jquery, but only for tracking updates and personal projects. Am i making myself understandable? thank you for your attention, Alexandre Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.485 / Base de données virus: 269.13.21/1012 - Date: 16/09/2007 18:32 -- Tane Piper http://digitalspaghetti.me.uk This email is: [ ] blogable [ x ] ask first [ ] private
[jQuery] Re: Announce: jQuery UI 1.0 Released
the slider demo does not work in opera 9.23 On 9/17/07, John Resig [EMAIL PROTECTED] wrote: Hi Everyone - We just pushed the brand-new jQuery UI 1.0 out the door. The full release notes: http://jquery.com/blog/2007/09/17/jquery-ui-interactions-and-widgets/ The jQuery UI site: http://ui.jquery.com/ Enjoy! Reminder: We have a jQuery UI mailing list, if you're interested in discussing this new library: http://groups.google.com/group/jquery-ui As always, feedback is appreciated. --John
[jQuery] Re: parents() clears vars
What does OK mean? It means, that I'm getting the expected output. What's the problem? The problem is that after calling e.parents(), arguments gets cleared out and is afterwards empty, but only when parents( 'li' ) is empty. How are you trying to use this function? I have a recursive tree with an unknown depth. When a leaf is clicked I want to navigate to the top of the tree. I know this may not be the best approach, but I'm having a deadline and right now best performance is not top issue. However it will be in the future, but then I will have enough time to investigate all possible ways of doing this. So, when a leaf (leafs are wrapped in span) is clicked, I select all parents that are li and check each one li to see if its direct parent is( 'ul.treeview' ). There is one situation (see P.S.): 1) a leaf with depth = 0 is clicked == parents( 'li' ) is not empty, but after calling it arguments points to the same object as parents( 'li' ) P.S. I had an incorrect wrapping of span and a and that was the reason for parents( 'li' ) to return an empty object. Now it always return the correct li parents of the curent element. But the problem remains - other variables inside the same function are changed and all the same: parents( 'li' ) Thank you. Nikola
[jQuery] Re: idea to track plugin updates: myJquery.com
I understand people want to use the latest version of jQuery and plugins for all of their projects but i don't think it's possible. Projects have deadlines so sometimes you have to use the things that are available at the time and i don't see anyone changing a projects code just because a new version of jQuery or a plugin has been released. As far as jQuery is concerned i would rather see a table of methods and selectors that are available for each version so it can be used as a cheatsheet for projects that use another version than the latest. For the plugins i guess most developers already announce which jQuery version they used and which browsers they tested it on. I would suggest to do this for all the versions of their plugin(s). That way you know if a browser isn't mentioned or the jQuery version you use is newer or older you are a tester. I know it's not entirely an aswer on your idea about the community tool but there was another similar thread about plugins and i don't get why people who use plugins are so tough on the developers. All developers doing their best to release the best plugin using their workflow and skills. Back on topic. Not all developers put their plugins in the repository, sometimes they only announce it here. So you won't get all plugin updates. And the site you propose has to be mananged too, i don't know how much time the jQuery team has tracking different sites. I think with the jQuery UI they have put another load on their shoulders and their main concern should be jQuery, the site and now jQuery UI. -- David Alexandre Plennevaux schreef: hi all, This email presents a suggestion for a community tool, maybe it's already under preparation, AFAIK, it is not. (but myjquery.com is already taken so maybe...) Discovering with lust and pleasure the update to 1.2.1 this morning i realized the recurring complain about how to keep track of updates of jquery and jquery plugins. I personally use about 30 plugins in all varieties across my projects Yet there is a potential solution that should help and has also a great statistical potential (so marketing return for jquery): solution name: myJquery.com myJquery.com is a splashpage for developers, allowing them to specify which plugins they use (and maybe even allowing them to create groups of plugins, one group per project they work on). It would be interfaced to the plugin repository. this would mean developers would login to their area and : - create a new project - associate the plugins he uses in this project. Now, plugin authors can update their plugins in the repository. Therefore, it is possible to have a warning: update is available for plugin pluginname displayed on the developer area page. He can then see in which of his projects he used it, and know where updates need to be done. This interface does not need to be clogged of everything jquery, but only for tracking updates and personal projects. Am i making myself understandable? thank you for your attention, Alexandre
[jQuery] Re: Thanks for bringing back eq() in 1.2.1
On Sep 17, 10:23 am, David Duymelinck [EMAIL PROTECTED] wrote: But why do you want to use eq/lt/gt as methods if you have them as selectors? Can you give an example where a method can do more than a selector? You can do more with a selector in SOME contexts, and only after converting your data to a string. For me, this is far more intuitive: $(...).lt(a+b) than: $(...:lt(+(a+b)+)) (For one thing, the extra parens are necessary to avoid a+b concating as a string.) Also, the removal of lt/gt() removes a nice symmetry which previously existed: $(...:lt(3)) === $(...).lt(3) Now that is: $(...:lt(3)) === $(...).slice(0,3) Likewise, we used to have: $(...:gt(3)) === $(...).gt(3) but that's now mutated to: $(...:gt(3)) === $(...).slice(4) There is no symmetry whatsoever in those, especially because of the off-by-one of the gt==slice conversion. Every time i see that, it makes me cringe. As a general rule, i find a mini-language (in this case, stringified selectors) to be more cumbersome to use than the in-language approach provided by function calls (in this case .lt/gt()). Obviously, though, opinions differ on this topic. i'm willing to bet, however, that most long-time programmers will agree with me on this point, and that most of the people who prefer the selector form are either relatively new to programming or have JavaScript as their first (or only) programming language. (That's not meant as an insult, so please don't take it that way!) While i agree that slice is a nice addition to jQuery, i strongly disagree that lt/gt() should be removed in favour of slice. John Resig argued (in a post last week) that slice is a well-known idiom in computer science. He's right - it's available as part of the common Array API in many (but not all) programming languages. The greater/ less-than idiom is a core/built-in part of ALL languages, though, and so i'll argue that they're easier for people to get a grasp on.
[jQuery] Re: Thanks for bringing back eq() in 1.2.1
The reason why i asked has more to do with removing same selector/method functionality out of the jQuery core than advocating for selectors. I see no reason to keep parallel functionality in the core. As for your example couldn't you do something like var c = a+b; $(...:lt(c)); Using a method you would have to do that so you save some bytes. I don't care if i have to use a selector or a method, i agree with you methods come more natural for long time programmers, i'm just trying to understand why some functionalty decisions are made. -- David Stephan Beal schreef: You can do more with a selector in SOME contexts, and only after converting your data to a string. For me, this is far more intuitive: $(...).lt(a+b) than: $(...:lt(+(a+b)+))
[jQuery] Re: Thanks for bringing back eq() in 1.2.1
On Sep 17, 12:46 pm, David Duymelinck [EMAIL PROTECTED] wrote: As for your example couldn't you do something like var c = a+b; $(...:lt(c)); Using a method you would have to do that so you save some bytes. Absolutely, but it's still inelegant, IMO. i find $(...).lt(a+b) to be clearer. Part of my dislike of the stringified selectors, as opposed to functional ones, is based upon lots of experience writing file parsers (primarily in C++, e.g. the file format parsers for http://s11n.net). Outputing data is easy, but parsing data is amazingly problematic and error-prone. So when i see mini-languages encoded in strings, my gut instinctively wrenches (probably more out of sympathy for the parser maintainer than any other reason). I don't care if i have to use a selector or a method, i agree with you methods come more natural for long time programmers, i'm just trying to understand why some functionalty decisions are made. i think the main reason lt/gt were removed was because you can do the same thing with slice(). John Resig said in a post a week or so ago that they were also removed because they did only one thing, and didn't do it terribly well (or something to that effect). Fair enough, but then i would prefer that x.lt(n) be kept and implemented in terms of $( :lt(n),x), or vice versa. :)
[jQuery] Re: idea to track plugin updates: myJquery.com
Why not help to add that to the main jQuery plugin repository? We already have all the plugins and the full application, you could write the tracking feature and get it in. --John On 9/17/07, Alexandre Plennevaux [EMAIL PROTECTED] wrote: hi all, This email presents a suggestion for a community tool, maybe it's already under preparation, AFAIK, it is not. (but myjquery.com is already taken so maybe...) Discovering with lust and pleasure the update to 1.2.1 this morning i realized the recurring complain about how to keep track of updates of jquery and jquery plugins. I personally use about 30 plugins in all varieties across my projects Yet there is a potential solution that should help and has also a great statistical potential (so marketing return for jquery): solution name: myJquery.com myJquery.com is a splashpage for developers, allowing them to specify which plugins they use (and maybe even allowing them to create groups of plugins, one group per project they work on). It would be interfaced to the plugin repository. this would mean developers would login to their area and : - create a new project - associate the plugins he uses in this project. Now, plugin authors can update their plugins in the repository. Therefore, it is possible to have a warning: update is available for plugin pluginname displayed on the developer area page. He can then see in which of his projects he used it, and know where updates need to be done. This interface does not need to be clogged of everything jquery, but only for tracking updates and personal projects. Am i making myself understandable? thank you for your attention, Alexandre Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.485 / Base de données virus: 269.13.21/1012 - Date: 16/09/2007 18:32
[jQuery] jQuery UI demos: minor bug in Tabs demo?
Hiya! http://ui.jquery.com/ i'm looking through the Tabs demo (nice stuff) and i noticed that the Ajax tabs demo appears to have a problem. When i click on any tab, i see a brief loading... text, then no content. Is this as designed? If so, i would recommend putting some dummy content in there to avoid any confusion. (Only tried it in Firefox/Linux 2.0.0.6.) Slightly related: the tabs docs are full of the comment (no zero- based index). What exactly does that mean? e.g.: http://docs.jquery.com/UI/Tabs/tabs#initialoptions My assumption is that it means that indexing starts at 1, but if that is/were the case then 1-based index would be infinitely clearer than no zero-based index. ??? :)
[jQuery] Re: jQuery UI demos: minor bug in Tabs demo?
Please post this to the jQuery UI list, instead of the main list: http://groups.google.com/group/jquery-ui --John On 9/17/07, Stephan Beal [EMAIL PROTECTED] wrote: Hiya! http://ui.jquery.com/ i'm looking through the Tabs demo (nice stuff) and i noticed that the Ajax tabs demo appears to have a problem. When i click on any tab, i see a brief loading... text, then no content. Is this as designed? If so, i would recommend putting some dummy content in there to avoid any confusion. (Only tried it in Firefox/Linux 2.0.0.6.) Slightly related: the tabs docs are full of the comment (no zero- based index). What exactly does that mean? e.g.: http://docs.jquery.com/UI/Tabs/tabs#initialoptions My assumption is that it means that indexing starts at 1, but if that is/were the case then 1-based index would be infinitely clearer than no zero-based index. ??? :)
[jQuery] select items with a class beginning with a given string?
How do I select items with a class beginning with a given string? e.g.: I have ... tr class=hidden row-odd POID49... tr class=hidden row-even POID49... tr class=hidden row-odd POID50... ... and want to hide all the rows with any POID and then show all the rows with POID49. I know there are alternatives, like adding another class, but I'm interested to know if there is a way to do this. -- View this message in context: http://www.nabble.com/select-items-with-a-class-beginning-with-a-given-string--tf4466373s15494.html#a12734884 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: idea to track plugin updates: myJquery.com
On Sep 17, 11:27 am, David Duymelinck [EMAIL PROTECTED] wrote: I understand people want to use the latest version of jQuery and plugins for all of their projects but i don't think it's possible. agreed 100%. As far as jQuery is concerned i would rather see a table of methods and selectors that are available for each version so it can be used as a cheatsheet for projects that use another version than the latest. The main problem with that approach is that with every new release you've got to update the cheat sheet and compare compatibility backwards against an arbitrary (and growing) number of previous releases. e.g. if we start today with a chart for 1.1.4 and 1.2.0, 1.2.1, we could compare 3 versions. Next time it's 4. Then 5... ad nauseum. For the plugins i guess most developers already announce which jQuery version they used and which browsers they tested it on. I would suggest to do this for all the versions of their plugin(s). That way you know if a browser isn't mentioned or the jQuery version you use is newer or older you are a tester. The past week i've had to go through my plugins (7 of them) and try them out with 1.2.0 and then 1.2.1. i can assure you that it gets amazingly dull to have to go through 7 plugin demos on each new jQuery release and check every feature of each of them. That is simply to say that we cannot expect all plugin authors to post up-to-the-minute version compatibility info. My tendency is normally don't post a compatible-with-version-number until someone complains that it doesn't work their version. people who use plugins are so tough on the developers. All developers doing their best to release the best plugin using their workflow and skills. Amen. Along those lines, i agree 100% with John Resig's response to the above post, where he says: Why not help to add that to the main jQuery plugin repository? We already have all the plugins and the full application... i think that most plugin authors are using (or starting to use) the nice plugin repo facility at the jQ site, and adding this as a feature would certainly coerce me to update the version compatibility info as i go through the normal update routine for my plugins. Back on topic. Not all developers put their plugins in the repository, sometimes they only announce it here. The plugin repo is fairly new, though (well, the new one is, of course... i never got around to using the old one). i think there is a movement (if we can call it that) to try to encourage plugin authors to post their plugin(s) there. It's easy to do and provides features like bug tracking, so there's little reason not to use it. (It's probably also good for one's google rankings, with jquery.com pointing back to your home page ;).)
[jQuery] Re: idea to track plugin updates: myJquery.com
Hey sure! Just give me the keys to your kingdom and i'll do it! -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of John Resig Sent: lundi 17 septembre 2007 13:23 To: jquery-en@googlegroups.com Subject: [jQuery] Re: idea to track plugin updates: myJquery.com Why not help to add that to the main jQuery plugin repository? We already have all the plugins and the full application, you could write the tracking feature and get it in. --John On 9/17/07, Alexandre Plennevaux [EMAIL PROTECTED] wrote: hi all, This email presents a suggestion for a community tool, maybe it's already under preparation, AFAIK, it is not. (but myjquery.com is already taken so maybe...) Discovering with lust and pleasure the update to 1.2.1 this morning i realized the recurring complain about how to keep track of updates of jquery and jquery plugins. I personally use about 30 plugins in all varieties across my projects Yet there is a potential solution that should help and has also a great statistical potential (so marketing return for jquery): solution name: myJquery.com myJquery.com is a splashpage for developers, allowing them to specify which plugins they use (and maybe even allowing them to create groups of plugins, one group per project they work on). It would be interfaced to the plugin repository. this would mean developers would login to their area and : - create a new project - associate the plugins he uses in this project. Now, plugin authors can update their plugins in the repository. Therefore, it is possible to have a warning: update is available for plugin pluginname displayed on the developer area page. He can then see in which of his projects he used it, and know where updates need to be done. This interface does not need to be clogged of everything jquery, but only for tracking updates and personal projects. Am i making myself understandable? thank you for your attention, Alexandre Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.485 / Base de données virus: 269.13.21/1012 - Date: 16/09/2007 18:32 Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.485 / Base de données virus: 269.13.21/1012 - Date: 16/09/2007 18:32
[jQuery] Re: select items with a class beginning with a given string?
Stephan Beal-3 wrote: http://docs.jquery.com/Selectors/attributeContains#attributevalue ... http://docs.jquery.com/Selectors/attributeStartsWith#attributevalue Thanks, I guess the former is more likely to work, given the spaces, but it didn't appear to when I tried earlier. I have since realised that the alternative I mention at the end of my original post will do the job, and I have already spent too long on this! Regards, Jez -- View this message in context: http://www.nabble.com/select-items-with-a-class-beginning-with-a-given-string--tf4466373s15494.html#a12735191 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: Thanks for bringing back eq() in 1.2.1
On Sep 17, 1:06 pm, Stephan Beal [EMAIL PROTECTED] wrote: i think the main reason lt/gt were removed was because you can do the same thing with slice(). John Resig said in a post a week or so ago that they were also removed because they did only one thing, and didn't do it terribly well (or something to that effect). Fair enough, but then i would prefer that x.lt(n) be kept and implemented in terms of $( :lt(n),x), or vice versa. :) I think it would be better if it worked a bit like how the format plugin does it (http://bassistance.de/jquery-plugins/jquery-plugin- format/) or even better, the .NET way: var x = 2; var y = span; $(:filter({1}):gt({0}), x, y); // filter(span):gt(2)
[jQuery] Re: select items with a class beginning with a given string?
On Sep 17, 2:34 pm, jazzle [EMAIL PROTECTED] wrote: How do I select items with a class beginning with a given string? This might (indirectly) do what you're trying to do: http://docs.jquery.com/Selectors/attributeContains#attributevalue but that searches IN strings (not anchored to the beginning) and its behaviour in the face of attributes with multiple values (e.g. class) is not documented, so you'd need to try it to find out if it's suitable for what you're doing. There is also: http://docs.jquery.com/Selectors/attributeStartsWith#attributevalue but its behaviour regarding space-separated values is also not documented, so you'd need to try it out. If all else fails, you could certainly use the filter() function to implement this. Or maybe even a custom selector?
[jQuery] Each events and safari
Hi ive noticed the each event only gets called once per page load in safari. Is there any way around this. Is it a bug ?
[jQuery] Re: parents() clears vars
Gee, I've just read my last post: I couldn't understand my point :). Sorry about that, I will give it a new shot: Consider the tree: ul class=treeview liaspanel 1/span/a/li liaspanel 2/span/a/li li aspanel 3/span/a ul liaspanel 3.1/span/a/li liaspanel 3.2/span/a/li li aspanel 3.3.1/span/a ul liaspanel 3.3.1/span/a/li /ul /li /ul /li /ul Goal is: when clicked on el 3.3.1 to navigate to el 3, click event is bundled with the span element. This means: I want the span surrounding 'el 3' My idea: despite the depth of the list 'e.parents( 'li', $ ('ul.treeview') );' returns a set ot li elements. one of this li elements is a direct descendant of the top ul list, so selecting the span element inside this li is made by .children().children()[0]. Because of my unadvanced knowledge about the selectors I'm making this by iterating the resultset and checking each one element to see if it fits my criteria. The Problem: let's say 'e' points to a single element, consider this: console.log( e ); // -- [span] var p = e.parents( 'li', $('ul.treeview') ); console.log( e ); // -- [li] console.log( p ); // -- [li] or, which is even more frustrating: foo( 1,2 ) function foo() { var a = arguments; console.log( a ); // -- [1,2] var e = $( $( 'span' )[a[0]] ); console.log( e ); // -- [span] var p = e.parents( 'li', $('ul.treeview') ); console.log( a ); // -- [li] console.log( e ); // -- [li] console.log( p ); // -- [li] } jQuery version is: 1.0.4 and unfortunately I can't change it Now, let's hope I've managed it to be more precise about my thoughts :) Greetings -- Nikola
[jQuery] Re: idea to track plugin updates: myJquery.com
On Sep 17, 4:26 am, Alexandre Plennevaux [EMAIL PROTECTED] wrote: solution name: myJquery.com I own MyJQuery.com, and your description was also part of my intent for the domain. Unfortunately I've not had any free time to develop a site around it, and I'm not sure I ever will. I will give the domain to anyone who builds a working tool similar to what I was thinking of, which it sounds like you are. Matt Kruse
[jQuery] Interacting with the MultiFile Plugin
I have a form that is using both the ajaxFileUpload and the MultiFile plugins. When a user selects a file for upload, the change event uploads the file via ajax for validation. If an error occurs, I need to remove the file from the MultiFile queue. I can (and have) manually removed the elements, but that doesn't decrement the maxfile counter, of course. The easy way to do all of this is to trigger the MultiFile function that is called when the user deletes the file from the UI, but I can't figure out how to do that or, for that matter, if it's even possible. Here is a snippet from within my $.ajaxFileUpload() where I'm manually removing the UI components: success: function ( data, status ) { try { var index = /\d+$/.test ( input.name ) ? input.name.replace ( /^.+ (\d)+$/, '$1' ) : 0; /** * If there's an error in the upload process, remove the relevant * UI elements. */ if ( data['error'].length 0 ) { $('#multi_0_' + index ).remove(); $('a[href^=#multimulti_]:last').parent().remove(); /** TODO: have to decrement the counter within the MultiFile object...how? */ throw ( data['error'] ); } else { // Debug // alert ( data['files'] ); $('form').prepend ( 'input type=hidden ' + 'id=uploaded' + index + ' ' + 'name=uploaded' + index + ' ' + 'value=' + encodeURI ( data['files'] ) + ' ' + '/' ); } } catch ( e ) { alert ( 'Error: ' + e.message ); } }, Any help would be much appreciated. Thanks. Rob Wilkerson
[jQuery] Re: Bug in slide up/down? Contents of target hide as well, but don't show also.
Eh? Not sure what you mean. Would that be a CSS attr? Done with JS, CSS? -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rolfsf Sent: Sunday, September 16, 2007 10:11 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Bug in slide up/down? Contents of target hide as well, but don't show also. just a hunch, but it sounds like IE CSS weirdness try adding zoom:1 to the div Andy Matthews-3 wrote: I'm using slide up/down on a div which contains a table. When I slide the div up it works just fine. When I slide it down it works fine as well, until the animation is complete at which point the table vanishes. Is this a bug or a feature? Do I need to explicitly show the table in my code? Andy Matthews Senior ColdFusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com http://www.dealerskins.com/ -- View this message in context: http://www.nabble.com/Bug-in-slide-up-down--Contents-of-target-hide-as-well% 2C-but-don%27t-show-also.-tf4443932s15494.html#a12703870 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] datepicker and mark a day
hey. i using datepicker and i want somehow to define to this script that he will add diffrent background to some block of a day all the days are RED background 07/07/2007 - GREEN BACKGROUND like to mark a specipic date for hollyday or somthing else... i did $('.date-pick2').dpSetSelected('07/07/2007'); but its marks it and once user click somthing else its unmark it.. i need somthing prem... is anyone knows how? -- View this message in context: http://www.nabble.com/datepicker-and-mark-a-day-tf4466752s15494.html#a12736023 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Job Posting: Javascript/JQuery Developer
Primary responsibility for developing and maintaining a web-based desktop that integrates multiple application services for scientists and researchers. The desktop, which uses a windowing metaphor with direct manipulation and visual alerts, will be extended with a range of new applications essential for scientists. The desktop is available at http://www.wikiprofessional.org. * * Needed qualifications: - Strong PHP/javascript skills - Experience with JQuery - Experience with MySQL - Understanding of MediaWiki * Experience working as part of a distributed team and with agile development processes is a plus * Compensation will be based on the skills and experience of the candidate. This is a telecommuting position and you can be located anywhere. Candidates will be offered a paid trial. Those successful in trial will be offered long-term positions. Visit http://www.assembla.com/spaces/jobs/show/73 for more information and to apply.
[jQuery] Re: Job Posting: Javascript/JQuery Developer
OOPS: http://www.assembla.com/search/show_job/73 On Sep 17, 9:58 am, Assembla [EMAIL PROTECTED] wrote: Primary responsibility for developing and maintaining a web-based desktop that integrates multiple application services for scientists and researchers. The desktop, which uses a windowing metaphor with direct manipulation and visual alerts, will be extended with a range of new applications essential for scientists. The desktop is available athttp://www.wikiprofessional.org. * * Needed qualifications: - Strong PHP/javascript skills - Experience with JQuery - Experience with MySQL - Understanding of MediaWiki * Experience working as part of a distributed team and with agile development processes is a plus * Compensation will be based on the skills and experience of the candidate. This is a telecommuting position and you can be located anywhere. Candidates will be offered a paid trial. Those successful in trial will be offered long-term positions. Visithttp://www.assembla.com/spaces/jobs/show/73for more information and to apply.
[jQuery] Re: Bug in slide up/down? Contents of target hide as well, but don't show also.
try adding it to the css for your container div div.yourDiv { zoom: 1; } Andy Matthews-4 wrote: Eh? Not sure what you mean. Would that be a CSS attr? Done with JS, CSS? -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rolfsf Sent: Sunday, September 16, 2007 10:11 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Bug in slide up/down? Contents of target hide as well, but don't show also. just a hunch, but it sounds like IE CSS weirdness try adding zoom:1 to the div Andy Matthews-3 wrote: I'm using slide up/down on a div which contains a table. When I slide the div up it works just fine. When I slide it down it works fine as well, until the animation is complete at which point the table vanishes. Is this a bug or a feature? Do I need to explicitly show the table in my code? Andy Matthews Senior ColdFusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com http://www.dealerskins.com/ -- View this message in context: http://www.nabble.com/Bug-in-slide-up-down--Contents-of-target-hide-as-well% 2C-but-don%27t-show-also.-tf4443932s15494.html#a12703870 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/Bug-in-slide-up-down--Contents-of-target-hide-as-well%2C-but-don%27t-show-also.-tf4443932s15494.html#a12736615 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: TableSorter properties
Hi Rigent, Try this: Change: table id=#sorttable To: table id=sorttable I will be releasing version 2.0.1 of tablesorter today or tomorrow with support for jQuery 1.2. /christian 2007/9/15, Rigent [EMAIL PROTECTED]: I'm loving the tablesorter plugin, everything works splendidly except I can't get a column to sort dates. Here's the init function I'm using to: - set the two CSS classes for the active TH, - disable sorting on the first column, - sort the 5th column by date, - force the first column sort onload, and - adding the Zebra rows widget. $(#sorttable).tablesorter( {cssAsc:sortasc,cssDesc:sortdesc, headers: {0: {sorter: false}, 4: {sorter: date}}, sortList: [[1,0]], widgets: ['zebra']} ); All of these work except the date sorting. I'm using the same date format used in the example on tablesorter.com and I've tried all the different ways to apply it that I can think of or that I've seen here in discussions. There's a great variety of examples, including putting '{sorter: date}' as a class in the TH! I was using JQuery 1.2 but the Zebra plugin seems to have a problem under 1.2 so I'm using an earlier version. I must be missing something as I'm not normally this clueless but it just won't work for me. Here's an example of the table I'm using: table id=#sorttable thead tr th width=7% class=nosortnbsp;/th th width=20%Initiative/th th width=18%Lead Agency /th th width=40%Description/th th width=15%Last Updated /th /tr /thead tbody tr td valign=top # Edit /td td valign=top view.php?id= A Name of the Initiative /td td valign=topOrganization name/td td valign=topPromoting healthy lifestyles.../td td valign=topApr 24, 2007 /td /tr tr td valign=top # Edit /td td valign=top view.php?id= B Name of the Initiative /td td valign=topOrganization name/td td valign=topA program designed.../td td valign=topJul 21, 2007 /td /tr etc Any advice gratefully received, thanks! -- View this message in context: http://www.nabble.com/TableSorter-properties-tf4445562s15494.html#a12684633 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: Tablesorter 2.0
Hi Guys, I have been stuck on a small island in Greece the last two weeks working on project called vacation. I will be releasing a 2.0.1 version of tablesorter (tonight or tomorrow) that takes care of these issues. /christian 2007/9/16, Rodrigo Moraes [EMAIL PROTECTED]: On 9/14/07, James Dempster wrote: The problem with Zebra Striping widget in tablesorter is because it uses a little bit of xpath, which has been taken out of jQuery 1.2, to fix this replace the format function on line 819 or around there with $( tbody:first tr:visible,table) .filter(':even') .removeClass(table.config.widgetZebra.css[1]).addClass( table.config.widgetZebra.css[0]) .end().filter(':odd') .removeClass(table.config.widgetZebra.css[0]).addClass( table.config.widgetZebra.css[1]) ; Could you describe the problem with zebra stripes? My TableSorter is working with jQuery 1.2, except that when you sort the table the stripes aren't updated. Is this the problem? Anyway, I don't see any functional difference using your code, but probably I'm missing something. Once I get some time, I'll implement two features I need: 1. Allow to define which thead row will be used to trigger sorting. By default, use the first row. This would allow multiple thead rows without breaking TableSorter execution. 2. Implement an Ajax pagination widget, to reload tbody rows with server-side data. Of course, I'll keep an eye on the community hacks to see if something similar appears. Hey, thanks for the plugin. It is super simple but slick. Lovely stuff. :) -- rodrigo moraes
[jQuery] Re: jQuery UI praises and questions
I'd say that now that the UI is released, questions/comments can and should be posted to THIS list. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of John Resig Sent: Monday, September 17, 2007 2:01 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: jQuery UI praises and questions Good call - I just went back and added dependency information to all the components - yes, it's possible to use them separately. I'll have to flush out the docs on this some more, once I'm awake. --John On 9/17/07, David Duymelinck [EMAIL PROTECTED] wrote: Great work on the jQuery UI, I take my hat off for all who worked on it, keep it up and keep amazing us!! In the docs it isn't mentioned which version of jQuery you have to use and if it's possible to use the compontents separate? ps : other jQuery UI question i will post in the jQuery UI list. -- David Duymelinck [EMAIL PROTECTED]
[jQuery] Re: jQuery UI praises and questions
I tend to agree with Andy... Is it *really* necessary to divide the conversations about jQuery and its UI into two separate mailing lists? Will the subject matter for each list have more or less in common with each other? If the subject matter tends to overlap, combine the lists. If the subject matter on jQuery tends to have little or nothing to do with it's UI, then keep the two separate. However, I would believe that the subject matter will overlaps tremendously between the two lists. Rick -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Monday, September 17, 2007 10:22 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: jQuery UI praises and questions I'd say that now that the UI is released, questions/comments can and should be posted to THIS list. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of John Resig Sent: Monday, September 17, 2007 2:01 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: jQuery UI praises and questions Good call - I just went back and added dependency information to all the components - yes, it's possible to use them separately. I'll have to flush out the docs on this some more, once I'm awake. --John On 9/17/07, David Duymelinck [EMAIL PROTECTED] wrote: Great work on the jQuery UI, I take my hat off for all who worked on it, keep it up and keep amazing us!! In the docs it isn't mentioned which version of jQuery you have to use and if it's possible to use the compontents separate? ps : other jQuery UI question i will post in the jQuery UI list. -- David Duymelinck [EMAIL PROTECTED]
[jQuery] Re: jQuery source code readability
Hi John, Thanks for the reply :) I was hesitant posting as I wasn't sure how it would be perceived but I appreciate the response. I'm going to spend some more time going through the source and hopefully between any work done at the developer end and familiarising myself with the style, there might be a tipping point where it clicks. I'd like to be able to understand and contribute back to any framework I adopt, so readability is a priority. I understand though, that there are differences of opinion about what is a preferred style, so that may be the case here. Congrats to the jQuery team on the launch of the UI project. Cheers, Ian On Sep 17, 1:34 am, John Resig [EMAIL PROTECTED] wrote: I've already done some work to improve the readability of variable names, you'll see the results of that in jQuery 1.2.1. But, as far as the second and third points go, we don't plan on making changes in that respect, any time soon. In the future, you should makes posts like this to the jQuery dev list:http://groups.google.com/group/jquery-dev --John On 9/16/07, kuralj [EMAIL PROTECTED] wrote: Hi, I really like jQuery's API but find the libraries source code difficult to read. For example: - Short var names - Ommission of braces and heavy use of shorthand if(), for() blocks - Nested ternary operators, some of which transcend several lines Does anyone know if there are plans to improve the readability of the source code going forward? Am I alone in thinking the source code is difficult to read? (I don't mean it's overall construction, I like the methodology, just the fine grain stuff mentioned above) The main problems I have are that the short var names make it hard to follow the code and the shorthand block statements make it tedious to insert logging / debug statements into the core when deconstructing how something works. With javascript packers, is it really necessary to have uncompressed source code like this? if ( m (m[1] || !c) ) { ... } return ( t.constructor == Array || t.jquery ) ? jQuery.inArray( a, t ) 0 : a != t; Please don't think that I'm having a dig at jQuery here :) I'm just curious what others think as I find this to be the biggest reason why I haven't utilised the library on any large scale work as yet. Essentially, I'm reluctant to rely on a library that I find hard to read and deconstruct. Cheers, Ian
[jQuery] Re: jQuery UI already released?
the ui.jquery.com mentioned that we can download ui 1.0 but i got this xml Error CodeNoSuchKey/Code MessageThe specified key does not exist./Message Keyui-1.0.zip/Key RequestId98B7FD0A90EF331D/RequestId HostId bqlj57YlE9zlvYmyBQKqheLzAHHg1BwSyP0he48+TVt/AN2454MMxonzCnWN2HPG /HostId /Error
[jQuery] Re: Browser compatibility
Would you please show the full code? 2007/9/15, malebrok [EMAIL PROTECTED]: This code works in firefox but not in ie (6.0) : div class=bookDiv div class=theHover onmouseover=$ (this).parent().find('.bookCoverTxt').fadeIn('medium')/div img src=img border=0 class=bookCover / div class=bookCoverTxt strongblabla/strong /div /div the hover div (invisible) set to fill the whole bookDiv... The code should show the bookCoverTxt div on mouseover.. What should i do? -- http://www.goumin.com/ QQ: 443089607 QQ mail: [EMAIL PROTECTED] Skype: huzhenghui Gtalk: huzhengh
[jQuery] How come I cannot register for account in JQuery, email never arrives!
How come I cannot register for account in JQuery, email never arrives! Or have I missed something -K
[jQuery] Re: pngFix - not working
Hi, Plugin you are using, hides your img tags and wraps your img in span. There is another plugin that keeps your img intact: http://khurshid.com/jquery/iepnghack/ Hope it helps -Kush
[jQuery] Bug with $.ajax and IE
Hello , I have made a very simple test with jquery and the funcrion $.ajax. This project is very simple and I works find wint firefox. I have basic html page. I have a javascript page with that code : $(document).ready( function(){ $.ajax({ type: POST, url: BD/donnees.php, success: function(msg){ alert( Recu: +msg ); }, error: function(a,b,c){ alert(Error : + a ++ b + + c + ); } }); }); This function call data from BD/donnees.php , here is this php script : ?php $a = new donnees(); class donnees{ function donnees(){ echo 'send data'; } } ? So it's very simple . but it doesn't work with IE ... if some one could help me thank you Fabrizio
[jQuery] Re: FadeIn
Have you noticed the display: none;? html head script src=jquery-1.2.js/script script $(document).ready(function() { $('#fadein').fadeIn('slow'); }); /script /head body div id=fadein style=display: none;font-size: 100px; fadein /div /body /html 2007/9/16, BooZker [EMAIL PROTECTED]: I want something so simple, but I do not know how to do it. All I want is when the page loads to fade in slowly my logo on the page then the navigation. I just want it to fade in once the page is done loading. How do i do this? -- http://www.goumin.com/ QQ: 443089607 QQ mail: [EMAIL PROTECTED] Skype: huzhenghui Gtalk: huzhengh
[jQuery] Re: how to check hide elements?
You should be able to test if an element is hidden by doing something like $(element).is(:hidden) which should return true or false. On 9/17/07, james_027 [EMAIL PROTECTED] wrote: hi, using the hide() function, how do I know if an element is hidden or not? THanks james -- Ted
[jQuery] Re: John's Pager - best plugin no one uses?
With the new version of jQuery out (1.2), some specific code is no longer working ... The lt and gt method are now deprecated ... Here is the modification to the pageTrim method : function pageTrim(){ if (!spread || spread.constructor != Function ) { spread = spread || 5; } $(li:not(.noTrim),pager).show(); if (curPage - spread - 1 0){ $(li:not(.noTrim),pager).slice(0,curPage-spread-1).hide(); } $(li:not(.noTrim),pager).slice(curPage+spread+1+1).hide(); }
[jQuery] Re: treeview plugin - store option doesn't work to remember which items were clicked
It seems the option was there until the following revision: http://dev.jquery.com/browser/trunk/plugins/treeview/jquery.treeview.js?rev=2973 not sure what happened and where it was moved to... []'s On Sep 14, 11:35 am, Pedro Teixeira [EMAIL PROTECTED] wrote: can't make it work for me either - any hints are welcome. On Sep 12, 8:19 pm, cfdvlpr [EMAIL PROTECTED] wrote: Here's what I've got got in the head section of my HTML: script type=text/javascript $(function(){ $(#pageNav).Treeview({speed: fast, collapsed: true, store: true}); }); /script The store option doesn't appear to work at all for me. I do have the cookie plugin included. I don't get any error messages in firebug. I do notice that no cookies are being stored. Has anyone got this to work? Any ideas?
[jQuery] Re: Announce: jQuery UI 1.0 Released
Congratulations :D I wil try at home tonight :D btw, when I tried on the thumbnail, why it always asking the server for large image ? (we usually use cache instead of asking the server all the times.. ) .. just asking ;) great job guys .
[jQuery] Catching events on page elements inserted into the DOM
Hi guys, this is my first post here so go easy on me :) When uding append() to add new xhtml elements to a page, why cannt javascript recognise event related to the new elements? for example using the JQuery $('a').click(function(){ alert($(this).text()); return false; }); $('#content').empty().append('a href=#123/a'); - successful alert $('#content').empty().load('step1.htm'); - contains the same anchor but does not trigger the alert $('form').submit(function(){ $.post('server file',$ (this).find('input').serialize(),function(newForm) { $('#content').empty().append(newForm); }); return false; }); on this example the old form is replced by a new form after a submit. The new form is pretty much identical to the old one but JQuery doesnt recognise the submit event on the appended new form. Can anyone shed some light on this? thanks slh
[jQuery] Re: pngFix - not working
Problem with plugin you are using is that is wrapped you img within span then hiding your img. Try using this plugin instead: http://khurshid.com/jquery/iepnghack/ It keeps all tags intact.
[jQuery] jQuery 1.2 Release Notes on IE6
Is it just me or is the left hand column of the New Features section invisible on IE6? It doesn't appear to be an instance of the peekaboo bug because mouse activity and/or scrolling does not reveal the missing material. In particular, you can't select it with the mouse. However, the links on the (invisible) subheadings are there and are active. Furthermore, all the text prints OK if you print the page. Good ol' IE6! Dontcha just love it!
[jQuery] Catching events on page elements inserted into the DOM
Hi guys, this is my first post here so go easy on me :) When uding append() to add new xhtml elements to a page, why cannt javascript recognise event related to the new elements? for example using the JQuery $('a').click(function(){ alert($(this).text()); return false; }); $('#content').empty().append('a href=#123/a'); - successful alert $('#content').empty().load('step1.htm'); - contains the same anchor but does not trigger the alert $('form').submit(function(){ $.post('server file',$ (this).find('input').serialize(),function(newForm) { $('#content').empty().append(newForm); }); return false; }); on this example the old form is replced by a new form after a submit. The new form is pretty much identical to the old one but JQuery doesnt recognise the submit event on the appended new form. Can anyone shed some light on this? thanks slh
[jQuery] Events, forms and AJAX
Hi I posted a question earlier, this is the updated version based on further understanding. in order fir Jquery to recognise the events of the second form I had to nest the code this this: $('form').submit(function(event){ //$('#content').empty(); $.post('../../forms.php',$ (this).find('input').serialize(),function(formA) { $('#content').empty().append(formA); $('form').submit(function(){ $.post('../../forms.php',$ (this).find('input').serialize(),function(formB) { $('#content').empty().append(formB); }); return false; }); }); return false; }); There must be a better way. thanks in advance slh
[jQuery] draggable: manually reset position of element by drag callback handler
hi, because this is my first post to this group, thanks for jquery + ui and sorry for the incomprehensible subject. I'll try to explain it a little bit clearer. I'm developing something like a Google Maps clone for large images ( 200 mega pixels). Of course I can't display all generated image tiles and so they are generated dynamically by jQuery [1] while dragging the visible tiles (the map). Hence tiles which are removed from the viewport are deleted dynamically too. My problem: I wrote a javascript function which automatically relocates the dragged map if it was dragged over the source image borders (while dragging). I used the easydrag plugin before and by calling it in the ondrag handler everything worked like a charm. Today I switched to jquery ui's draggable. Now there is a problem: The code (in ui.dragabble.js) to stick the draggable helper to the cursor in the drag function is called after the drag callback function. Therefore my relocation function called in the callback function can do whatever it wants, it won't have any effects on the map. A workaround is to duplicate the call of the callback function behind the css-relocating code in the drag function of ui.dragabble.js. Unfortunately I can't use the containment parameter to prevent dragging over borders so I need my relocating function. But I don't won't to modify jQuery code. Is there another possibility? Thanks in advance Andre [1] Of course the real image tiles are not generated by jQuery but by vips (http://www.vips.ecs.soton.ac.uk/).
[jQuery] Re: help with interface ondrop function
The example can not run any effect. 2007/9/16, Giovanni Battista Lenoci [EMAIL PROTECTED]: Here is my example, then I can better explain the problem: http://www.gianiaz.net/jquery/tree/ -- http://www.goumin.com/ QQ: 443089607 QQ mail: [EMAIL PROTECTED] Skype: huzhenghui Gtalk: huzhengh
[jQuery] Best Practice? Sliding table rows up and down
I've been in this situation before and gone a different route, but this time I'd really like to use a table for my data, but have the ability to show/hide certain rows using slideUp/slideDown. I originally tried sliding the actual TR up/down but it wasn't working correct. I ahve a table with 6 columns, with the hidden TR having a single column with colspan='6' on it. Sliding that down screwed up the table in both IE and FF. So I seemed to recall hearing that some people used colspan on the TD, but put a DIV inside that. That works but the animation is a little choppy AND the table has a miniscule shift left to right when I click the toggle switch. It goes away as soon as the animation is done, but I'd rather not have that chop. So my question is, what is the best, preferred way to show/hide additional information in this sort of situation? Andy Matthews Senior ColdFusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com http://www.dealerskins.com/ inline: dealerskinslogo.bmp
[jQuery] postbacks, $(document).ready(), and asp.net
I'm having an interesting problem that happens in both IE6 and Firefox. My menu script runs fine when the page first loads. It sets the style of certain table elements when the $() ready function fires, all is good. But on postbacks (button clicks), the script runs fine, the style is updated, but the page doesn't show the updated styles. Any ideas on what to track down? I've checked that the style is indeed changed with Firebug on postbacks, so I have no idea why the browser doesn't display the updated styles. Thanks Rob
[jQuery] draggable: manually reset position of element by drag callback handler
hi, because this is my first post to this group, thanks for jquery + ui and sorry for the incomprehensible subject. I'll try to explain it a little bit clearer. I'm developing something like a Google Maps clone for large images ( 200 mega pixels). Of course I can't display all generated image tiles and so they are generated dynamically by jQuery [1] while dragging the visible tiles (the map). Hence tiles which are removed from the viewport are deleted dynamically too. My problem: I wrote a javascript function which automatically relocates the dragged map if it was dragged over the source image borders (while dragging). I used the easydrag plugin before and by calling it in the ondrag handler everything worked like a charm. Today I switched to jquery ui's draggable. Now there is a problem: The code (in ui.dragabble.js) to stick the draggable helper to the cursor in the drag function is called after the drag callback function. Therefore my relocation function called in the callback function can do whatever it wants, it won't have any effects on the map. A workaround is to duplicate the call of the callback function behind the css-relocating code in the drag function of ui.dragabble.js. Unfortunately I can't use the containment parameter to prevent dragging over borders so I need my relocating function. But I don't won't to modify jQuery code. Is there another possibility? Thanks in advance Andre [1] Of course the real image tiles are not generated by jQuery but by vips (http://www.vips.ecs.soton.ac.uk/).
[jQuery] Re: TableSorter properties
Oops, thanks Christian, that error was only in the post though, not in the actual HTML I'm using. If there's nothing fundamentally wrong with my init function I'll wait and see if your updates tomorrow fix it. Thanks again for your work on this plugin. Cheers Christian Bach wrote: Hi Rigent, Try this: Change: table id=#sorttable To: table id=sorttable I will be releasing version 2.0.1 of tablesorter today or tomorrow with support for jQuery 1.2. /christian -- View this message in context: http://www.nabble.com/TableSorter-properties-tf4445562s15494.html#a12737751 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: jQuery 1.2 Release Notes on IE6
We just changed the layout - you'll need to clear your cache to remove the old CSS file. --John On 9/17/07, EdMartin [EMAIL PROTECTED] wrote: Is it just me or is the left hand column of the New Features section invisible on IE6? It doesn't appear to be an instance of the peekaboo bug because mouse activity and/or scrolling does not reveal the missing material. In particular, you can't select it with the mouse. However, the links on the (invisible) subheadings are there and are active. Furthermore, all the text prints OK if you print the page. Good ol' IE6! Dontcha just love it!
[jQuery] Falling at the first hurdle
Having major problems getting anything set up here. http://jquery.com/demo/thickbox/ On the above page it says I should download the files mentioned and put them in my scripts folder which I did. In my page (aspx) I have this script type=text/javascript src=scripts/jquery-1.2.pack.js runat=server/script script type=text/javascript src=scripts/thickbox.js runat=server/script When I browse my page I get the error Compilation Error Compiler Error Message: BC30035: Syntax error. Source Error: Line 1: /* Line 2: * jQuery 1.2 - New Wave Javascript Line 3: * When I view this js file I see it's entire contents (minus the first few lines which are comments) are on a single line so not sure if this is the problem. Any ideas? I saw something about a correct DTD being needed mine (which Visual Studio 2005 auto adds) is: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
[jQuery] Re: Falling at the first hurdle
Jay wrote: Having major problems getting anything set up here. http://jquery.com/demo/thickbox/ On the above page it says I should download the files mentioned and put them in my scripts folder which I did. In my page (aspx) I have this script type=text/javascript src=scripts/jquery-1.2.pack.js runat=server/script script type=text/javascript src=scripts/thickbox.js runat=server/script I can't claim to be a .NET expert (even though I've been trying to learn it for three years!) but should those tags have runat=server in them? They're meant to be run by the client - this might be your problem. Try taking the runat attribute out and see if it helps. Regards, Michael Price
[jQuery] Re: Creating a sliding onload effect
On 9/17/07, Steven Foers [EMAIL PROTECTED] wrote: Hi I have a menu made from an unordered list containing 4 menu items that I'd like to slide down from the top of the page onload. The menu is horizontal and I want it to stop around 20px from the top of the page. Once the menu has slid onto the page I want it to stay there (I don't want to have it slide away again). I've been trying to get this to work by using mootools, but as my site is built with textpattern I'd really like to use JQuery. Can anyone offer some help has to how I can accomplish this? Kind regards CC I may well have misinterpreted what you require, but how about something like: $(document).ready(function(){ $('#nav').css({position:fixed,top:-200px}); }); $(window).load(function(){ $('#nav').animate({top:20px},'slow'); }); Joel Birch
[jQuery] Re: TableSorter properties
Hi, A very good undocumented feature is a option called debug, which will give you all kinds of information about what tablesorter is up to. Try this: $(#sorttable).tablesorter( {cssAsc:sortasc,cssDesc:sortdesc, headers:{0: {sorter: false}, 4: {sorter: date}}, sortList: [[1,0]], widgets:['zebra'], debug: true} ); /christian 2007/9/17, Rigent [EMAIL PROTECTED]: Oops, thanks Christian, that error was only in the post though, not in the actual HTML I'm using. If there's nothing fundamentally wrong with my init function I'll wait and see if your updates tomorrow fix it. Thanks again for your work on this plugin. Cheers Christian Bach wrote: Hi Rigent, Try this: Change: table id=#sorttable To: table id=sorttable I will be releasing version 2.0.1 of tablesorter today or tomorrow with support for jQuery 1.2. /christian -- View this message in context: http://www.nabble.com/TableSorter-properties-tf4445562s15494.html#a12737751 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] How to trigger event when user gets to end of content in a scrollable div
I am new to jQuery and have not a clue how to trigger an event when a user gets to the end of scrollable content in a div. For example many sites have a Terms and Conditions content box that when you get to the end it enables accept yes and no radio buttons and a submit or continue button. I just need to know how get jQuery to broadcast when it reaches the end of the content. Thanks
[jQuery] Re: Best Practice? Sliding table rows up and down
Often padding, borders and margins get in the way of smooth animation. The same goes for UL structures as Tables. This is part of Box Model Hell (my own nightmare). Although I REALLY like clean code with virtually nothing in it, I often have to add divs and layer them so that I don't put padding and width/height on the same element. When slidingDown, you are changing the height and then at the very end, changing the display to none. This will result in the sliding only reaching the point of zero, but leaving the padding intact. Then the display:none kicks in and the padding jumps and disappears. Again, keep this padding issue in mind and rethink the problem. I usually use DIV with no padding to solve it for me. Hmm, I wonder if you could animate the padding down to zero after the table cell animates height to zero, but before the display none kicks in? Glen On 9/17/07, Andy Matthews [EMAIL PROTECTED] wrote: I've been in this situation before and gone a different route, but this time I'd really like to use a table for my data, but have the ability to show/hide certain rows using slideUp/slideDown. I originally tried sliding the actual TR up/down but it wasn't working correct. I ahve a table with 6 columns, with the hidden TR having a single column with colspan='6' on it. Sliding that down screwed up the table in both IE and FF. So I seemed to recall hearing that some people used colspan on the TD, but put a DIV inside that. That works but the animation is a little choppy AND the table has a miniscule shift left to right when I click the toggle switch. It goes away as soon as the animation is done, but I'd rather not have that chop. So my question is, what is the best, preferred way to show/hide additional information in this sort of situation? * Andy Matthews *Senior ColdFusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com inline: dealerskinslogo.bmp
[jQuery] Re: TableSorter properties
You have to love undocumented features :) Using the debugger I noticed that all of my columns were being parsed as 'text' so I downloaded the unpacked JS (I'm not much of a fiddler) and looked for the parser names the script was looking for. I should have done this before I assumed that 'date' worked. The actual name in the script is 'isoDate' (or 'usLongDate', or 'usShortDate' depending on your date format). I used that and it works fine! So 'date' is not a valid parser unless you add it yourself of course. For the record, and anyone else searching, I'm using the following init function and all the features are working perfectly: $(#sorttable).tablesorter( {cssAsc:sortasc,cssDesc:sortdesc, headers: {0: {sorter: false},1: {sorter: false},6: {sorter: false},5: {sorter: isoDate}}, sortList: [[2,0]], widgets: ['zebra']} ); Thanks muchly Miles Christian Bach wrote: Hi, A very good undocumented feature is a option called debug, which will give you all kinds of information about what tablesorter is up to. Try this: $(#sorttable).tablesorter( {cssAsc:sortasc,cssDesc:sortdesc, headers:{0: {sorter: false}, 4: {sorter: date}}, sortList: [[1,0]], widgets:['zebra'], debug: true} ); /christian -- View this message in context: http://www.nabble.com/TableSorter-properties-tf4445562s15494.html#a12738873 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: How to trigger event when user gets to end of content in a scrollable div
Im going to take a guess. Try this plugin. http://brandonaaron.net/docs/dimensions/# Then put a onScroll event on the box its in. $(p).scroll( function() { alert(Hello); } ); Onscroll, report back to a function to check (with dimensions) the scrollTop number. If it's higher than X (which you define as the bottom), then enable the button. I dont know if this is the best way. It should work though. Glen On 9/17/07, spills [EMAIL PROTECTED] wrote: I am new to jQuery and have not a clue how to trigger an event when a user gets to the end of scrollable content in a div. For example many sites have a Terms and Conditions content box that when you get to the end it enables accept yes and no radio buttons and a submit or continue button. I just need to know how get jQuery to broadcast when it reaches the end of the content. Thanks
[jQuery] Re: blockUI IE6 checkbox
I must be hallucinating I swear this was working on friday. I just checked it and the same problem seems to be occuring in IE6/7 http://devweb1.ttisolutions.com/jqueryTests/blockui/ malsup wrote: Thanks for the fix, Ted! Great work! I've made the change and checked it in. http://jqueryjs.googlecode.com/svn/trunk/plugins/blockUI/jquery.blockUI.js Mike On 9/13/07, Theodore Ni [EMAIL PROTECTED] wrote: I took a quick look at the blockUI code, and you can fix the problem by changing the bind function to this: // bind/unbind the handler bind: function(b, el) { var full = el == window; // don't bother unbinding if there is nothing to unbind if (!b (full !this.pageBlock || !full !el.$blocked)) return; if (!full) el.$blocked = b; var $e = $(el).find('a,:input'); $.each(['mousedown','mouseup','keydown','keypress','click'], function(i,o) { $e[b?'bind':'unbind'](o, $.blockUI.impl.handler); }); }, I don't know if this will have any other side effects, so use with care until Mike can let us know for sure. On 9/13/07, seedy [EMAIL PROTECTED] wrote: sorry for the delay, finally got one up http://devweb1.ttisolutions.com/jqueryTests/blockui/ The problem seems to happen in all browsers I test it in, althought the element blocking doesnt seem to have a problem in firefox. malsup wrote: Do you have a sample page that shows the problem? That would be helpful for me. Thanks. Mike On 9/5/07, seedy [EMAIL PROTECTED] wrote: Setting the fade to false does not appear to be solving the issue for me. malsup wrote: seedy, Try adding this to your page: $.blockUI.defaults.fadeOut = false; I think this is an issue with animation. Mike On 9/4/07, seedy [EMAIL PROTECTED] wrote: Has anyone been able to reproduce this or am I just crazy ? seedy wrote: I have a few checkboxes that fire an ajax request, and use blockUI to block an element during this request. Problem is, the checkbox gets 'unchecked' whenever blockUI shows up. Its reproducible with the following code (appears to not just affect element blocking) html body input type=checkboxcheck me /input /body script lang=javascript type=text/javascript src=jquery-1.1.4.pack.js /script script lang=javascript type=text/javascript src=jquery.blockUI.js /script script $(function(){ $('input:checkbox').click(function(){ alert('booga'); $.blockUI(); }); }); /script /html You will see the box get checked, then when the alert goes away, it magically becomes unchecked. Any ideas? -- View this message in context: http://www.nabble.com/blockUI-IE6-checkbox-tf4361472s15494.html#a12478271 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/blockUI-IE6-checkbox-tf4361472s15494.html#a12499248 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/blockUI-IE6-checkbox-tf4361472s15494.html#a12661238 Sent from the JQuery mailing list archive at Nabble.com. -- Ted -- View this message in context: http://www.nabble.com/blockUI-IE6-checkbox-tf4361472s15494.html#a12738901 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: Best Practice? Sliding table rows up and down
Update. I found that one of the reasons the animation was a little choppy was that that I wasn't explicitly defining widths for the TD in my table. Once I defined those, the animation was much smoother. andy _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Glen Lipka Sent: Monday, September 17, 2007 10:54 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Best Practice? Sliding table rows up and down Often padding, borders and margins get in the way of smooth animation. The same goes for UL structures as Tables. This is part of Box Model Hell (my own nightmare). Although I REALLY like clean code with virtually nothing in it, I often have to add divs and layer them so that I don't put padding and width/height on the same element. When slidingDown, you are changing the height and then at the very end, changing the display to none. This will result in the sliding only reaching the point of zero, but leaving the padding intact. Then the display:none kicks in and the padding jumps and disappears. Again, keep this padding issue in mind and rethink the problem. I usually use DIV with no padding to solve it for me. Hmm, I wonder if you could animate the padding down to zero after the table cell animates height to zero, but before the display none kicks in? Glen On 9/17/07, Andy Matthews [EMAIL PROTECTED] wrote: I've been in this situation before and gone a different route, but this time I'd really like to use a table for my data, but have the ability to show/hide certain rows using slideUp/slideDown. I originally tried sliding the actual TR up/down but it wasn't working correct. I ahve a table with 6 columns, with the hidden TR having a single column with colspan='6' on it. Sliding that down screwed up the table in both IE and FF. So I seemed to recall hearing that some people used colspan on the TD, but put a DIV inside that. That works but the animation is a little choppy AND the table has a miniscule shift left to right when I click the toggle switch. It goes away as soon as the animation is done, but I'd rather not have that chop. So my question is, what is the best, preferred way to show/hide additional information in this sort of situation? Andy Matthews Senior ColdFusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com http://www.dealerskins.com/ dealerskinslogo.bmp
[jQuery] Re: jQuery UI praises and questions
Can the jQuery UI group be accessed using nabble? I prefer to use nabble and I didn't see it in the search John Resig wrote: Please PLEASE keep them separate, I don't understand why this is an issue. If you're doing stuff with jQuery UI, please post the issues in the jQuery UI list. If you're only using jQuery + other plugins, post in the main list. Simple. --John On 9/17/07, Rick Faircloth [EMAIL PROTECTED] wrote: I tend to agree with Andy... Is it *really* necessary to divide the conversations about jQuery and its UI into two separate mailing lists? Will the subject matter for each list have more or less in common with each other? If the subject matter tends to overlap, combine the lists. If the subject matter on jQuery tends to have little or nothing to do with it's UI, then keep the two separate. However, I would believe that the subject matter will overlaps tremendously between the two lists. Rick -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Monday, September 17, 2007 10:22 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: jQuery UI praises and questions I'd say that now that the UI is released, questions/comments can and should be posted to THIS list. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of John Resig Sent: Monday, September 17, 2007 2:01 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: jQuery UI praises and questions Good call - I just went back and added dependency information to all the components - yes, it's possible to use them separately. I'll have to flush out the docs on this some more, once I'm awake. --John On 9/17/07, David Duymelinck [EMAIL PROTECTED] wrote: Great work on the jQuery UI, I take my hat off for all who worked on it, keep it up and keep amazing us!! In the docs it isn't mentioned which version of jQuery you have to use and if it's possible to use the compontents separate? ps : other jQuery UI question i will post in the jQuery UI list. -- David Duymelinck [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/jQuery-UI-praises-and-questions-tf4464665s15494.html#a12739012 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: Preloading an image before further handling
It works with Theodore's code... Sweet! Thanks, To On Sep 16, 5:10 pm, Theodore Ni [EMAIL PROTECTED] wrote: Instead of using $(document).ready( ... ), you can try to use $(window).load( ... ): $(window).load(function() { $(#photo).fadeIn(slow); }); I believe that will wait until the image has been loaded. On 9/16/07, To [EMAIL PROTECTED] wrote: Hello all, I'm looking for a while to preload an image before further handling. In example, I want my visitors to enter a HTML-page with a (quiet big) image and give this image a fade in. This fade in is easy to show, but when I test it online, my image is loading to slow what makes that the fade in isn't visible anymore. So what I want is a jQuery-check to see if my image is completely loaded before the fade in is shown. This is the jQuery I'm using to fade in: $(document).ready(function(){ $(#photo).fadeIn(slow); }); Who can help me to a *good* preloader or alternative for this? Tnx a lot! To -- Ted
[jQuery] Sliding Animation Error(s)
Hello people, I'm trying to develop an animation to swap my contents. Former I tried to use Interface pugin ad follows: ...but Firebug said: this.options.curAnim has no properties (no name)()jquery.js (line 11) t()jquery.js (line 11) (no name)()jquery.js (line 11) [Break on this error] eval(function(p,a,c,k,e,r){e=function(c) {return(ca?'':e(parseInt(c/a)))+((c=c%a... So I tried to make a workaround by hand: element.css({ left: content.width()+px, display: block }); var delta = -=+alreadyDisplayed.width()+px; alreadyDisplayed.animate({ left: delta, opacity: hide }, { duration: 700 }); delta = getCorrectContentLeft(); element.animate({ left: delta, opacity: show }); ...but, again, Firebug says NO! too much recursion [Break on this error] eval(function(p,a,c,k,e,r){e=function(c) {return(ca?'':e(parseInt(c/a)))+((c=c%a... Why??? Thank you very much, Marco
[jQuery] Re: jQuery 1.2 Release Notes on IE6
Unfortunately, that makes no difference. Even after intense and radical cache flushing, I still have an invisible left column in the New Features section when using IE6 to view http://docs.jquery.com/Release:jQuery_1.2 and, incidentally, when viewing http://docs.jquery.com/Release:jQuery_1.2.1 on IE6, the Copyright footer overprints the upper part of the Toolbox section of the left navigation panel. Sorry to be such a pain. On Sep 17, 11:00 am, John Resig [EMAIL PROTECTED] wrote: We just changed the layout - you'll need to clear your cache to remove the old CSS file. --John On 9/17/07, EdMartin [EMAIL PROTECTED] wrote: Is it just me or is the left hand column of the New Features section invisible on IE6? It doesn't appear to be an instance of the peekaboo bug because mouse activity and/or scrolling does not reveal the missing material. In particular, you can't select it with the mouse. However, the links on the (invisible) subheadings are there and are active. Furthermore, all the text prints OK if you print the page. Good ol' IE6! Dontcha just love it!
[jQuery] Re: Superfish Question (v1.3.1)
Thanks Jacob. I wondered if you would be interested in checking out my initial attempt at adding the callback function feature. A beta version of the new JS file is here: http://users.tpg.com.au/j_birch/plugins/superfish/superfish-1.3.2b.js That file should work with whatever example you have at hand if any (no pressure to test this). To test the callback function you could use the options object like this for example: $('#myNav').superfish({ onshow: function(){ $(this).css('border','solid 1px red')}; } }); If you use the 'this' keyword in the onshow function you pass in, it will refer to the ul element that was just revealed. Is this the sort of thing you had in mind? Can anyone see a problem with how I have done this? All I did was add o.onshow.call(this) inside the callback of the animation that shows the submenu, so that onshow is called in the scope of the revealed ul. Seems worryingly simple - I was sure there would be more to it than this Joel Birch.
[jQuery] Re: Best Practice? Sliding table rows up and down
The other issue with table rows is the value applied to the display property when they are shown. IIRC, the display property is reset to block, but this messes up the layout in FF, because it requires display: table-row to be shown properly. There was an update to jquery.js back in late winter/early spring that fixed fadeIn and fadeOut with table rows, but the slideUp and slideDown still doesn't work right in FF as far as I know. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Sep 17, 2007, at 11:54 AM, Glen Lipka wrote: Often padding, borders and margins get in the way of smooth animation. The same goes for UL structures as Tables. This is part of Box Model Hell (my own nightmare). Although I REALLY like clean code with virtually nothing in it, I often have to add divs and layer them so that I don't put padding and width/height on the same element. When slidingDown, you are changing the height and then at the very end, changing the display to none. This will result in the sliding only reaching the point of zero, but leaving the padding intact. Then the display:none kicks in and the padding jumps and disappears. Again, keep this padding issue in mind and rethink the problem. I usually use DIV with no padding to solve it for me. Hmm, I wonder if you could animate the padding down to zero after the table cell animates height to zero, but before the display none kicks in? Glen On 9/17/07, Andy Matthews [EMAIL PROTECTED] wrote: I've been in this situation before and gone a different route, but this time I'd really like to use a table for my data, but have the ability to show/hide certain rows using slideUp/slideDown. I originally tried sliding the actual TR up/down but it wasn't working correct. I ahve a table with 6 columns, with the hidden TR having a single column with colspan='6' on it. Sliding that down screwed up the table in both IE and FF. So I seemed to recall hearing that some people used colspan on the TD, but put a DIV inside that. That works but the animation is a little choppy AND the table has a miniscule shift left to right when I click the toggle switch. It goes away as soon as the animation is done, but I'd rather not have that chop. So my question is, what is the best, preferred way to show/hide additional information in this sort of situation? Andy Matthews Senior ColdFusion Developer dealerskinslogo.bmp Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com
[jQuery] Re: Best Practice? Sliding table rows up and down
@Andy. got a URL I can view? I've been trying to get smooth animation with tables for awhile and wonder what your solution is. @Dave. got a URL for your approach? Rick From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Monday, September 17, 2007 12:14 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Best Practice? Sliding table rows up and down Update. I found that one of the reasons the animation was a little choppy was that that I wasn't explicitly defining widths for the TD in my table. Once I defined those, the animation was much smoother. andy _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Glen Lipka Sent: Monday, September 17, 2007 10:54 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Best Practice? Sliding table rows up and down Often padding, borders and margins get in the way of smooth animation. The same goes for UL structures as Tables. This is part of Box Model Hell (my own nightmare). Although I REALLY like clean code with virtually nothing in it, I often have to add divs and layer them so that I don't put padding and width/height on the same element. When slidingDown, you are changing the height and then at the very end, changing the display to none. This will result in the sliding only reaching the point of zero, but leaving the padding intact. Then the display:none kicks in and the padding jumps and disappears. Again, keep this padding issue in mind and rethink the problem. I usually use DIV with no padding to solve it for me. Hmm, I wonder if you could animate the padding down to zero after the table cell animates height to zero, but before the display none kicks in? Glen On 9/17/07, Andy Matthews [EMAIL PROTECTED] wrote: I've been in this situation before and gone a different route, but this time I'd really like to use a table for my data, but have the ability to show/hide certain rows using slideUp/slideDown. I originally tried sliding the actual TR up/down but it wasn't working correct. I ahve a table with 6 columns, with the hidden TR having a single column with colspan='6' on it. Sliding that down screwed up the table in both IE and FF. So I seemed to recall hearing that some people used colspan on the TD, but put a DIV inside that. That works but the animation is a little choppy AND the table has a miniscule shift left to right when I click the toggle switch. It goes away as soon as the animation is done, but I'd rather not have that chop. So my question is, what is the best, preferred way to show/hide additional information in this sort of situation? Andy Matthews Senior ColdFusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com http://www.dealerskins.com/ image001.png
[jQuery] Re: Interacting with the MultiFile Plugin
On Sep 17, 9:17 am, Rob Wilkerson [EMAIL PROTECTED] wrote: I have a form that is using both the ajaxFileUpload and the MultiFile plugins. When a user selects a file for upload, the change event uploads the file via ajax for validation. If an error occurs, I need to remove the file from the MultiFile queue. I can (and have) manually removed the elements, but that doesn't decrement the maxfile counter, of course. The easy way to do all of this is to trigger the MultiFile function that is called when the user deletes the file from the UI, but I can't figure out how to do that or, for that matter, if it's even possible. Here is a snippet from within my $.ajaxFileUpload() where I'm manually removing the UI components: success: function ( data, status ) { try { var index = /\d+$/.test ( input.name ) ? input.name.replace ( /^.+ (\d)+$/, '$1' ) : 0; /** * If there's an error in the upload process, remove the relevant * UI elements. */ if ( data['error'].length 0 ) { $('#multi_0_' + index ).remove(); $('a[href^=#multimulti_]:last').parent().remove(); /** TODO: have to decrement the counter within the MultiFile object...how? */ throw ( data['error'] ); } else { // Debug // alert ( data['files'] ); $('form').prepend ( 'input type=hidden ' + 'id=uploaded' + index + ' ' + 'name=uploaded' + index + ' ' + 'value=' + encodeURI ( data['files'] ) + ' ' + '/' ); } } catch ( e ) { alert ( 'Error: ' + e.message ); } }, Oh, to see the forest through the trees. It seems to work if I manually trigger the click event of the link. sigh $('a[href^=#multimulti_]:last').trigger ( 'click' );
[jQuery] Re: Interacting with the MultiFile Plugin
On Sep 17, 9:17 am, Rob Wilkerson [EMAIL PROTECTED] wrote: I have a form that is using both the ajaxFileUpload and the MultiFile plugins. When a user selects a file for upload, the change event uploads the file via ajax for validation. If an error occurs, I need to remove the file from the MultiFile queue. I can (and have) manually removed the elements, but that doesn't decrement the maxfile counter, of course. The easy way to do all of this is to trigger the MultiFile function that is called when the user deletes the file from the UI, but I can't figure out how to do that or, for that matter, if it's even possible. Here is a snippet from within my $.ajaxFileUpload() where I'm manually removing the UI components: success: function ( data, status ) { try { var index = /\d+$/.test ( input.name ) ? input.name.replace ( /^.+ (\d)+$/, '$1' ) : 0; /** * If there's an error in the upload process, remove the relevant * UI elements. */ if ( data['error'].length 0 ) { $('#multi_0_' + index ).remove(); $('a[href^=#multimulti_]:last').parent().remove(); /** TODO: have to decrement the counter within the MultiFile object...how? */ throw ( data['error'] ); } else { // Debug // alert ( data['files'] ); $('form').prepend ( 'input type=hidden ' + 'id=uploaded' + index + ' ' + 'name=uploaded' + index + ' ' + 'value=' + encodeURI ( data['files'] ) + ' ' + '/' ); } } catch ( e ) { alert ( 'Error: ' + e.message ); } }, Oh, to see the forest through the trees. It seems to work if I manually trigger the click event of the link. sigh $('a[href^=#multimulti_]:last').trigger ( 'click' );
[jQuery] Announce: jQuery Tablesorter 2.0.1 Released
Hi list! Just uploaded the new version of tablesorter that works with the 1.2 release of jQuery. Here are the main changes in version tablesorter 2.0.1 General * Removed the need for Dimensions plugin when using the pagination plugin thanks to offset being included in the jQuery 1.2 core. * Added support for jQuery 1.2 * Added new Minified version of tablesorter * Updated documenation and website with new examples Bug fixes * If row values are identical the original order is kept (Thanks to David hull) * If thead includes a table $('tbody:first', table) breaks (Thanks to David Hull) Speed improvements: * appendToTable, setting innerHTML to before appending new content to table body. * zebra widget. (Thanks to James Dempster) Get it all at http://tablesorter.com Enjoy! /christian
[jQuery] Re: Announce: jQuery UI 1.0 Released
Are all the plugin released under the MIT license or do each plugin have thier own license? John Resig wrote: Hi Everyone - We just pushed the brand-new jQuery UI 1.0 out the door. The full release notes: http://jquery.com/blog/2007/09/17/jquery-ui-interactions-and-widgets/ The jQuery UI site: http://ui.jquery.com/ Enjoy! Reminder: We have a jQuery UI mailing list, if you're interested in discussing this new library: http://groups.google.com/group/jquery-ui As always, feedback is appreciated. --John -- View this message in context: http://www.nabble.com/Announce%3A-jQuery-UI-1.0-Released-tf4464804s15494.html#a12742503 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: Superfish Question (v1.3.1)
Hey Joel, Thanks for the excellent and clear response. I personally really appreciated the detail and thoroughness of it. Good luck on implementing the function call(s) and thanks for continuing to refine your extremely handy plugin. Cheers, Jacob Stuart On Sep 16, 11:25 pm, Joel Birch [EMAIL PROTECTED] wrote: Hi Karl, Thanks for the kind words. I wondered if it was too much info, but if anyone got something out of it then that's great. The starting point you have given me regarding the callbacks is exactly what I was hoping for - I'll be looking into that the first chance I get. I really appreciate your help. Cheers Joel Birch.
[jQuery] Re: Announce: jQuery Tablesorter 2.0.1 Released
Great stuff Christian thanks! -- View this message in context: http://www.nabble.com/Announce%3A-jQuery-Tablesorter-2.0.1-Released-tf4468417s15494.html#a12742917 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] TableSorter demo not sorting under IE7
In the jQuery demo, the TableSorter widget appears with several data rows, and I can toggle sort direction by clicking, but the table rows never actually get sorted. All of the data stays in the order in which it was originally loaded. Is this intended with this demo? (I would expect not, given that the other demos seem to work, but it also seems that people are using the table sorter in applications without problems.)
[jQuery] Re: Announce: jQuery UI 1.0 Released
What's the preferred method for feedback? Via the jQuery UI mailing list. http://groups.google.com/group/jquery-ui --John
[jQuery] jQuery Forms for COLDFUSION
pThe version 1.0 of the Ctag based on the powerfull forms plugin of Jquery has been released./p pSome of the features/p ul liPlace how many forms you need in the same page and set different behaviour for any of them. The tag will load the needed JS and write the jQuery statement for you/li liChoose where to place the error validation message (inline or in a separate box)/li liChoose between the incredible wide validation rules of the validation.js plugin. See the full a href=http:// jquery.bassistance.de/api-browser/plugins.html#validateMap/API/a /li liUse Ajax submit simply adding AJAX=true attributes/li liPlace the target content that will load the ajax response anywhere in the page using the brother cfJq_forms_target Ctag/li liCombine the validation and ajax behaviour without any restricion/ li /ul pSo just have a test and let me know/p h3 class=downa href=www.andreacfm.com/examples/ cfJq_forms/Examples Page/h3 pFull API coming soon/p
[jQuery] Re: Weird bug with firefox on MAC
I also have thisproblem. I am using the Drupal CMS, and the SimpleMenu module uses jquery, as does a slideshow I've implemented. Each of these independently will cause text on the page to flicker or blink during the fadein/out. With the slideshow, if I reduce the fade period to zero, the problem goes away. I have the problem with Mac Firefox and Camino, but not Safari. Mike On Sep 13, 9:22 am, bissonchristian [EMAIL PROTECTED] wrote: Hello, I'm a web developper and use Jquery very often (it's so cool!), and I have come upon a weird bug and wanted to know if there been any previous alert about this and if there is a solution: When I use fadeIn and fadeOut on a div which contains texts, and that div is OVER a flash object, either the div itself or the flash object flickers while the fading occurs. It only happens on Firefox Mac and no other that I have tested (ie6,ie7,firefox pc,safari pc,safari mac,opera) Thank you, Christian
[jQuery] Re: Best Practice? Sliding table rows up and down
One of the issues I ran into with animating tables (specifically, TRs), is that jQuery appears to change the 'display' style from table- row to block while animating, resulting in the row breaking completely while animating, then popping back into place when the animation is complete. I'd love to see a workaround for this which maintains the alignment of headings in the THEAD section.
[jQuery] Re: Superfish Question (v1.3.1)
Joel, Good work, it seems to function as intended. Unfortunately, I can't really use it for my purposes. You implemented it exactly as I had requested, but what that translates into for my code is the shifting of the drop-down's left position occurs after the animation to reveal it is complete. I think you have it where it should be and where it will probably be most useful - it's just not the solution I need (nor do I think I need superfish to handle my problem). With your new functionality my code looks like this: $('.sfMenuDropDown').superfish({ animation : {height: 'show'}, onshow: function() { $(this).css({left: $(this).parent().offset().left}).bgiframe(); } }); (the bgiframe call should probably be moved, but I didn't bother with it for my testing) While the code I had previously (and will continue using) looks like: $('.sfMenuDropDown') .superfish({animation : {height: 'show'}}) .mouseover(function() { $('ul', this).css({left: $(this).offset().left}).bgiframe(); }); So, as you can see, it's not really all that bad, to use what I have. I guess if you wanted to add more functionality to Superfish, you could add other hooks so there would be a hook before the show animation, after it's shown (currently where you have it), before hiding and after it's hidden. However, the complexity and possible bloat probably aren't worth it. I think the one function call after revealing is sufficient. One thing I wasn't able to test was how well the function call works with nested menus (my implementation only has a single level drop down). Thanks again for all your help and work. Jacob Stuart On Sep 17, 11:19 am, Joel Birch [EMAIL PROTECTED] wrote: Thanks Jacob. I wondered if you would be interested in checking out my initial attempt at adding the callback function feature. A beta version of the new JS file is here:http://users.tpg.com.au/j_birch/plugins/superfish/superfish-1.3.2b.js That file should work with whatever example you have at hand if any (no pressure to test this). To test the callback function you could use the options object like this for example: $('#myNav').superfish({ onshow: function(){ $(this).css('border','solid 1px red')}; } }); If you use the 'this' keyword in the onshow function you pass in, it will refer to the ul element that was just revealed. Is this the sort of thing you had in mind? Can anyone see a problem with how I have done this? All I did was add o.onshow.call(this) inside the callback of the animation that shows the submenu, so that onshow is called in the scope of the revealed ul. Seems worryingly simple - I was sure there would be more to it than this Joel Birch.
[jQuery] multiple select box to textarea
Hi all, I am creating a little tool that has two multiple select boxes and then a text area. I need to figure out how to take the selected conets of one box, or the other, or both and pop them to the textarea. If there are no examples can someone tell me what dom or events I need to be looking at?
[jQuery] Re: Announce: jQuery UI 1.0 Released
Are all the plugin released under the MIT license or do each plugin have thier own license? They should all be dual-licensed under the MIT and GPL. --John
[jQuery] Re: jQuery Forms for COLDFUSION
Yes Speialist, this should make things much more complicate loosing the nice of the script that is to make things writing few attributes. Have a try and let me know Thanks Andrea On 17 sep, 15:08, Web Specialist [EMAIL PROTECTED] wrote: Very good. But I choose another Jorn's approach to declare rules and messages: rules: { conta__cia: { required: true }, ... messages: { conta__cia: Please insert the cia, This is a personal choice, of course. But could be very difficult to create a Custom Tag working like this(insert header code for rules and messages and code for form fields). Cheers 2007/9/17, Rick Faircloth [EMAIL PROTECTED]: Well done! Rick -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, September 17, 2007 3:31 PM To: jQuery (English) Subject: [jQuery] jQuery Forms for COLDFUSION pThe version 1.0 of the Ctag based on the powerfull forms plugin of Jquery has been released./p pSome of the features/p ul liPlace how many forms you need in the same page and set different behaviour for any of them. The tag will load the needed JS and write the jQuery statement for you/li liChoose where to place the error validation message (inline or in a separate box)/li liChoose between the incredible wide validation rules of the validation.js plugin. See the full a href=http:// jquery.bassistance.de/api-browser/plugins.html#validateMap/API/a /li liUse Ajax submit simply adding AJAX=true attributes/li liPlace the target content that will load the ajax response anywhere in the page using the brother cfJq_forms_target Ctag/li liCombine the validation and ajax behaviour without any restricion/ li /ul pSo just have a test and let me know/p h3 class=downa href=www.andreacfm.com/examples/ cfJq_forms/Examples Page/h3 pFull API coming soon/p
[jQuery] Re: How do you tie sortables into the back-end with ajax?
Are you talking about jQuery UI? If so, you should bring it up for discussion on the jQuey UI mailing list: http://groups.google.com/group/jquery-ui --John On 9/17/07, cliff [EMAIL PROTECTED] wrote: List sorter functionality is way cool, but isn't very useful unless I can tie it into the back-end. How do I couple it with an ajax call to make sure the change is conveyed to the server? Seems to me you need to detect the drop and have it launch an ajax call with the dropped object id and the id of the object above it. Or the id of the object you are dropping the item on.