Re: [jQuery] Flat Calendar
I don't think it is possible with the dateSelector plugin, go for it!!! And while you're at it, if you could implement a multiple date selector, that 'd be awesome! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Sauyet Sent: jeudi 29 mars 2007 3:32 To: jQuery Discussion Subject: [jQuery] Flat Calendar (I apologize if this is a dup; I sent it first from the wrong account.) I need a calendar widget embedded in a page instead of a popup, something like what JSCalendar calls a flat calendar. Does anyone with knowledge of DateSelector know if this might be in the works, or if it would be a welcome addition if I code it myself? Also, I haven't even looked at the code yet, so should this be relatively easy to do? Thanks, -- Scott Sauyet ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.448 / Base de données virus: 268.18.20/737 - Date: 28/03/2007 16:23 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Problems with script replacement in Safari
Thanks for the link. I don't think I quite understand their workaround though. I've put all the code in one javascript file, so there's no need for me to swap sources onload now. I'm not sure if having a couple of $.browser sniffing functions in one script is the correct way to do things, but it's working for me. Here's my test page if you're interested: http://lazydragon.dreamhosters.com/canvas-fade.html It's supposed to fade text to the background. BTW, if anyone can figure out why the canvas element disappears after hovering over it in Opera, I'd greatly appreciate it. :) Roberto Ortelli wrote: Safari does not let you to inject script files once the page has loaded. A few months ago I found a tricky way to make it possible... not tried... http://lists.apple.com/archives/Webcore-dev/2005/Mar/msg00023.html Good luck and don't forget to tell us the result ; ) -- View this message in context: http://www.nabble.com/Problems-with-script-replacement-in-Safari-tf3481746.html#a9728247 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Known memory leaks?
On 28.03.2007, at 21:01, Brandon Aaron wrote: I think the most likely candidate for the leaks is going to surround the usage of AJAX and Events. Are you attaching events to html pulled in via AJAX? I ask because I believe if you proceed to replace that html without unbinding the events first, that might cause a leak ... but I'm unsure ... just all I can think of for now. Thanks for the tip - we'll be rechecking this. Only the reloading frames are binding events to AJAX-loaded HTML actually, but we'll recheck this. Unfortunately it's not possible to find out which frame is the leaking one - all the tools for leak checks which I've found so far seem to be almost unusable/useless. We've now also patched our copy of jQuery so that the originally IE- only unload handler for unbinding events is executing in all browsers for those parts of our page which reload - just for safety - and now we'll have to wait whether this helps. Astonishingly, we had the least problems with IE though it's not the primary browser for development for us, and this might have something to do with it. -- Markus Peter - [EMAIL PROTECTED] http://www.spin-ag.de/ SPiN AG, Bischof-von-Henle-Str. 2b, 93051 Regensburg, HRB 6295 Regensburg Aufsichtsratsvors.: Dr. Christian Kirnberger Vorstände: Fabian Rott, Paul Schmid ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Close any other row before showing a new one
How about a class 'hideable' to style all of the rows hidden or not, and a class 'hidden' which does the actual hiding? Then, to hide all and show a specific one: $('.hideable').not('.hidden').addClass('hidden'); $('#specials-' + num + '-details').removeClass('hidden'); or something along those lines. On 3/29/07, Klaus Hartl [EMAIL PROTECTED] wrote: Jake McGraw schrieb: Have to tried ':visible' selector? $('.hidden:visible').slideUp(fast); By the way, reading .hidden:visible shows to me that the class name hidden is purely presentational and not very well chosen. How can a hidden thing be visible? Would be less confusing to call it additional for example. -- Klaus ___ jQuery mailing list [EMAIL PROTECTED] http://jquery.com/discuss/103 -- Rob Desbois Eml: [EMAIL PROTECTED] Tel: 01452 760631 Mob: 07946 705987 There's a whale there's a whale there's a whale fish he cried, and the whale was in full view. ...Then ooh welcome. Ahhh. Ooh mug welcome. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Close any other row before showing a new one
Rob Desbois schrieb: How about a class 'hideable' to style all of the rows hidden or not, and a class 'hidden' which does the actual hiding? I think hideable is still a purely presentational class name. Let's imagine this is going to be changed and the hideables are supposed to be shown all time. You would have to change the class name to have that still make sense (think of co-workers and others reading your code), but with a class name of additional, description etc. it doesn't matter if the element gets shown, gets hidden, or it maybe gets only hidden in print and handheld media types... That said, your're better off with a class name that adds a little semantic to the element and describes the purpose of the element in question. -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Close any other row before showing a new one
Klaus, You're absolutely right, that would be far better. Instead of 'hidden' for all items not shown, 'selected' would be a better class for the item currently shown. Rob. On 3/29/07, Klaus Hartl [EMAIL PROTECTED] wrote: Rob Desbois schrieb: How about a class 'hideable' to style all of the rows hidden or not, and a class 'hidden' which does the actual hiding? I think hideable is still a purely presentational class name. Let's imagine this is going to be changed and the hideables are supposed to be shown all time. You would have to change the class name to have that still make sense (think of co-workers and others reading your code), but with a class name of additional, description etc. it doesn't matter if the element gets shown, gets hidden, or it maybe gets only hidden in print and handheld media types... That said, your're better off with a class name that adds a little semantic to the element and describes the purpose of the element in question. -- Klaus ___ jQuery mailing list [EMAIL PROTECTED] http://jquery.com/discuss/56 -- Rob Desbois Eml: [EMAIL PROTECTED] Tel: 01452 760631 Mob: 07946 705987 There's a whale there's a whale there's a whale fish he cried, and the whale was in full view. ...Then ooh welcome. Ahhh. Ooh mug welcome. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Any regular expression gurus here?
Hi, The regular expression below works on just about everything except nested parentheses: Regular Expressions are used to define regular (Type 3 in Chomsky Hirarchy) grammars. You can not express nested parentheses in regular grammar, you need a context free (Type 2) but not regular grammar. You might whant to have a look at the syntax highlighting in vim, since vim uses regular expressions for that as well. Christof ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Masked Input Plugin Beta 1
Hi, thanks for the plugin. How do i handle dynamic input length. In germany there are phone number of different length and formating, like: 030-123 456 78 012345-987 654 32 and what about +49 089 33 44 55 6 would it be possible to have multiple masks or a regexp as a mask or is there any other solution? thanks stefan The feedback from the Alpha release of my plugin was very good, but several of you pushed me a little to make it better. With the help of some paste events from Kristinn Sigmundsson and a lot of scouring the internet for information about cross-platform key handling, I think I have a much improved version. This release includes the following: * Fixed issues with allowing punctuation on number masks. * Added validation cleanup of text. Example: pasting in 123-456-7890´´ into a (999) 999-´´ mask should format correctly. * Added validation on paste events for Mozilla and IE. Please head on over to http://digitalbush.com/projects/masked-input-plugin http://digitalbush.com/projects/masked-input-plugin and check it out. I have tested this in FF2 and IE7, so I would appreciate some feedback from those of you with other browsers. Thank You Josh -- View this message in context: http://www.nabble.com/Masked-Input-Plugin-Beta-1-tf3484477.html#a9727222 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Stefan Kilp SK-Software, Entwicklung Beratung email: [EMAIL PROTECTED] fon : +49 6151 93344-0 fax : +49 6151 93344-20 Herta-Mansbacher-Str. 98 64289 Darmstadt, Germany. - ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] click(function) 'not working' for elements (not a) with tabindex and using keyboard
That's a nice hack Karl, and after reading the W3C spec, I'm inclined to agree that browser interpretation of what a click is, is its own thing. I've found that IE and firefox assign click only to focused anchors when return is hit. I've got round it in a slightly different way by finding all the elements I'd like to act as event handlers and wrapping an empty a href=#/a around the text. Frankly, I think yours is less of a problem (what with my method meaning that inherited styles), unless there's varying interpretation of what keyCode 13 is (I'm thinking of character sets, specifically). Thanks for your input, though, and I'm likely to look into this in the future, as I'm more than likely to need click events on things that aren't links, and they'll have to be keyboard driven, too. On 3/22/07, Karl Rudd [EMAIL PROTECTED] wrote: I think you'll find that the click event being fired on enter is actually more of a standard hack from browser makers. I'm guessing this was done mainly because keyboard events are so undersupported by website developers. Thus for some standard elements that get keyboard focus the support was added for firing click on enter. You'll just have to add in the hack yourself, like this: $(p).keyup( function(e) { if ( e.keyCode == 13 ) { alert(Hello); return false; } return true; }); Karl Rudd On 3/22/07, Dan Eastwell [EMAIL PROTECTED] wrote: Using the file below, I'm trying to work out why elements on my page that are acting as event 'handles', do not fire the click event (i.e. alert(Hello); ) when tabbed into and the return/enter button pressed. The first paragraph can have focus and be 'clicked' with the keyboard, but no alert fires. The second paragraph's a element gets focus next when tabbed into and will cause the alert when return is pressed. The third tab element, a in blockquote, doesn't cause the alert to popup, as is expected. Can anyone explain to me why the first paragraph won't work as an event 'handle' when using the keyboard and click(function)? Is there another way of assigning an event to an element that's not an a when using the keyboard (not keyup, etc, because it should be the return key that fires the event, not 'any' key). Many thanks for your help, Dan. !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; lang=en head titleClick test/title meta http-equiv=content-type content=text/html;charset=utf-8 / meta http-equiv=content-language content=en-gb / script type=text/javascript src=../../_functions/js/libraries/jquery.js/script script type=text/javascript $(document).ready(function() { $(p).click( function() { alert(Hello); } ); }); /script /head body p tabindex=1Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt./p pNeque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore a href=/magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?/a/p blockquoteNeque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore a href=/magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?/a/blockquote /body /html -- Daniel Eastwell Portfolio and articles: http://www.thoughtballoon.co.uk Blog: http://www.thoughtballoon.co.uk/blog ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Daniel Eastwell Portfolio and articles: http://www.thoughtballoon.co.uk Blog:
Re: [jQuery] event bubbling
Kush Murod wrote: if some of you heard of event bubbling then you'd have also experienced problem with .hover() to be more specific, once your content loads through ajax you won't have .hover anymore. with .click() it was straight forward where you bind event to parent. Difficulty I am facing is that I cannot attach .hover of parent so that children would have hover effect. This is a bit trickier that with binding click, since the parents hover is not triggered even through event bubbling when you hover over the children it contains, since, technically you are still inside the parent. You can go around this by using mouseover and mouseout instead of hover, and it's not even that dirty. Ts usually with event bubbling, this will keep the child elements acting as they should even when you dynamically add or remove them, since the event is still bound to the parent. HTML --- div id=parentelem style=background-color: #CC; padding: 10px div class=childelem style=margin: 10px; padding: 5px;background-color: #BBB;Child element 1/div div class=childelem style=margin: 10px; padding: 5px;background-color: #BBB;Child element 2/div div class=childelem style=margin: 10px; padding: 5px;background-color: #BBB;Child element 3/div div class=childelem style=margin: 10px; padding: 5px;background-color: #BBB;Child element 4/div /div JS: --- $(document).ready( function() { $('#parentelem').bind('mouseover', function(event) { if($(event.target).is('.childelem')) { $(event.target).css('background-color','#FFF'); } } ); $('#parentelem').bind('mouseout', function(event) { if($(event.target).is('.childelem')) { $(event.target).css('background-color','#BBB'); } } ); } ); Hope it helps. -- Suni ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] click(function) 'not working' for elements (not a) with tabindex and using keyboard
In theory if you add a tabindex=0 to the elements you want keyboard focus for you should be able to tab to them and they will get key events. Karl Rudd On 3/23/07, Dan Eastwell [EMAIL PROTECTED] wrote: That's a nice hack Karl, and after reading the W3C spec, I'm inclined to agree that browser interpretation of what a click is, is its own thing. I've found that IE and firefox assign click only to focused anchors when return is hit. I've got round it in a slightly different way by finding all the elements I'd like to act as event handlers and wrapping an empty a href=#/a around the text. Frankly, I think yours is less of a problem (what with my method meaning that inherited styles), unless there's varying interpretation of what keyCode 13 is (I'm thinking of character sets, specifically). Thanks for your input, though, and I'm likely to look into this in the future, as I'm more than likely to need click events on things that aren't links, and they'll have to be keyboard driven, too. On 3/22/07, Karl Rudd [EMAIL PROTECTED] wrote: I think you'll find that the click event being fired on enter is actually more of a standard hack from browser makers. I'm guessing this was done mainly because keyboard events are so undersupported by website developers. Thus for some standard elements that get keyboard focus the support was added for firing click on enter. You'll just have to add in the hack yourself, like this: $(p).keyup( function(e) { if ( e.keyCode == 13 ) { alert(Hello); return false; } return true; }); Karl Rudd On 3/22/07, Dan Eastwell [EMAIL PROTECTED] wrote: Using the file below, I'm trying to work out why elements on my page that are acting as event 'handles', do not fire the click event (i.e. alert(Hello); ) when tabbed into and the return/enter button pressed. The first paragraph can have focus and be 'clicked' with the keyboard, but no alert fires. The second paragraph's a element gets focus next when tabbed into and will cause the alert when return is pressed. The third tab element, a in blockquote, doesn't cause the alert to popup, as is expected. Can anyone explain to me why the first paragraph won't work as an event 'handle' when using the keyboard and click(function)? Is there another way of assigning an event to an element that's not an a when using the keyboard (not keyup, etc, because it should be the return key that fires the event, not 'any' key). Many thanks for your help, Dan. !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; lang=en head titleClick test/title meta http-equiv=content-type content=text/html;charset=utf-8 / meta http-equiv=content-language content=en-gb / script type=text/javascript src=../../_functions/js/libraries/jquery.js/script script type=text/javascript $(document).ready(function() { $(p).click( function() { alert(Hello); } ); }); /script /head body p tabindex=1Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt./p pNeque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore a href=/magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?/a/p blockquoteNeque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore a href=/magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?/a/blockquote /body /html -- Daniel Eastwell Portfolio and articles: http://www.thoughtballoon.co.uk Blog: http://www.thoughtballoon.co.uk/blog
Re: [jQuery] comet
It seems that Opera can't handle a null character. In order to detect if the client has gone away, the server prints a null character to determine whether the connection is aborted: $r-print(\0); last if $r-connection-aborted; This isn't really a jquery problem, just an incompatibility between Opera my method of client detection. If you come up with another way to detect client abandonment, the jquery plugin should work fine. You could also just rely on a timeout if you don't think that many Opera users will be hitting your site/application. -g On Mar 26, 2007, at 1:04 AM, John Beppu wrote: Glen, Does this still work for Opera. It seems to work OK w/ Firefox, but I'm having a hard time getting it to work on Opera 9.10 for OSX. Even http://empireenterprises.com/_comet.html is not working as expected for me in Opera. It never seems to get into xmlhttp.readyState == 3 for some reason. On 1/29/07, Glen [EMAIL PROTECTED] wrote: There is still the issue of using the IE hack that gmail uses, covering the inconsistencies between the browsers, which I consider the hardest part. The server-side component is necessary, yes, but @ the most basic level, all that is needed is a scripted while loop with a sleep(1) in it. As it stands, I've just about got it covered. Still working with Opera IE to make sure I have all the angles covered. -g On Jan 29, 2007, at 3:22 AM, zaadjis wrote: http://chabotc.nl:2001/chat.html (IRC backend) http://lingr.com http://ajaxian.com/index.php?s=comet since comet involves server-side stuff, this really wouldn't be a jQuery plugin, more like a chat app using jetty, php, jQuery, etc. (for example) Glen-13 wrote: I would definitely be willing to provide a plugin, if someone out there has any experience with getting streaming data with IE. According to Alex Russel, IE requires usage of the ActiveXObject (htmlfile) call, which apparently is the IHTMLDocument2 object. With Firefox, streaming data is easy as pie. With IE, however, I can't seem to make it work; if anyone has a working example, please let me know. -g ~ [EMAIL PROTECTED] ie. On Jan 27, 2007, at 10:24 AM, Matt Stith wrote: not as far as I have heard, but i would be interested in anything that has, or maybe a Comet plugin? anyone willing? On 1/27/07, Glen [EMAIL PROTECTED] wrote: all, Are there any projects out there with the intent of providing comet functionality within jquery? -g ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/comet- tf3126886.html#a8685650 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Masked Input Plugin Beta 1
Very nice plugin. A feature i would like to see is an option to not put the mask in onkeypress. I mean, if the mask is 99/99/ and i press 0, the input will looks like 0_/__/ but what i spect is just 0. Then, when the user press 5, what i spect is 05. Now if i press 1, the script will automatically put / and the input will looks like 05/1. Just my 2 cents. Anyway, thanks for this plugin. On 3/29/07, mrcarxpert [EMAIL PROTECTED] wrote: The feedback from the Alpha release of my plugin was very good, but several of you pushed me a little to make it better. With the help of some paste events from Kristinn Sigmundsson and a lot of scouring the internet for information about cross-platform key handling, I think I have a much improved version. This release includes the following: * Fixed issues with allowing punctuation on number masks. * Added validation cleanup of text. Example: pasting in 123-456-7890″ into a (999) 999-″ mask should format correctly. * Added validation on paste events for Mozilla and IE. Please head on over to http://digitalbush.com/projects/masked-input-plugin http://digitalbush.com/projects/masked-input-plugin and check it out. I have tested this in FF2 and IE7, so I would appreciate some feedback from those of you with other browsers. Thank You Josh -- View this message in context: http://www.nabble.com/Masked-Input-Plugin-Beta-1-tf3484477.html#a9727222 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] comet
Matt Stith schreef: not as far as I have heard, but i would be interested in anything that has, or maybe a Comet plugin? anyone willing? There is. Comet Client for jQuery: http://empireenterprises.com/_comet.html Simply found in the jQuery plugin repository. Edwin Martin -- http://www.bitstorm.org/edwin/en/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Any regular expression gurus here?
On Mar 29, 2007, at 4:55 AM, Christof Donat wrote: Regular Expressions are used to define regular (Type 3 in Chomsky Hirarchy) grammars. You can not express nested parentheses in regular grammar, you need a context free (Type 2) but not regular grammar. Christof, that is fascinating! Thanks for that information! This is something I'll have to remember for the next dinner conversation with friends. You never know where Noam Chomsky[1] might pop up in a conversation. :) --Karl [1] http://en.wikipedia.org/wiki/Chomsky _ Karl Swedberg www.englishrules.com www.learningjquery.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] ANNOUNCE: Tabs 2.7
Wow!. awesome... Thanks, Klaus. Widi ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Masked Input Plugin Beta 1
wow wonderfull :) i`m gonna use this plugin in my scripts ^_^ 2007/3/29, Stefan Kilp [sk-software] [EMAIL PROTECTED]: Hi, thanks for the plugin. How do i handle dynamic input length. In germany there are phone number of different length and formating, like: 030-123 456 78 012345-987 654 32 and what about +49 089 33 44 55 6 would it be possible to have multiple masks or a regexp as a mask or is there any other solution? thanks stefan The feedback from the Alpha release of my plugin was very good, but several of you pushed me a little to make it better. With the help of some paste events from Kristinn Sigmundsson and a lot of scouring the internet for information about cross-platform key handling, I think I have a much improved version. This release includes the following: * Fixed issues with allowing punctuation on number masks. * Added validation cleanup of text. Example: pasting in 123-456-7890´´ into a (999) 999-´´ mask should format correctly. * Added validation on paste events for Mozilla and IE. Please head on over to http://digitalbush.com/projects/masked-input-plugin http://digitalbush.com/projects/masked-input-plugin and check it out. I have tested this in FF2 and IE7, so I would appreciate some feedback from those of you with other browsers. Thank You Josh -- View this message in context: http://www.nabble.com/Masked-Input-Plugin-Beta-1-tf3484477.html#a9727222 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Stefan Kilp SK-Software, Entwicklung Beratung email: [EMAIL PROTECTED] fon : +49 6151 93344-0 fax : +49 6151 93344-20 Herta-Mansbacher-Str. 98 64289 Darmstadt, Germany. - ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] comet
I've always wondered: what is comet, a code editor? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Edwin Martin Sent: jeudi 29 mars 2007 12:21 To: jQuery Discussion. Subject: Re: [jQuery] comet Matt Stith schreef: not as far as I have heard, but i would be interested in anything that has, or maybe a Comet plugin? anyone willing? There is. Comet Client for jQuery: http://empireenterprises.com/_comet.html Simply found in the jQuery plugin repository. Edwin Martin -- http://www.bitstorm.org/edwin/en/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.448 / Base de données virus: 268.18.20/737 - Date: 28/03/2007 16:23 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jEditable: how to remove behaviour
i think you have to edit the jEditable source for that... 2007/3/28, Abel Tamayo [EMAIL PROTECTED]: Hi all, I'm using jEditable for a webpage, but I would like to make it so that, once you've edited the text, the behaviour is removed and you can edit it no longer. Does anyone know how to do that? Thanks. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] [Fwd: event bubbling]
can anyone help me on this Original Message Subject:[jQuery] event bubbling Date: Thu, 22 Mar 2007 19:59:46 +1100 From: Kush Murod [EMAIL PROTECTED] Reply-To: jQuery Discussion discuss@jquery.com To: jQuery Discussion. discuss@jquery.com Hi guys, if some of you heard of event bubbling then you'd have also experienced problem with .hover() to be more specific, once your content loads through ajax you won't have .hover anymore. with .click() it was straight forward where you bind event to parent. Difficulty I am facing is that I cannot attach .hover of parent so that children would have hover effect. Hope it isn't too confusing -- Kush Murod, Web applications developer Sensory Networks [E] [EMAIL PROTECTED] [W] www.sensorynetworks.com [T] +61 2 8302 2745 [F] +61 2 9475 0316 [A] Level 6, 140 William Street East Sydney 2011 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jEditable: how to remove behaviour
On 28/03/07, Abel Tamayo [EMAIL PROTECTED] wrote: Hi all, I'm using jEditable for a webpage, but I would like to make it so that, once you've edited the text, the behaviour is removed and you can edit it no longer. Does anyone know how to do that? Thanks. You could try $(#myjeditable).unbind(click) Although perhaps it would be better if the plugin could do that (I don't know if there are any memory leaks that may be caused by doing it this way). ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Correct way to setup a callback function
D'oh! No actually it was a mind-reading test. :oP Here's what I'm running: $.post(Calc_Test_Process_Field_chris.cfm, Params, toggleButton); Rick From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Heimlich Sent: Wednesday, March 28, 2007 11:36 PM To: jQuery Discussion Subject: Re: [jQuery] Correct way to setup a callback function u, you forgot the code. On 3/28/07, Rick Faircloth [EMAIL PROTECTED] wrote: Hi, all... Is this the correct way to setup a callback function? i.e... after posting Params to Calc_Test_Process_Field_chris.cfm, I would like for the function toggleButton to run... Is this the correct syntax? Thanks, Rick ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ http://jquery.com/discuss/ -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com http://aheimlich.freepgs.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] comet
No, server push style AJAX. See here: http://en.wikipedia.org/wiki/Comet_%28programming%29 --Erik On 3/29/07, Alexandre Plennevaux [EMAIL PROTECTED] wrote: I've always wondered: what is comet, a code editor? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Edwin Martin Sent: jeudi 29 mars 2007 12:21 To: jQuery Discussion. Subject: Re: [jQuery] comet Matt Stith schreef: not as far as I have heard, but i would be interested in anything that has, or maybe a Comet plugin? anyone willing? There is. Comet Client for jQuery: http://empireenterprises.com/_comet.html Simply found in the jQuery plugin repository. Edwin Martin -- http://www.bitstorm.org/edwin/en/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.448 / Base de données virus: 268.18.20/737 - Date: 28/03/2007 16:23 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] addons.mozilla.org uses jQuery!
Hi there, I hope this is not old news: http://addons.mozilla.org uses jQuery! -- cu Sebastian ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] ANNOUNCE: Tabs 2.7
+1 ... this is slick. Thx! From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Widi Harsojo Sent: Friday, March 23, 2007 6:14 AM To: jQuery Discussion Subject: Re: [jQuery] ANNOUNCE: Tabs 2.7 Wow!. awesome... Thanks, Klaus. Widi ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Correct way to setup a callback function
Is something about it not working for you? --Erik On 3/29/07, Rick Faircloth [EMAIL PROTECTED] wrote: D'oh! No actually it was a mind-reading test… :oP Here's what I'm running: $.post(Calc_Test_Process_Field_chris.cfm, Params, toggleButton); Rick From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Heimlich Sent: Wednesday, March 28, 2007 11:36 PM To: jQuery Discussion Subject: Re: [jQuery] Correct way to setup a callback function u, you forgot the code. On 3/28/07, Rick Faircloth [EMAIL PROTECTED] wrote: Hi, all... Is this the correct way to setup a callback function? i.e... after posting Params to Calc_Test_Process_Field_chris.cfm, I would like for the function toggleButton to run... Is this the correct syntax? Thanks, Rick ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jEditable: how to remove behaviour
@Sam Collett: No, $(#myjeditable).unbind(click) doesn't work, but thanks for the idea. @Mark: Probably you are right, but I don't like messing with other's code, plus that would only slow me down and I promissed to have this project ready for this week (although it's just a pet project). Update: I've found that, when you apply $().editable on an object, it gets a new property-function called editable (that points at reset() in the plugin, but that doesn't matter now). I've tried removing this attribute like this $(myEditable).editable = null, and although I don't get any error, it doesn't work either and the property stays just there (silently laughing at me). Any ideas how to remove this property? I don't see what I might be doing wrong. Thanks. Abel. On 3/29/07, Sam Collett [EMAIL PROTECTED] wrote: On 28/03/07, Abel Tamayo [EMAIL PROTECTED] wrote: Hi all, I'm using jEditable for a webpage, but I would like to make it so that, once you've edited the text, the behaviour is removed and you can edit it no longer. Does anyone know how to do that? Thanks. You could try $(#myjeditable).unbind(click) Although perhaps it would be better if the plugin could do that (I don't know if there are any memory leaks that may be caused by doing it this way). ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Interface Imagebox with Dynamic image lists problem
Hi All, I'm using Interface (1.2) with jQuery (1.1.1) in a little gallery application (localhost based at the moment!). My problem seems to be that as I load a new gallery (Ajax) of images (with all the required 'rel' attributes etc) the Imagebox works perfectly for two or three galleries then starts showing (and animating) just a white box and the Imagebox 'add-on' section (with the close icon, etc). After it does this all imagebox bits are the same - no ability to go forward or back through images or display images any more, even after loading another gallery or a previous one that worked. It does not seem to be related to the speed of clicking for the next image or the image type (all jpegs), as all the images in my test gallery will show correctly within the Imagebox for a while before it stops working correctly. I have a feeling that the problem may lay in the way I call the Imagebox to Init itself just after loading each gallery of thumbnails. The documentation (which really, really needs tidying up and enhancing, btw!) is not clear at all on whether or not the call to init() can or should be called more than once, but if I don't re-init after each gallery load it will not work at all - I just get standard links to pictures :( Could Stefan or Paul clarify or point out where I might be going wrong? Sorry if this is a bit long-winded, but I can't easily put the code online at the moment. Thanks, Dave PS. Both jQuery and Interface are wonderful libraries (and so are many of the other plugins) - I don't really want to use another imagebox system if I can help it ;) -- View this message in context: http://www.nabble.com/Interface-Imagebox-with-Dynamic-image-lists-problem-tf3222831.html#a8951493 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Interface Imagebox with Dynamic image lists problem
Forgot to mention that my testing is mainly with Firefox 2 on Windows XP (with Apache 2). Got other problems to solve for IE (so what's new there then!!! :) ) -- View this message in context: http://www.nabble.com/Interface-Imagebox-with-Dynamic-image-lists-problem-tf3222831.html#a8959238 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Found a bug?
That has to do with the - not being a valid character for a property name in javascript. Try either text-decoration or textDecoration. The same is true for any css attribute with a - in the name (background-image, font-size, margin-top, etc). --Erik On 3/29/07, Марат [EMAIL PROTECTED] wrote: Try this $('.anyclass').css({ text-decoration: underline, cursor: pointer, cursor: hand }); -- B.r. Marat ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Found a bug?
Try this $('.anyclass').css({ text-decoration: underline, cursor: pointer, cursor: hand }); -- B.r. Marat ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Can it be done using JQuery
This site looks pretty cool, but that scrolling functionality TOTALLY causes both vert and hor scrollbars in IE7. Don't see a point to it... _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kush Murod Sent: Thursday, March 29, 2007 1:05 AM To: jQuery Discussion Subject: Re: [jQuery] Can it be done using JQuery Smooth slide affect actually I know that interface offers scrollto which scrolls you smoothly to specified target - vertically Question is is it possible to scrollto target diagonally, has anyone already something similar in JQuery? --kush Erik Beeson wrote: What effect are you referring to? --Erik On 3/28/07, Kush Murod mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi guys, Saw this awesome site, great concept, written in prototype http://www.invisiblechildren.com/displaceMe/ Was just wondering if same idea can be accomplished using JQuery. -- Kush Murod, Web applications developer Sensory Networks [E] [EMAIL PROTECTED] [W] www.sensorynetworks.com [T] +61 2 8302 2745 [F] +61 2 9475 0316 [A] Level 6, 140 William Street East Sydney 2011 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Kush Murod, Web applications developer Sensory Networks [E] [EMAIL PROTECTED] [W] www.sensorynetworks.com [T] +61 2 8302 2745 [F] +61 2 9475 0316 [A] Level 6, 140 William Street East Sydney 2011 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Close any other row before showing a new one
Thanks Klaus...good point. I'll change that to something a little more meaningful. andy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Klaus Hartl Sent: Wednesday, March 28, 2007 6:19 PM To: jQuery Discussion Subject: Re: [jQuery] Close any other row before showing a new one Jake McGraw schrieb: Have to tried ':visible' selector? $('.hidden:visible').slideUp(fast); By the way, reading .hidden:visible shows to me that the class name hidden is purely presentational and not very well chosen. How can a hidden thing be visible? Would be less confusing to call it additional for example. -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jEditable: how to remove behaviour
On Mar 29, 2007, at 3:45 PM, Abel Tamayo wrote: Update: I've found that, when you apply $().editable on an object, it gets a new property-function called editable (that points at reset() in the plugin, but that doesn't matter now). I've tried removing this attribute like this $(myEditable).editable = null, and although I don't get any error, it doesn't work either and the property stays just there (silently laughing at me). Any ideas how to remove this property? I don't see what I might be doing wrong. Sorry for late answer. Use callback function to unbind the event form element. For example: -cut- $(document).ready(function() { $(.editable).editable(http://www.example.com/save.php;, { indicator : 'img src=img/indicator.gif', type : textarea, submit : OK, }, function(value, settings) { $(this).unbind(settings.event); }); }); -cut- Working example in url below: http://www.appelsiini.net/~tuupola/jquery/jeditable/tamayo.php -- Mika Tuupola http://www.appelsiini.net/~tuupola/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Can't post to jQuery list from the Google interface?
Anyone know why I can't post to the list from within the Google Groups interface? I tried responding to several posts last night as well as posting a new message yesterday afternoon and none of them have come through, even though the interface told me that my post was successful. Ideas? 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 Description: Windows bitmap ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] CODE REVIEW: the fruits of today's labor - now with REAL CODE!
Sorry guys...I tried posting the code last night using the Google Groups interface, but it didn't come through. Here you go: http://www.commadelimited.com/uploads/psychic _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Wednesday, March 28, 2007 4:59 PM To: [jQuery] Subject: [jQuery] CODE REVIEW: the fruits of today's labor Okay... I finished my proof of concept for the project I've got. It works just as I want it to in IE6, IE7 and FF2. I wondered if you guys would mind testing it in whatever browsers you have as well as taking a look at the jQ code and telling me where I might be able to thin things out a bit. Please don't hesitate to offer any criticism, critiques or suggestions. I'd love to know where I could improve this code, or if I'm doing anything wrong. Anyone out there that's wanting to do the same thing, feel free to snake this code. It's all yours. 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 Description: Windows bitmap ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] bug found
this is a bug I found when using firebug to refresh some data in an menu.. code: $.post(rAction,{action:login,ddd:$(#ccc).val(),ddd:$(#ddd).val()},function(html){ $(html).insertAfter($(div#compte .padder fieldset h2)).load(errorVerif2()); activeMenu(); $.load(errorVerif2()); }); instead of returning p1/p p2/p p3/p ul li1/li li2/li li3/li /ul it returned the following ul li1/li li2/li li3/li /ul p3/p p2/p p1/p the reversion of the elements only seems to happen on the top level elements of the html answer. But it seems rather disturbing. thx for reading this. Michel Brouckaert ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jEditable: how to remove behaviour
On Mar 29, 2007, at 4:08 PM, Mika Tuupola wrote: On Mar 29, 2007, at 3:45 PM, Abel Tamayo wrote: Update: I've found that, when you apply $().editable on an object, it gets a new property-function called editable (that points at reset() in the plugin, but that doesn't matter now). I've tried removing this attribute like this $(myEditable).editable = null, and although I don't get any error, it doesn't work either and the property stays just there (silently laughing at me). Any ideas how to remove this property? I don't see what I might be doing wrong. Sorry for late answer. Use callback function to unbind the event form element. For example: -cut- $(document).ready(function() { $(.editable).editable(http://www.example.com/save.php;, { indicator : 'img src=img/indicator.gif', type : textarea, submit : OK, }, function(value, settings) { $(this).unbind(settings.event); }); }); -cut- Ooops. One extra comma causes Safari to bail. This should have been: $(document).ready(function() { $(.editable).editable(http://www.example.com/save.php;, { indicator : 'img src=img/indicator.gif', type : textarea, submit : OK }, function(value, settings) { $(this).unbind(settings.event); }); }); -- Mika Tuupola http://www.appelsiini.net/~tuupola/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Any regular expression gurus here?
Christof: This may be true of traditional regular expressions, which is something you'll encounter in a college level automata class but very rarely in the real world. The fact is that most modern, since the 80s at least, regex implementations (JavaScript, Java, PHP,...) can handle many nonregular grammars, by making use of features such as look-ahead, atomic grouping, backreferences, etc. For specifics on this, see: http://en.wikipedia.org/wiki/Regular_expression#Patterns_for_irregular_languages - jake On 3/29/07, Karl Swedberg [EMAIL PROTECTED] wrote: On Mar 29, 2007, at 4:55 AM, Christof Donat wrote: Regular Expressions are used to define regular (Type 3 in Chomsky Hirarchy) grammars. You can not express nested parentheses in regular grammar, you need a context free (Type 2) but not regular grammar. Christof, that is fascinating! Thanks for that information! This is something I'll have to remember for the next dinner conversation with friends. You never know where Noam Chomsky[1] might pop up in a conversation. :) --Karl [1] http://en.wikipedia.org/wiki/Chomsky _ Karl Swedberg www.englishrules.com www.learningjquery.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Correct way to setup a callback function
I'm just wondering if we're getting into the toggleButton function, which should fire after all the params pass validation and are posted. Trying to make sure the syntax for the statement below looks correct, Rick, Please don't take this the wrong way, but why are you wondering? Put a breakpoint on that function and see if it gets called. From all the questions you've posted it sounds like you're really struggling with this form, but there are tools available to help you quickly answer questions like this. You should never be in a position of wondering if some code is getting executed. Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] CODE REVIEW: the fruits of today's labor - now with REAL CODE!
I really like the idea. Thanks for sharing. I noticed one behavior that was troubling, though perhaps intentional. After I click an arrow to view more, I tried clicking it again to close the row, but it seemed to just reload the data and flash back open the row. The only way to close a row seems to open another one. Like I say, not what I would expect, but perhaps what you intended. This is in FF2 on WinXP. There were no errors reported in Firebug. /alex On 3/29/07, Erik Beeson [EMAIL PROTECTED] wrote: Seems to work fine in FF2 and Safari on OS X. --Erik On 3/29/07, Andy Matthews [EMAIL PROTECTED] wrote: Sorry guys...I tried posting the code last night using the Google Groups interface, but it didn't come through. Here you go: http://www.commadelimited.com/uploads/psychic -- *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Andy Matthews *Sent:* Wednesday, March 28, 2007 4:59 PM *To:* [jQuery] *Subject:* [jQuery] CODE REVIEW: the fruits of today's labor Okay... I finished my proof of concept for the project I've got. It works just as I want it to in IE6, IE7 and FF2. I wondered if you guys would mind testing it in whatever browsers you have as well as taking a look at the jQ code and telling me where I might be able to thin things out a bit. Please don't hesitate to offer any criticism, critiques or suggestions. I'd love to know where I could improve this code, or if I'm doing anything wrong. Anyone out there that's wanting to do the same thing, feel free to snake this code. It's all yours. * Andy Matthews *Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] bug found
this might not actually be a bug. I have a hunch that it has to do with your use of .insertAfter() .insertAfter() will insert the elements one at a time in the correct order, but since each one is being inserted immediately after the h2, each is appearing before the previous one. I'm probably not explaining this well, so I'll just say that you will have more success using .appendTo(). Depending on how your DOM is structured, you might want to first create a container div after the h2 and then append your $(html) to that. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 29, 2007, at 9:17 AM, Michel Brouckaert wrote: this is a bug I found when using firebug to refresh some data in an menu.. code: $.post(rAction,{action:login,ddd:$(#ccc).val(),ddd:$ (#ddd).val()},function(html){ $(html).insertAfter($(div#compte .padder fieldset h2)).load(errorVerif2()); activeMenu(); $.load(errorVerif2()); }); instead of returning p1/p p2/p p3/p ul li1/li li2/li li3/li /ul it returned the following ul li1/li li2/li li3/li /ul p3/p p2/p p1/p the reversion of the elements only seems to happen on the top level elements of the html answer. But it seems rather disturbing. thx for reading this. Michel Brouckaert ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] CODE REVIEW: the fruits of today's labor - now with REALCODE!
I would definitely consider adding close functionality to a menu that is already expanded. That way if a user clicks an arrow in the down state the row would collapse and the arrow would then point back to the right. David Dexter | brilliantlemming.com | Brentwood, CA | 310.414.0949 _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Thursday, March 29, 2007 6:12 AM To: 'jQuery Discussion' Subject: [jQuery] CODE REVIEW: the fruits of today's labor - now with REALCODE! Sorry guys...I tried posting the code last night using the Google Groups interface, but it didn't come through. Here you go: http://www.commadelimited.com/uploads/psychic _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Wednesday, March 28, 2007 4:59 PM To: [jQuery] Subject: [jQuery] CODE REVIEW: the fruits of today's labor Okay... I finished my proof of concept for the project I've got. It works just as I want it to in IE6, IE7 and FF2. I wondered if you guys would mind testing it in whatever browsers you have as well as taking a look at the jQ code and telling me where I might be able to thin things out a bit. Please don't hesitate to offer any criticism, critiques or suggestions. I'd love to know where I could improve this code, or if I'm doing anything wrong. Anyone out there that's wanting to do the same thing, feel free to snake this code. It's all yours. 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.gif Description: GIF image ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Correct way to setup a callback function
On 3/29/07, Rick Faircloth [EMAIL PROTECTED] wrote: $.post(Calc_Test_Process_Field_chris.cfm, Params, toggleButton); That's definitely the correct syntax ( http://docs.jquery.com/Ajax#.24.post.28_url.2C_params.2C_callback_.29). Try adding something like alert(Toggling submit button); to the beginning of toggleButton to see whether it's being called or not. Another thing I just realized is that toggleButton only gets called if the request was successful. Try this: var settings = { type: POST, url: Calc_Test_Process_Field_chris.cfm, data: Params, success: toggleButton, error: requestError }; jQuery.ajax(settings); // note, this assumes you are using Firefox with Firebug 1.0 installed function requestError(request, message, exception) { console.log(Danger Will Robinson! Danger!); console.log(An error occurred when requesting %s, settings.url); console.log(Settings: %o, settings); console.log(HTTP Status Code: %d, request.status); console.log(HTTP Status Message: %s, request.statusMessage); console.log(jQuery Status Message: %s, message); console.log(Response Body: %s, request.responseText); console.log(Exception %o, exception); } and see if requestError gets called. -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Can't post to jQuery list from the Google interface?
I don't think it's possible to post through the Google Groups interface yet. For whatever reason, they're taking like 4 days to move all the users over. I think I'm just going to move everything over tonight, anyway - forcing everyone to sign-up on the new list. It's going to suck, but I'm not sure if we have a choice. --John On 3/29/07, Andy Matthews [EMAIL PROTECTED] wrote: Anyone know why I can't post to the list from within the Google Groups interface? I tried responding to several posts last night as well as posting a new message yesterday afternoon and none of them have come through, even though the interface told me that my post was successful. Ideas? * Andy Matthews *Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Correct way to setup a callback function
Thanks for the tip, Aaron. I've been using the alert for some feedback, as well as Firebug. As someone fairly new to JS, it all takes some getting used to. Thanks, too, for the other approach to the code and to the console code. Much appreciated! Rick From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Heimlich Sent: Thursday, March 29, 2007 10:33 AM To: jQuery Discussion Subject: Re: [jQuery] Correct way to setup a callback function On 3/29/07, Rick Faircloth [EMAIL PROTECTED] wrote: $.post(Calc_Test_Process_Field_chris.cfm, Params, toggleButton); That's definitely the correct syntax ( http://docs.jquery.com/Ajax#.24.post.28_url.2C_params.2C_callback_.29 http://docs.jquery.com/Ajax#.24.post.28_url.2C_params.2C_callback_.29). Try adding something like alert(Toggling submit button); to the beginning of toggleButton to see whether it's being called or not. Another thing I just realized is that toggleButton only gets called if the request was successful. Try this: var settings = { type: POST, url: Calc_Test_Process_Field_chris.cfm, data: Params, success: toggleButton, error: requestError }; jQuery.ajax(settings); // note, this assumes you are using Firefox with Firebug 1.0 installed function requestError(request, message, exception) { console.log(Danger Will Robinson! Danger!); console.log(An error occurred when requesting %s, settings.url); console.log(Settings: %o, settings); console.log(HTTP Status Code: %d, request.status); console.log(HTTP Status Message: %s, request.statusMessage); console.log(jQuery Status Message: %s, message); console.log(Response Body: %s, request.responseText); console.log(Exception %o, exception); } and see if requestError gets called. -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Correct way to setup a callback function
Don't worry about insulting me... :o) I'm very new to all this and very well aware of my ignorance about the little things those of you who are experienced take for granted. I have been using the breakpoints and alerts and every other little trick I could think of to check things, but I thought it wouldn't hurt to have a few look at some of the code directly... Rick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Alsup Sent: Thursday, March 29, 2007 10:18 AM To: jQuery Discussion Subject: Re: [jQuery] Correct way to setup a callback function I'm just wondering if we're getting into the toggleButton function, which should fire after all the params pass validation and are posted. Trying to make sure the syntax for the statement below looks correct, Rick, Please don't take this the wrong way, but why are you wondering? Put a breakpoint on that function and see if it gets called. From all the questions you've posted it sounds like you're really struggling with this form, but there are tools available to help you quickly answer questions like this. You should never be in a position of wondering if some code is getting executed. Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Correct way to setup a callback function
Also. thanks for actually answering the question I asked along with your other help. Rick From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Heimlich Sent: Thursday, March 29, 2007 10:33 AM To: jQuery Discussion Subject: Re: [jQuery] Correct way to setup a callback function On 3/29/07, Rick Faircloth [EMAIL PROTECTED] wrote: $.post(Calc_Test_Process_Field_chris.cfm, Params, toggleButton); That's definitely the correct syntax ( http://docs.jquery.com/Ajax#.24.post.28_url.2C_params.2C_callback_.29 http://docs.jquery.com/Ajax#.24.post.28_url.2C_params.2C_callback_.29). Try adding something like alert(Toggling submit button); to the beginning of toggleButton to see whether it's being called or not. Another thing I just realized is that toggleButton only gets called if the request was successful. Try this: var settings = { type: POST, url: Calc_Test_Process_Field_chris.cfm, data: Params, success: toggleButton, error: requestError }; jQuery.ajax(settings); // note, this assumes you are using Firefox with Firebug 1.0 installed function requestError(request, message, exception) { console.log(Danger Will Robinson! Danger!); console.log(An error occurred when requesting %s, settings.url); console.log(Settings: %o, settings); console.log(HTTP Status Code: %d, request.status); console.log(HTTP Status Message: %s, request.statusMessage); console.log(jQuery Status Message: %s, message); console.log(Response Body: %s, request.responseText); console.log(Exception %o, exception); } and see if requestError gets called. -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Beta Testers needed for Form Plugin file upload support
So when is it going alpha can't wait :) Harald Dietrich wrote: Sorry for the delay, but my feedback for IE was missing. I did not have any problems until now. So I think for FF and IE everything seems to be fine. Harald -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Harald Dietrich Sent: Freitag, 23. März 2007 18:08 To: jQuery Discussion Subject: Re: [jQuery] Beta Testers needed for Form Plugin file upload support Great! I used ajaxupload.js before and made the decision which plugin to use on my own, which forced me to use two plugins for forms. Tested with Firefox 2.0.0.2 (Windows 2000). Tonight I will do additional tests with IE7 (Windows XP). Harald -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mike Alsup Sent: Donnerstag, 22. März 2007 22:06 To: jQuery Discussion. Subject: [jQuery] Beta Testers needed for Form Plugin file upload support I've added file upload support to the form plugin and I could use some help testing it out. If this feature interests you then go ahead and grab the beta plugin at: http://malsup.com/jquery/form/file/jquery.form.js File upload support is baked right into the plugin and there are no external dependencies. The plugin will automatically detect file input elements and use an iframe to submit the form if there are files to be uploaded. No extra coding or metadata is needed to take advantage of this new feature. In addition, even though an iframe is used instead of the XHR object, callbacks and global triggers still work as expected (so any code that you have in place to display activity indicators or blocking elements will still work). However, there are some challenges when using iframes in this manner. For one, it is quite difficult to determine if the submit operation succeeded or failed. The iframe becomes the target of the submit operation and so that is where the server response is written. The form plugin does its best to determine the data type (html, xml, etc), but the status is always 'success' unless an exception is caught during the type determination. (Note that dojo and YUI haven't figured out how to solve the status problem either.) I've prepared a sample page with several forms here: http://malsup.com/jquery/form/file/ If you use this page for testing *please* be kind to my server and only upload small files! I'd really prefer that you download the plugin and integrate it into your own test environment if possible. I've done some testing on FF, IE and Opera and the results are encouraging. I don't have access to Safari so I'm sure there are issues lurking for that platform. If you're interested in the code you can find it all tucked into the end of the ajaxSubmit method in a function called fileUpload. Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] find dd's dt
hello! i guess i'm not too good in finding my way upwards in the DOM tree. I have a structure like this: dl#navigation dl#navigation dt dl#navigation dd ul li a.selected dl#navigation dt dl#navigation dd ul li a dl#navigation dt dl#navigation dd ul li a /dl all ul are hidden but the one containing the selected a. I need to access that specific dt element. i tried this, but it does not work: $this = $(//dd[ul/li/a.selected]); $this.show(); $this = $(this).parent(); $(dt,$this).css({border: 1px solid #FF}); sorry, i think i 'm in need of a good tutorial on selectors. thank you for your help, Alexandre -- Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.448 / Base de données virus: 268.18.20/737 - Date: 28/03/2007 16:23 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] find dd's dt
Alexandre Plennevaux schrieb: hello! i guess i'm not too good in finding my way upwards in the DOM tree. I have a structure like this: dl#navigation dl#navigation dt dl#navigation dd ul li a.selected dl#navigation dt dl#navigation dd ul li a dl#navigation dt dl#navigation dd ul li a /dl all ul are hidden but the one containing the selected a. I need to access that specific *dt* element. i tried this, but it does not work: $this = $(//dd[ul/li/a.selected]); $this.show(); $this = $(this).parent(); $(dt,$this).css({border: 1px solid #FF}); sorry, i think i 'm in need of a good tutorial on selectors. thank you for your help, Alexandre Alexandre, try this: $(//dd[ul/li/a.selected]).prev(); I'm not sure if I understood that XPath selector correctly, but you could try: $(//dd[ul/li/a.selected] ~ dt) But I think that this one simply selects the dd element that is preceded by a dt which is the case anyway. -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Can't post to jQuery list from the Google interface?
Ah...I see... Thanks for clarifying John. _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Resig Sent: Thursday, March 29, 2007 9:40 AM To: jQuery Discussion Subject: Re: [jQuery] Can't post to jQuery list from the Google interface? I don't think it's possible to post through the Google Groups interface yet. For whatever reason, they're taking like 4 days to move all the users over. I think I'm just going to move everything over tonight, anyway - forcing everyone to sign-up on the new list. It's going to suck, but I'm not sure if we have a choice. --John On 3/29/07, Andy Matthews [EMAIL PROTECTED] wrote: Anyone know why I can't post to the list from within the Google Groups interface? I tried responding to several posts last night as well as posting a new message yesterday afternoon and none of them have come through, even though the interface told me that my post was successful. Ideas? 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/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Collapsing table Columns?
Any ideas how one could hide/show table columns, rather than rows? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] CODE REVIEW: the fruits of today's labor - now withREALCODE!
Well, technically that's already there, but because of the way that I'm detecting open rows, if you click on a row that's already open, it has some weirdness to it. I'm going to change some of that out today. _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Dexter Sent: Thursday, March 29, 2007 9:26 AM To: 'jQuery Discussion' Subject: Re: [jQuery] CODE REVIEW: the fruits of today's labor - now withREALCODE! I would definitely consider adding close functionality to a menu that is already expanded. That way if a user clicks an arrow in the down state the row would collapse and the arrow would then point back to the right. David Dexter | brilliantlemming.com | Brentwood, CA | 310.414.0949 _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Thursday, March 29, 2007 6:12 AM To: 'jQuery Discussion' Subject: [jQuery] CODE REVIEW: the fruits of today's labor - now with REALCODE! Sorry guys...I tried posting the code last night using the Google Groups interface, but it didn't come through. Here you go: http://www.commadelimited.com/uploads/psychic _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Wednesday, March 28, 2007 4:59 PM To: [jQuery] Subject: [jQuery] CODE REVIEW: the fruits of today's labor Okay... I finished my proof of concept for the project I've got. It works just as I want it to in IE6, IE7 and FF2. I wondered if you guys would mind testing it in whatever browsers you have as well as taking a look at the jQ code and telling me where I might be able to thin things out a bit. Please don't hesitate to offer any criticism, critiques or suggestions. I'd love to know where I could improve this code, or if I'm doing anything wrong. Anyone out there that's wanting to do the same thing, feel free to snake this code. It's all yours. 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.gif Description: GIF image ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Collapsing table Columns?
Using the col element maybe? Otherwise, if it is the 3rd column you could do this: $(td+td+td).hide(); I dunno if that works, but it's the css way to address the 3rd column. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Baxter Sent: jeudi 29 mars 2007 16:28 To: discuss@jquery.com Subject: [jQuery] Collapsing table Columns? Any ideas how one could hide/show table columns, rather than rows? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.448 / Base de données virus: 268.18.20/737 - Date: 28/03/2007 16:23 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] CODE REVIEW: the fruits of today's labor - now withREALCODE!
Andy, I tried it in Opera 9 and it appears to be fine. I second the other posters comments about being able to collapse an expanded row. I was expecting that behavior and a little confused about the reload. best, Brad On 3/29/07, Andy Matthews [EMAIL PROTECTED] wrote: Well, technically that's already there, but because of the way that I'm detecting open rows, if you click on a row that's already open, it has some weirdness to it. I'm going to change some of that out today. -- *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *David Dexter *Sent:* Thursday, March 29, 2007 9:26 AM *To:* 'jQuery Discussion' *Subject:* Re: [jQuery] CODE REVIEW: the fruits of today's labor - now withREALCODE! I would definitely consider adding close functionality to a menu that is already expanded. That way if a user clicks an arrow in the down state the row would collapse and the arrow would then point back to the right. *David Dexter | brilliantlemming.com | Brentwood, CA | 310.414.0949 *** -- *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Andy Matthews *Sent:* Thursday, March 29, 2007 6:12 AM *To:* 'jQuery Discussion' *Subject:* [jQuery] CODE REVIEW: the fruits of today's labor - now with REALCODE! Sorry guys...I tried posting the code last night using the Google Groups interface, but it didn't come through. Here you go: http://www.commadelimited.com/uploads/psychic -- *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Andy Matthews *Sent:* Wednesday, March 28, 2007 4:59 PM *To:* [jQuery] *Subject:* [jQuery] CODE REVIEW: the fruits of today's labor Okay... I finished my proof of concept for the project I've got. It works just as I want it to in IE6, IE7 and FF2. I wondered if you guys would mind testing it in whatever browsers you have as well as taking a look at the jQ code and telling me where I might be able to thin things out a bit. Please don't hesitate to offer any criticism, critiques or suggestions. I'd love to know where I could improve this code, or if I'm doing anything wrong. Anyone out there that's wanting to do the same thing, feel free to snake this code. It's all yours. **** * * *Andy Matthews *Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] CODE REVIEW: the fruits of today's labor - nowwithREALCODE!
Andy, I'd do something like this... $(document).ready( function(){ $('.row td img.open').bind(click, function() { var curImg = $(this); var id = curImg.parent().parent().attr(id); var idArr = id.split(-); var child = $('#' + id + '-details'); // I'd do a simple check to see if the image you just clicked has a src that includes tri_open // If it doesn't run your open stuff if(curImg.attr(src).indexOf('tri_open' == -1){ curImg.attr(src,images/loader.gif); $('.hidden:visible').slideUp(fast); $('[EMAIL PROTECTED]/tri_open.gif]').attr(src,images/tri_closed.gif); $.get(ajax3.cfm, {method:idArr[0],key:idArr[1]}, function(data){ curImg.attr(src,images/tri_open.gif); child.html(data).slideToggle(fast); }); }else{ // If it does close it up. curImg.attr(src,images/loader.gif); child.slideUp('fast',function(){ curImg.attr(src,images/tri_closed.gif); }); } }); }); David Dexter | brilliantlemming.com | Brentwood, CA | 310.414.0949 _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Thursday, March 29, 2007 8:32 AM To: 'jQuery Discussion' Subject: Re: [jQuery] CODE REVIEW: the fruits of today's labor - nowwithREALCODE! Well, technically that's already there, but because of the way that I'm detecting open rows, if you click on a row that's already open, it has some weirdness to it. I'm going to change some of that out today. _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Dexter Sent: Thursday, March 29, 2007 9:26 AM To: 'jQuery Discussion' Subject: Re: [jQuery] CODE REVIEW: the fruits of today's labor - now withREALCODE! I would definitely consider adding close functionality to a menu that is already expanded. That way if a user clicks an arrow in the down state the row would collapse and the arrow would then point back to the right. David Dexter | brilliantlemming.com | Brentwood, CA | 310.414.0949 _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Thursday, March 29, 2007 6:12 AM To: 'jQuery Discussion' Subject: [jQuery] CODE REVIEW: the fruits of today's labor - now with REALCODE! Sorry guys...I tried posting the code last night using the Google Groups interface, but it didn't come through. Here you go: http://www.commadelimited.com/uploads/psychic _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Wednesday, March 28, 2007 4:59 PM To: [jQuery] Subject: [jQuery] CODE REVIEW: the fruits of today's labor Okay... I finished my proof of concept for the project I've got. It works just as I want it to in IE6, IE7 and FF2. I wondered if you guys would mind testing it in whatever browsers you have as well as taking a look at the jQ code and telling me where I might be able to thin things out a bit. Please don't hesitate to offer any criticism, critiques or suggestions. I'd love to know where I could improve this code, or if I'm doing anything wrong. Anyone out there that's wanting to do the same thing, feel free to snake this code. It's all yours. 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.gif Description: GIF image ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] bug found
Michel Brouckaert schrieb: ok, that is actually an very true thought but still it's an quiet strict and weird interpretation of the words insertAfter.. This actualy means at the end that it is rather impossible to add an item after an root element without appending it.. There shouldn't be an element after the root element anyway. In XML that wouldn't be well-formed and in HTML the html element has no sibling either. -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] CODE REVIEW: the fruits of today's labor -nowwithREALCODE!
Never satisfied until I test something I set up your code here with my modifications. http://brilliantlemming.com/test/andy.html Have a look at the source. There was one error in my if statement.. It should have read: if(curImg.attr(src).indexOf('tri_open') == -1){ Cheers, David Dexter | brilliantlemming.com | Brentwood, CA | 310.414.0949 _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Dexter Sent: Thursday, March 29, 2007 8:58 AM To: 'jQuery Discussion' Subject: Re: [jQuery] CODE REVIEW: the fruits of today's labor -nowwithREALCODE! Andy, I'd do something like this... $(document).ready( function(){ $('.row td img.open').bind(click, function() { var curImg = $(this); var id = curImg.parent().parent().attr(id); var idArr = id.split(-); var child = $('#' + id + '-details'); // I'd do a simple check to see if the image you just clicked has a src that includes tri_open // If it doesn't run your open stuff if(curImg.attr(src).indexOf('tri_open' == -1){ curImg.attr(src,images/loader.gif); $('.hidden:visible').slideUp(fast); $('[EMAIL PROTECTED]/tri_open.gif]').attr(src,images/tri_closed.gif); $.get(ajax3.cfm, {method:idArr[0],key:idArr[1]}, function(data){ curImg.attr(src,images/tri_open.gif); child.html(data).slideToggle(fast); }); }else{ // If it does close it up. curImg.attr(src,images/loader.gif); child.slideUp('fast',function(){ curImg.attr(src,images/tri_closed.gif); }); } }); }); David Dexter | brilliantlemming.com | Brentwood, CA | 310.414.0949 _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Thursday, March 29, 2007 8:32 AM To: 'jQuery Discussion' Subject: Re: [jQuery] CODE REVIEW: the fruits of today's labor - nowwithREALCODE! Well, technically that's already there, but because of the way that I'm detecting open rows, if you click on a row that's already open, it has some weirdness to it. I'm going to change some of that out today. _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Dexter Sent: Thursday, March 29, 2007 9:26 AM To: 'jQuery Discussion' Subject: Re: [jQuery] CODE REVIEW: the fruits of today's labor - now withREALCODE! I would definitely consider adding close functionality to a menu that is already expanded. That way if a user clicks an arrow in the down state the row would collapse and the arrow would then point back to the right. David Dexter | brilliantlemming.com | Brentwood, CA | 310.414.0949 _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Thursday, March 29, 2007 6:12 AM To: 'jQuery Discussion' Subject: [jQuery] CODE REVIEW: the fruits of today's labor - now with REALCODE! Sorry guys...I tried posting the code last night using the Google Groups interface, but it didn't come through. Here you go: http://www.commadelimited.com/uploads/psychic _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Wednesday, March 28, 2007 4:59 PM To: [jQuery] Subject: [jQuery] CODE REVIEW: the fruits of today's labor Okay... I finished my proof of concept for the project I've got. It works just as I want it to in IE6, IE7 and FF2. I wondered if you guys would mind testing it in whatever browsers you have as well as taking a look at the jQ code and telling me where I might be able to thin things out a bit. Please don't hesitate to offer any criticism, critiques or suggestions. I'd love to know where I could improve this code, or if I'm doing anything wrong. Anyone out there that's wanting to do the same thing, feel free to snake this code. It's all yours. 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.gif Description: GIF image ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] find dd's dt
Or possibly something along the lines of $('a.selected').parents('dd').prev() -js On 3/29/07, Alexandre Plennevaux [EMAIL PROTECTED] wrote: hello! i guess i'm not too good in finding my way upwards in the DOM tree. I have a structure like this: dl#navigation dl#navigation dt dl#navigation dd ul li a.selected dl#navigation dt dl#navigation dd ul li a dl#navigation dt dl#navigation dd ul li a /dl all ul are hidden but the one containing the selected a. I need to access that specific *dt* element. i tried this, but it does not work: $this = $(//dd[ul/li/a.selected]); $this.show(); $this = $(this).parent(); $(dt,$this).css({border: 1px solid #FF}); sorry, i think i 'm in need of a good tutorial on selectors. thank you for your help, Alexandre -- Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.448 / Base de données virus: 268.18.20/737 - Date: 28/03/2007 16:23 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] CODE REVIEW: the fruits of today's labor -nowwithREALCODE!
Excellent. I was going to be doing something along those lines anyway David, but MANY thanks. You're a gentleman and a scholar. _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Dexter Sent: Thursday, March 29, 2007 10:58 AM To: 'jQuery Discussion' Subject: Re: [jQuery] CODE REVIEW: the fruits of today's labor -nowwithREALCODE! Andy, I'd do something like this... $(document).ready( function(){ $('.row td img.open').bind(click, function() { var curImg = $(this); var id = curImg.parent().parent().attr(id); var idArr = id.split(-); var child = $('#' + id + '-details'); // I'd do a simple check to see if the image you just clicked has a src that includes tri_open // If it doesn't run your open stuff if(curImg.attr(src).indexOf('tri_open' == -1){ curImg.attr(src,images/loader.gif); $('.hidden:visible').slideUp(fast); $('[EMAIL PROTECTED]/tri_open.gif]').attr(src,images/tri_closed.gif); $.get(ajax3.cfm, {method:idArr[0],key:idArr[1]}, function(data){ curImg.attr(src,images/tri_open.gif); child.html(data).slideToggle(fast); }); }else{ // If it does close it up. curImg.attr(src,images/loader.gif); child.slideUp('fast',function(){ curImg.attr(src,images/tri_closed.gif); }); } }); }); David Dexter | brilliantlemming.com | Brentwood, CA | 310.414.0949 _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Thursday, March 29, 2007 8:32 AM To: 'jQuery Discussion' Subject: Re: [jQuery] CODE REVIEW: the fruits of today's labor - nowwithREALCODE! Well, technically that's already there, but because of the way that I'm detecting open rows, if you click on a row that's already open, it has some weirdness to it. I'm going to change some of that out today. _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Dexter Sent: Thursday, March 29, 2007 9:26 AM To: 'jQuery Discussion' Subject: Re: [jQuery] CODE REVIEW: the fruits of today's labor - now withREALCODE! I would definitely consider adding close functionality to a menu that is already expanded. That way if a user clicks an arrow in the down state the row would collapse and the arrow would then point back to the right. David Dexter | brilliantlemming.com | Brentwood, CA | 310.414.0949 _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Thursday, March 29, 2007 6:12 AM To: 'jQuery Discussion' Subject: [jQuery] CODE REVIEW: the fruits of today's labor - now with REALCODE! Sorry guys...I tried posting the code last night using the Google Groups interface, but it didn't come through. Here you go: http://www.commadelimited.com/uploads/psychic _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Wednesday, March 28, 2007 4:59 PM To: [jQuery] Subject: [jQuery] CODE REVIEW: the fruits of today's labor Okay... I finished my proof of concept for the project I've got. It works just as I want it to in IE6, IE7 and FF2. I wondered if you guys would mind testing it in whatever browsers you have as well as taking a look at the jQ code and telling me where I might be able to thin things out a bit. Please don't hesitate to offer any criticism, critiques or suggestions. I'd love to know where I could improve this code, or if I'm doing anything wrong. Anyone out there that's wanting to do the same thing, feel free to snake this code. It's all yours. 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.gif Description: GIF image ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Beta Testers needed for Form Plugin file upload support
Mike Alsup schrieb: I've added file upload support to the form plugin and I could use some help testing it out. If this feature interests you then go ahead and grab the beta plugin at: http://malsup.com/jquery/form/file/jquery.form.js Mike, GREAT stuff!!! I always hoped you would bake that into the plugin someday. I'm pretty sure I'm going to test/use that with the new plazes. :-) -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Binding to multiple items with one call
This doesn't seem to be working: bindBlur = function(){ $j('#person', '#assigned').blur(function() { sendok=true; alert(sendok);} ); } But this does: bindBlur = function(){ $j('#person').blur(function() { sendok=true; alert(sendok);} ); } Do I have to do them all individually or am I just putting those IDs in incorrectly? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Collapsing table Columns?
If it's the third column, you could also try this: $('td:nth-child(3)').hide() If you have ths in your table and need to hide them, too, you can do this: $('td:nth-child(3), th:nth-child(3)').hide() --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 29, 2007, at 12:36 PM, Alexandre Plennevaux wrote: Using the col element maybe? Otherwise, if it is the 3rd column you could do this: $(td+td+td).hide(); I dunno if that works, but it's the css way to address the 3rd column. -Original Message- From: [EMAIL PROTECTED] [mailto:discuss- [EMAIL PROTECTED] On Behalf Of Baxter Sent: jeudi 29 mars 2007 16:28 To: discuss@jquery.com Subject: [jQuery] Collapsing table Columns? Any ideas how one could hide/show table columns, rather than rows? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.448 / Base de données virus: 268.18.20/737 - Date: 28/03/2007 16:23 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Known memory leaks?
On 28/03/2007, at 17:09, Markus Peter wrote: [...] We are currently trying to eliminate the memory leaks but are now running into a dead end. Same here. I'm currently investigating the ready hack for IE. As the `onreadystatechange` handler for the deferred script is defined as a closure, it seems as a candidate for leaking. Anyone? -- Choan Gálvez [EMAIL PROTECTED] http://choangalvez.nom.es/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Can it be done using JQuery
I agree, I found myself scrolling around looking for other content. I've seen flash implementations that were similar but you could see all the pages by scrolling horizontally. This one, I don't see the point...just confuses people. -- Josh - Original Message - From: Andy Matthews To: 'jQuery Discussion' Sent: Thursday, March 29, 2007 6:06 AM Subject: Re: [jQuery] Can it be done using JQuery This site looks pretty cool, but that scrolling functionality TOTALLY causes both vert and hor scrollbars in IE7. Don't see a point to it... -- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kush Murod Sent: Thursday, March 29, 2007 1:05 AM To: jQuery Discussion Subject: Re: [jQuery] Can it be done using JQuery Smooth slide affect actually I know that interface offers scrollto which scrolls you smoothly to specified target - vertically Question is is it possible to scrollto target diagonally, has anyone already something similar in JQuery? --kush Erik Beeson wrote: What effect are you referring to? --Erik On 3/28/07, Kush Murod [EMAIL PROTECTED] wrote: Hi guys, Saw this awesome site, great concept, written in prototype http://www.invisiblechildren.com/displaceMe/ Was just wondering if same idea can be accomplished using JQuery. -- Kush Murod, Web applications developer Sensory Networks [E] [EMAIL PROTECTED] [W] www.sensorynetworks.com [T] +61 2 8302 2745 [F] +61 2 9475 0316 [A] Level 6, 140 William Street East Sydney 2011 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Kush Murod, Web applications developer Sensory Networks [E] [EMAIL PROTECTED] [W] www.sensorynetworks.com [T] +61 2 8302 2745 [F] +61 2 9475 0316 [A] Level 6, 140 William Street East Sydney 2011 -- ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] CODE REVIEW: the fruits of today's labor-nowwithREALCODE!
That's SLICK! Thanks for the update David. Appreciated. _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Dexter Sent: Thursday, March 29, 2007 11:11 AM To: 'jQuery Discussion' Subject: Re: [jQuery] CODE REVIEW: the fruits of today's labor-nowwithREALCODE! Never satisfied until I test something I set up your code here with my modifications. http://brilliantlemming.com/test/andy.html Have a look at the source. There was one error in my if statement.. It should have read: if(curImg.attr(src).indexOf('tri_open') == -1){ Cheers, David Dexter | brilliantlemming.com | Brentwood, CA | 310.414.0949 _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Dexter Sent: Thursday, March 29, 2007 8:58 AM To: 'jQuery Discussion' Subject: Re: [jQuery] CODE REVIEW: the fruits of today's labor -nowwithREALCODE! Andy, I'd do something like this... $(document).ready( function(){ $('.row td img.open').bind(click, function() { var curImg = $(this); var id = curImg.parent().parent().attr(id); var idArr = id.split(-); var child = $('#' + id + '-details'); // I'd do a simple check to see if the image you just clicked has a src that includes tri_open // If it doesn't run your open stuff if(curImg.attr(src).indexOf('tri_open' == -1){ curImg.attr(src,images/loader.gif); $('.hidden:visible').slideUp(fast); $('[EMAIL PROTECTED]/tri_open.gif]').attr(src,images/tri_closed.gif); $.get(ajax3.cfm, {method:idArr[0],key:idArr[1]}, function(data){ curImg.attr(src,images/tri_open.gif); child.html(data).slideToggle(fast); }); }else{ // If it does close it up. curImg.attr(src,images/loader.gif); child.slideUp('fast',function(){ curImg.attr(src,images/tri_closed.gif); }); } }); }); David Dexter | brilliantlemming.com | Brentwood, CA | 310.414.0949 _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Thursday, March 29, 2007 8:32 AM To: 'jQuery Discussion' Subject: Re: [jQuery] CODE REVIEW: the fruits of today's labor - nowwithREALCODE! Well, technically that's already there, but because of the way that I'm detecting open rows, if you click on a row that's already open, it has some weirdness to it. I'm going to change some of that out today. _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Dexter Sent: Thursday, March 29, 2007 9:26 AM To: 'jQuery Discussion' Subject: Re: [jQuery] CODE REVIEW: the fruits of today's labor - now withREALCODE! I would definitely consider adding close functionality to a menu that is already expanded. That way if a user clicks an arrow in the down state the row would collapse and the arrow would then point back to the right. David Dexter | brilliantlemming.com | Brentwood, CA | 310.414.0949 _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Thursday, March 29, 2007 6:12 AM To: 'jQuery Discussion' Subject: [jQuery] CODE REVIEW: the fruits of today's labor - now with REALCODE! Sorry guys...I tried posting the code last night using the Google Groups interface, but it didn't come through. Here you go: http://www.commadelimited.com/uploads/psychic _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Wednesday, March 28, 2007 4:59 PM To: [jQuery] Subject: [jQuery] CODE REVIEW: the fruits of today's labor Okay... I finished my proof of concept for the project I've got. It works just as I want it to in IE6, IE7 and FF2. I wondered if you guys would mind testing it in whatever browsers you have as well as taking a look at the jQ code and telling me where I might be able to thin things out a bit. Please don't hesitate to offer any criticism, critiques or suggestions. I'd love to know where I could improve this code, or if I'm doing anything wrong. Anyone out there that's wanting to do the same thing, feel free to snake this code. It's all yours. 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.gif Description: GIF image ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jEditable: how to remove behaviour
Wow, an answer from the very author of the plugin! Thanks very much, Mikka, will be trying it this evening. Abel. On 3/29/07, Mika Tuupola [EMAIL PROTECTED] wrote: On Mar 29, 2007, at 4:08 PM, Mika Tuupola wrote: On Mar 29, 2007, at 3:45 PM, Abel Tamayo wrote: Update: I've found that, when you apply $().editable on an object, it gets a new property-function called editable (that points at reset() in the plugin, but that doesn't matter now). I've tried removing this attribute like this $(myEditable).editable = null, and although I don't get any error, it doesn't work either and the property stays just there (silently laughing at me). Any ideas how to remove this property? I don't see what I might be doing wrong. Sorry for late answer. Use callback function to unbind the event form element. For example: -cut- $(document).ready(function() { $(.editable).editable(http://www.example.com/save.php;, { indicator : 'img src=img/indicator.gif', type : textarea, submit : OK, }, function(value, settings) { $(this).unbind(settings.event); }); }); -cut- Ooops. One extra comma causes Safari to bail. This should have been: $(document).ready(function() { $(.editable).editable(http://www.example.com/save.php;, { indicator : 'img src=img/indicator.gif', type : textarea, submit : OK }, function(value, settings) { $(this).unbind(settings.event); }); }); -- Mika Tuupola http://www.appelsiini.net/~tuupola/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Binding to multiple items with one call
I think you just have a couple extra single-quotes in there: $j('#person', '#assigned').blur(function() { sendok=true; alert(sendok);} ); the selector here is trying to get the #person element within the context of the #assigned element. if you want to get both, you need to enclose them in the same set of quotation marks like this: $j('#person, #assigned').blur(function() { sendok=true; alert(sendok);} ); --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 29, 2007, at 12:22 PM, Shelane Enos wrote: This doesn't seem to be working: bindBlur = function(){ $j('#person', '#assigned').blur(function() { sendok=true; alert(sendok);} ); } But this does: bindBlur = function(){ $j('#person').blur(function() { sendok=true; alert (sendok);} ); } Do I have to do them all individually or am I just putting those IDs in incorrectly? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Known memory leaks?
The ready hack for IE shouldn't be leaking but there is a patch to change it up a little to avoid a weird issue with iframes and refreshing the page. http://dev.jquery.com/ticket/1061 -- Brandon Aaron On 3/29/07, Choan Gálvez [EMAIL PROTECTED] wrote: On 28/03/2007, at 17:09, Markus Peter wrote: [...] We are currently trying to eliminate the memory leaks but are now running into a dead end. Same here. I'm currently investigating the ready hack for IE. As the `onreadystatechange` handler for the deferred script is defined as a closure, it seems as a candidate for leaking. Anyone? -- Choan Gálvez [EMAIL PROTECTED] http://choangalvez.nom.es/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Correct way to setup a callback function
Your welcome. HTH. On 3/29/07, Rick Faircloth [EMAIL PROTECTED] wrote: Also… thanks for actually answering the question I asked along with your other help. Rick *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Aaron Heimlich *Sent:* Thursday, March 29, 2007 10:33 AM *To:* jQuery Discussion *Subject:* Re: [jQuery] Correct way to setup a callback function On 3/29/07, *Rick Faircloth* [EMAIL PROTECTED] wrote: $.post(Calc_Test_Process_Field_chris.cfm, Params, toggleButton); That's definitely the correct syntax (http://docs.jquery.com/Ajax#.24.post.28_url.2C_params.2C_callback_.29). Try adding something like alert(Toggling submit button); to the beginning of toggleButton to see whether it's being called or not. Another thing I just realized is that toggleButton only gets called if the request was successful. Try this: var settings = { type: POST, url: Calc_Test_Process_Field_chris.cfm, data: Params, success: toggleButton, error: requestError }; jQuery.ajax(settings); // note, this assumes you are using Firefox with Firebug 1.0 installed function requestError(request, message, exception) { console.log(Danger Will Robinson! Danger!); console.log(An error occurred when requesting %s, settings.url); console.log(Settings: %o, settings); console.log(HTTP Status Code: %d, request.status); console.log(HTTP Status Message: %s, request.statusMessage); console.log(jQuery Status Message: %s, message); console.log(Response Body: %s, request.responseText); console.log(Exception %o, exception); } and see if requestError gets called. -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Quickly find the width of the window
Hey all, I'm needing to find the width of the window so I can find the relative position of an element. Any help? Kenneth -- = the blog from beyond = = www.eyeheartzombies.com = ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Any regular expression gurus here?
Also, when perl 6 is released it will have support for a much more powerful system called rules which can handle nested parentheses quite handily. -blair Jake McGraw wrote: Christof: This may be true of traditional regular expressions, which is something you'll encounter in a college level automata class but very rarely in the real world. The fact is that most modern, since the 80s at least, regex implementations (JavaScript, Java, PHP,...) can handle many nonregular grammars, by making use of features such as look-ahead, atomic grouping, backreferences, etc. For specifics on this, see: http://en.wikipedia.org/wiki/Regular_expression#Patterns_for_irregular_languages - jake On 3/29/07, Karl Swedberg [EMAIL PROTECTED] wrote: On Mar 29, 2007, at 4:55 AM, Christof Donat wrote: Regular Expressions are used to define regular (Type 3 in Chomsky Hirarchy) grammars. You can not express nested parentheses in regular grammar, you need a context free (Type 2) but not regular grammar. Christof, that is fascinating! Thanks for that information! This is something I'll have to remember for the next dinner conversation with friends. You never know where Noam Chomsky[1] might pop up in a conversation. :) --Karl [1] http://en.wikipedia.org/wiki/Chomsky _ Karl Swedberg www.englishrules.com www.learningjquery.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Quickly find the width of the window
You could use the dimensions plugin which extends the $().width() method to work on window and document. $(window).width(); http://brandon.jquery.com/plugins/dimensions/ -- Brandon Aaron On 3/29/07, Kenneth Love [EMAIL PROTECTED] wrote: Hey all, I'm needing to find the width of the window so I can find the relative position of an element. Any help? Kenneth -- = the blog from beyond = = www.eyeheartzombies.com = ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] hoverIntent r5 = plug-in ready to be plugged-in
Thank you. That really means a lot! :) I had a similar need about 6 months ago. A client wanted a lot of information displayed in a tooltip, and there was the possibility of ~30 tooltips per page. We couldn't load all of that data at one time, so I wrote the beginnings of this script in pure, custom JavaScript. Since then I've found a few other instances where I've wanted something similar, but didn't want to rewrite my custom code for another custom use. Then, in January, I met jQuery... I found the hover function... and at some point I realized my determine user intent script was really a modified version of hover, and I challenged myself to hack it and make my first plug-in. jQuery not only provided that crucial second-stage of inspiration, but it enabled me to write this plug-in in the most abstract/re-usable way... and then provide me with a mechanism for packaging it up and distributing it to the community. ...so empowering! I guess this is my long-winded way of saying I agree with you. jQuery has made coding JavaScript and building interactive sites/applications pleasurable. :) ...and I'm glad someone else is finding a use for my plug-in. Thanks again. Brian. On 3/28/07, Theo Welch [EMAIL PROTECTED] wrote: Great work, Brian! Thanks for sharing this really helpful plug-in! On a site I am building (NDA'd) I am currently using setTimeout() to delay drop-down menu appearance (and disappearance) to avoid that flicker problem so common with drop-downs. It actually works quite well. But hoverIntent creates an even more intuitive and slick UI. I find that insignificant interface details like this can really make a website a pleasurable (or awful) to use. And it is jQuery with flexible plugins like yours that make websites a pleasure to build. Cheers, -THEO- On Mar 28, 2007, at 2:25 AM, Brian Cherne wrote: I'm happy to announce that my first plug-in, hoverIntent, is ready for general use. http://cherne.net/brian/resources/jquery.hoverIntent.html hoverIntent is a function that attempts to determine the user's intent onMouseOver. It works like, was derived from and is interchangeable with jQuery's built-in hover. However, instead of immediately calling the onMouseOver function, hoverIntent tracks the user's mouse and waits until it slows down enough before making the call. hoverIntent r5 ... is $-friendly ... has configurable options ... has onMouseOut timeout option Thanks for all the feedback from before. I hope this is the first of many plug-ins. :) Brian. P.S. How does one get their plug-in linked to from the jQuery plug-ins page? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Collapsing table Columns?
You would need to hide every cell in the row, also I don't know if its fixed in jQuery but IE and Firefox differ in how to unhide the cell, one requires being set to block mode the other to table-cell or something, don't remember off the top of my head. On 3/29/07, Karl Swedberg [EMAIL PROTECTED] wrote: If it's the third column, you could also try this: $('td:nth-child(3)').hide() If you have ths in your table and need to hide them, too, you can do this: $('td:nth-child(3), th:nth-child(3)').hide() --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 29, 2007, at 12:36 PM, Alexandre Plennevaux wrote: Using the col element maybe? Otherwise, if it is the 3rd column you could do this: $(td+td+td).hide(); I dunno if that works, but it's the css way to address the 3rd column. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Baxter Sent: jeudi 29 mars 2007 16:28 To: discuss@jquery.com Subject: [jQuery] Collapsing table Columns? Any ideas how one could hide/show table columns, rather than rows? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.448 / Base de données virus: 268.18.20/737 - Date: 28/03/2007 16:23 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Binding to multiple items with one call
Thanks, perfect. I didn¹t see any examples of entering multiple items and trying to do a search through the list wasn¹t coming up with what I needed. On 3/29/07 9:49 AM, Karl Swedberg [EMAIL PROTECTED] wrote: I think you just have a couple extra single-quotes in there: $j('#person', '#assigned').blur(function() { sendok=true; alert(sendok);} ); the selector here is trying to get the #person element within the context of the #assigned element. if you want to get both, you need to enclose them in the same set of quotation marks like this: $j('#person, #assigned').blur(function() { sendok=true; alert(sendok);} ); --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 29, 2007, at 12:22 PM, Shelane Enos wrote: This doesn't seem to be working: bindBlur = function(){ $j('#person', '#assigned').blur(function() { sendok=true; alert(sendok);} ); } But this does: bindBlur = function(){ $j('#person').blur(function() { sendok=true; alert(sendok);} ); } Do I have to do them all individually or am I just putting those IDs in incorrectly? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jEditable: how to remove behaviour
On Mar 29, 2007, at 7:47 PM, Abel Tamayo wrote: Thanks very much, Mikka, will be trying it this evening. Youre welcome :) Also make sure that you are running latest version of plugin. Support for callbacks was added in previous version. -- Mika Tuupola http://www.appelsiini.net/~tuupola/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Collapsing table Columns?
Baxter schrieb: Any ideas how one could hide/show table columns, rather than rows? I've made something like this some days ago. Maybe you want to take a look: http://p.sohei.org/jquery-plugins/columnmanager It's just a demo page right now, as I haven't found the time to document it yet. Cheers, /rw ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Sortable list example has gone
Hi, There was one day on this list some nice example of reordering list (tree) using some new sorting algorithm in interface. Working example was at http://interface.eyecon.ro/demos/test_sort.html but now it's gone. I'm working now on a project where it will be very usefull to have such a functionality, is it stable or just test example. Anyone have a copy of it somewhere? Thanks in advance, Yoyo ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Sortable list example has gone
Is this what you are looking for? http://interface.eyecon.ro/demos/sort_lists.html David Dexter | brilliantlemming.com | Brentwood, CA | 310.414.0949 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Yoyo Sent: Thursday, March 29, 2007 11:16 AM To: discuss@jquery.com Subject: [jQuery] Sortable list example has gone Hi, There was one day on this list some nice example of reordering list (tree) using some new sorting algorithm in interface. Working example was at http://interface.eyecon.ro/demos/test_sort.html but now it's gone. I'm working now on a project where it will be very usefull to have such a functionality, is it stable or just test example. Anyone have a copy of it somewhere? Thanks in advance, Yoyo ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Collapsing table Columns?
On Mar 29, 2007, at 1:40 PM, Richard Thomas wrote: You would need to hide every cell in the row I don't know what you're getting at here. If you mean every cell in the *column*, then that is exactly what 'td:nth-child(n)' would get. But maybe I'm misunderstanding you. also I don't know if its fixed in jQuery but IE and Firefox differ in how to unhide the cell, one requires being set to block mode the other to table-cell or something, don't remember off the top of my head. This is only an issue with the animated show and hide methods. Just using .show() and .hide() isn't a problem. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Sortable list example has gone
Is this what you are looking for? http://interface.eyecon.ro/demos/sort_lists.html Not exacly. It was multilevel list (a tree) and you can reorder and sort its items at the same time. It was test example for new sorting algorigthm. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Can it be done using JQuery
It's sort of a novel concept, but I agree that it looks like it was implemented only to add some sort of 'wow' effect. It's not needed at all. IMO, the problem with it is, is that it doesn't give you any frame of reference for the movement. For example, if you were looking at a large map, and clicking would center you on the map (as in Google maps), then that would be cohesive and not as confusing; however, just blindly shuttling the user to some seemingly-arbitrary location on your page seems a bit haphazard to say the least. Also, it completely breaks navigation.. Did I go up? Down? Left? Right? Where is the previous content I was looking at, and how can I return there? If this *was* ported to jQuery, hopefully the history/remote plugin would be utilized so that navigation would remain. On 3/29/07, Josh Nathanson [EMAIL PROTECTED] wrote: I agree, I found myself scrolling around looking for other content. I've seen flash implementations that were similar but you could see all the pages by scrolling horizontally. This one, I don't see the point...just confuses people. -- Josh - Original Message - *From:* Andy Matthews [EMAIL PROTECTED] *To:* 'jQuery Discussion' discuss@jquery.com *Sent:* Thursday, March 29, 2007 6:06 AM *Subject:* Re: [jQuery] Can it be done using JQuery This site looks pretty cool, but that scrolling functionality TOTALLY causes both vert and hor scrollbars in IE7. Don't see a point to it... -- *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Kush Murod *Sent:* Thursday, March 29, 2007 1:05 AM *To:* jQuery Discussion *Subject:* Re: [jQuery] Can it be done using JQuery Smooth slide affect actually I know that interface offers scrollto which scrolls you smoothly to specified target - vertically Question is is it possible to scrollto target diagonally, has anyone already something similar in JQuery? --kush Erik Beeson wrote: What effect are you referring to? --Erik On 3/28/07, Kush Murod [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi guys, Saw this awesome site, great concept, written in prototype http://www.invisiblechildren.com/displaceMe/ Was just wondering if same idea can be accomplished using JQuery. -- Kush Murod, Web applications developer Sensory Networks [E] [EMAIL PROTECTED] [W] www.sensorynetworks.com [T] +61 2 8302 2745 [F] +61 2 9475 0316 [A] Level 6, 140 William Street East Sydney 2011 ___ jQuery mailing list [EMAIL PROTECTED]://jquery.com/discuss/ ___ jQuery mailing list [EMAIL PROTECTED]://jquery.com/discuss/ -- Kush Murod, Web applications developer Sensory Networks [E] [EMAIL PROTECTED] [W] www.sensorynetworks.com [T] +61 2 8302 2745 [F] +61 2 9475 0316 [A] Level 6, 140 William Street East Sydney 2011 -- ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Collapsing table Columns?
Sorry I don't know the xpath/selectors that well yet. I had problems with just the show and hide in the past, so I had to use custom code like the following toggleClasstr = 'block' // Supports DOM2 requires specific style if ( window.addEventListener != undefined ) { toggleClasstr = 'table-row'; } Looks like this was fixed in jquery which is nice I can get rid of my extra code. On 3/29/07, Karl Swedberg [EMAIL PROTECTED] wrote: On Mar 29, 2007, at 1:40 PM, Richard Thomas wrote: You would need to hide every cell in the row I don't know what you're getting at here. If you mean every cell in the *column*, then that is exactly what 'td:nth-child(n)' would get. But maybe I'm misunderstanding you. also I don't know if its fixed in jQuery but IE and Firefox differ in how to unhide the cell, one requires being set to block mode the other to table-cell or something, don't remember off the top of my head. This is only an issue with the animated show and hide methods. Just using .show() and .hide() isn't a problem. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Collapsing table Columns?
The only time this still acts up is if you have the element display:none; in a style sheet. However there is a ticket to fix this issue with a patch that works 99% of the time. -- Brandon Aaron On 3/29/07, Richard Thomas [EMAIL PROTECTED] wrote: Sorry I don't know the xpath/selectors that well yet. I had problems with just the show and hide in the past, so I had to use custom code like the following toggleClasstr = 'block' // Supports DOM2 requires specific style if ( window.addEventListener != undefined ) { toggleClasstr = 'table-row'; } Looks like this was fixed in jquery which is nice I can get rid of my extra code. On 3/29/07, Karl Swedberg [EMAIL PROTECTED] wrote: On Mar 29, 2007, at 1:40 PM, Richard Thomas wrote: You would need to hide every cell in the row I don't know what you're getting at here. If you mean every cell in the *column*, then that is exactly what 'td:nth-child(n)' would get. But maybe I'm misunderstanding you. also I don't know if its fixed in jQuery but IE and Firefox differ in how to unhide the cell, one requires being set to block mode the other to table-cell or something, don't remember off the top of my head. This is only an issue with the animated show and hide methods. Just using .show() and .hide() isn't a problem. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] nightly builds
What kind of problems are you having? I do know that there are some issues with fx in the nightlies but I don't know of any other issues. -- Brandon Aaron On 3/29/07, mmjaeger [EMAIL PROTECTED] wrote: anybody else experiencing problems with the nightly build downloads? -- View this message in context: http://www.nabble.com/nightly-builds-tf3488239.html#a9740412 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] nightly builds
I think he means with the builds being generated. I think it's having problems building the right builds, again. --John On 3/29/07, Brandon Aaron [EMAIL PROTECTED] wrote: What kind of problems are you having? I do know that there are some issues with fx in the nightlies but I don't know of any other issues. -- Brandon Aaron On 3/29/07, mmjaeger [EMAIL PROTECTED] wrote: anybody else experiencing problems with the nightly build downloads? -- View this message in context: http://www.nabble.com/nightly-builds-tf3488239.html#a9740412 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jEditable: how to remove behaviour
@Mika: I just tried your solution and it works like a charm. Keep up with the good work because your plugin is excellent; this is my first time using Ajax at all and it's been pretty straightforward even using a your plugin because it's easily customizable and solid. On 3/29/07, Mika Tuupola [EMAIL PROTECTED] wrote: On Mar 29, 2007, at 7:47 PM, Abel Tamayo wrote: Thanks very much, Mikka, will be trying it this evening. Youre welcome :) Also make sure that you are running latest version of plugin. Support for callbacks was added in previous version. -- Mika Tuupola http://www.appelsiini.net/~tuupola/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Known memory leaks?
On 29/03/2007, at 19:02, Brandon Aaron wrote: The ready hack for IE shouldn't be leaking but there is a patch to change it up a little to avoid a weird issue with iframes and refreshing the page. http://dev.jquery.com/ticket/1061 It shouldn't leak, but it does. And, although the leak is minimal, it should be avoided. Currently I'm working on an app which is going to be used 8 hours a day by office employees. That means there wil be a lot of page navigations, so, just 10 KB leaked in every page will lead to disaster. I'll submit a new patch if the version I'm working on gives better results. Bye. On 3/29/07, Choan Gálvez [EMAIL PROTECTED] wrote: On 28/03/2007, at 17:09, Markus Peter wrote: [...] We are currently trying to eliminate the memory leaks but are now running into a dead end. Same here. I'm currently investigating the ready hack for IE. As the `onreadystatechange` handler for the deferred script is defined as a closure, it seems as a candidate for leaking. Anyone? -- Choan Gálvez [EMAIL PROTECTED] http://choangalvez.nom.es/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Choan Gálvez [EMAIL PROTECTED] http://choangalvez.nom.es/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] nightly builds
I'm just unable to download them using IE7 - the links don't work for me. John Resig wrote: I think he means with the builds being generated. I think it's having problems building the right builds, again. --John On 3/29/07, Brandon Aaron [EMAIL PROTECTED] wrote: What kind of problems are you having? I do know that there are some issues with fx in the nightlies but I don't know of any other issues. -- Brandon Aaron On 3/29/07, mmjaeger [EMAIL PROTECTED] wrote: anybody else experiencing problems with the nightly build downloads? -- View this message in context: http://www.nabble.com/nightly-builds-tf3488239.html#a9740412 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/nightly-builds-tf3488239.html#a9740944 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] loading gif not animating until fadeIn completes in IE
Hello everyone, Just enjoying reading this list, there's a lot to learn about jQuery =] I've managed to create a background image blend effect thats triggered from a thumbnail gallery but I'm struggling with a problem on one of my loading gifs in IE, it appears as expected over the thumbnail but doesn't animate until the fadeOut starts. Are there some tricks to using animated gifs in IE? I already changed it to an image tag rather a div with the gif as a background but it still didn't really help. I snipped the code that it's a part of, you can see what (i think) is the relevant code: // a part of the click event on the form $(currentForm).append('img id=bg-loader src=loader.gif alt=# \/'); // swapped bg images on #img and faded it in then in the fadeIn callback function: $(#img).fadeOut( 0, function(){ $(#bg-loader).fadeOut(400, function(){ $(this).remove(); }); }); the css for bg-loader is: #bg-loader { display: block; background: #fff; padding: 29px; /* creates 74x74pixel square centred image */ opacity: 0.8; position: absolute; top: 0; left: 0; } If you know something that might help I'd love to hear from you, it's a small niggle but it's a niggle none the less =] Cheers, Rob ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] comet
Ok, I believe I've fixed it. It turns out I didn't need to print a null character; I replaced it with an empty string ($r-print()), the demo worked as expected in Firefox Opera. I assume IE still works as well, but I don't have a Windows box, so I can't say for sure. Again, this is mostly a server-side issue, but the example now works again. -g On Mar 29, 2007, at 3:42 AM, Glen Hinkle wrote: It seems that Opera can't handle a null character. In order to detect if the client has gone away, the server prints a null character to determine whether the connection is aborted: $r-print(\0); last if $r-connection-aborted; This isn't really a jquery problem, just an incompatibility between Opera my method of client detection. If you come up with another way to detect client abandonment, the jquery plugin should work fine. You could also just rely on a timeout if you don't think that many Opera users will be hitting your site/application. -g On Mar 26, 2007, at 1:04 AM, John Beppu wrote: Glen, Does this still work for Opera. It seems to work OK w/ Firefox, but I'm having a hard time getting it to work on Opera 9.10 for OSX. Even http://empireenterprises.com/_comet.html is not working as expected for me in Opera. It never seems to get into xmlhttp.readyState == 3 for some reason. On 1/29/07, Glen [EMAIL PROTECTED] wrote: There is still the issue of using the IE hack that gmail uses, covering the inconsistencies between the browsers, which I consider the hardest part. The server-side component is necessary, yes, but @ the most basic level, all that is needed is a scripted while loop with a sleep(1) in it. As it stands, I've just about got it covered. Still working with Opera IE to make sure I have all the angles covered. -g On Jan 29, 2007, at 3:22 AM, zaadjis wrote: http://chabotc.nl:2001/chat.html (IRC backend) http://lingr.com http://ajaxian.com/index.php?s=comet since comet involves server-side stuff, this really wouldn't be a jQuery plugin, more like a chat app using jetty, php, jQuery, etc. (for example) Glen-13 wrote: I would definitely be willing to provide a plugin, if someone out there has any experience with getting streaming data with IE. According to Alex Russel, IE requires usage of the ActiveXObject (htmlfile) call, which apparently is the IHTMLDocument2 object. With Firefox, streaming data is easy as pie. With IE, however, I can't seem to make it work; if anyone has a working example, please let me know. -g ~ [EMAIL PROTECTED] ie. On Jan 27, 2007, at 10:24 AM, Matt Stith wrote: not as far as I have heard, but i would be interested in anything that has, or maybe a Comet plugin? anyone willing? On 1/27/07, Glen [EMAIL PROTECTED] wrote: all, Are there any projects out there with the intent of providing comet functionality within jquery? -g ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/comet- tf3126886.html#a8685650 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Collapsing table Columns?
Hey, no problem, Richard. I hope I didn't seem too abrupt with my reply. By the way, :nth-child() is actually a CSS3 (pseudo-class) selector: http://www.w3.org/TR/css3-selectors/#nth-child-pseudo it'll be really cool when browsers start supporting these. In the meantime, we have jQuery. :) --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 29, 2007, at 2:52 PM, Richard Thomas wrote: Sorry I don't know the xpath/selectors that well yet. I had problems with just the show and hide in the past, so I had to use custom code like the following toggleClasstr = 'block' // Supports DOM2 requires specific style if ( window.addEventListener != undefined ) { toggleClasstr = 'table-row'; } Looks like this was fixed in jquery which is nice I can get rid of my extra code. On 3/29/07, Karl Swedberg [EMAIL PROTECTED] wrote: On Mar 29, 2007, at 1:40 PM, Richard Thomas wrote: You would need to hide every cell in the row I don't know what you're getting at here. If you mean every cell in the *column*, then that is exactly what 'td:nth-child(n)' would get. But maybe I'm misunderstanding you. also I don't know if its fixed in jQuery but IE and Firefox differ in how to unhide the cell, one requires being set to block mode the other to table-cell or something, don't remember off the top of my head. This is only an issue with the animated show and hide methods. Just using .show() and .hide() isn't a problem. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] loading gif not animating until fadeIn completes in IE
I would've thought having the gif as the div's background would be the way to go. Perhaps instead of appending the image onclick, you could have it there already with a z-index that hides it, then changed the z-index onclick. Robert O wrote: Hello everyone, Just enjoying reading this list, there's a lot to learn about jQuery =] I've managed to create a background image blend effect thats triggered from a thumbnail gallery but I'm struggling with a problem on one of my loading gifs in IE, it appears as expected over the thumbnail but doesn't animate until the fadeOut starts. Are there some tricks to using animated gifs in IE? I already changed it to an image tag rather a div with the gif as a background but it still didn't really help. I snipped the code that it's a part of, you can see what (i think) is the relevant code: // a part of the click event on the form $(currentForm).append(' loader.gif '); // swapped bg images on #img and faded it in then in the fadeIn callback function: $(#img).fadeOut( 0, function(){ $(#bg-loader).fadeOut(400, function(){ $(this).remove(); }); }); the css for bg-loader is: #bg-loader { display: block; background: #fff; padding: 29px; /* creates 74x74pixel square centred image */ opacity: 0.8; position: absolute; top: 0; left: 0; } If you know something that might help I'd love to hear from you, it's a small niggle but it's a niggle none the less =] Cheers, Rob ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/loading-gif-not-animating-until-fadeIn-completes-in-IE-tf3488506.html#a9742172 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] addons.mozilla.org uses jQuery!
Dunno if its old news, but i certainly didnt know that, thats pretty cool! On 3/23/07, Sebastian Busch [EMAIL PROTECTED] wrote: Hi there, I hope this is not old news: http://addons.mozilla.org uses jQuery! -- cu Sebastian ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] FW: addons.mozilla.org uses jQuery!
And it's not as surprising as you might think, especially when you remember that John Resig works for Mozilla (I believe). _ From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Thursday, March 29, 2007 4:06 PM To: 'jQuery Discussion' Subject: RE: [jQuery] addons.mozilla.org uses jQuery! Cool... Too bad it looks like they're only using it to determine if the document is ready. From addons.js: https://addons.mozilla.org/js/addons.js $(document).ready(ExpandListItem_init); $(document).ready(CollapseListItem_init); $(document).ready(ExpandAll_init); $(document).ready(CollapseAll_init); And also to run thickbox. _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt Stith Sent: Thursday, March 29, 2007 3:55 PM To: jQuery Discussion Subject: Re: [jQuery] addons.mozilla.org uses jQuery! Dunno if its old news, but i certainly didnt know that, thats pretty cool! On 3/23/07, Sebastian Busch [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi there, I hope this is not old news: http://addons.mozilla.org uses jQuery! -- cu Sebastian ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] addons.mozilla.org uses jQuery!
Cool... Too bad it looks like they're only using it to determine if the document is ready. From addons.js: https://addons.mozilla.org/js/addons.js $(document).ready(ExpandListItem_init); $(document).ready(CollapseListItem_init); $(document).ready(ExpandAll_init); $(document).ready(CollapseAll_init); And also to run thickbox. _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt Stith Sent: Thursday, March 29, 2007 3:55 PM To: jQuery Discussion Subject: Re: [jQuery] addons.mozilla.org uses jQuery! Dunno if its old news, but i certainly didnt know that, thats pretty cool! On 3/23/07, Sebastian Busch [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi there, I hope this is not old news: http://addons.mozilla.org uses jQuery! -- cu Sebastian ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] addons.mozilla.org uses jQuery!
Its used in those 4 functions too, even though thats about it. On 3/29/07, Andy Matthews [EMAIL PROTECTED] wrote: Cool... Too bad it looks like they're only using it to determine if the document is ready. From addons.js: https://addons.mozilla.org/js/addons.js $(document).ready(ExpandListItem_init); $(document).ready(CollapseListItem_init); $(document).ready(ExpandAll_init); $(document).ready(CollapseAll_init); And also to run thickbox. -- *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Matt Stith *Sent:* Thursday, March 29, 2007 3:55 PM *To:* jQuery Discussion *Subject:* Re: [jQuery] addons.mozilla.org uses jQuery! Dunno if its old news, but i certainly didnt know that, thats pretty cool! On 3/23/07, Sebastian Busch [EMAIL PROTECTED] wrote: Hi there, I hope this is not old news: http://addons.mozilla.org uses jQuery! -- cu Sebastian ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] loading gif not animating until fadeIn completes in IE
Do you have a sample page? - jake On 3/29/07, Yansky [EMAIL PROTECTED] wrote: I would've thought having the gif as the div's background would be the way to go. Perhaps instead of appending the image onclick, you could have it there already with a z-index that hides it, then changed the z-index onclick. Robert O wrote: Hello everyone, Just enjoying reading this list, there's a lot to learn about jQuery =] I've managed to create a background image blend effect thats triggered from a thumbnail gallery but I'm struggling with a problem on one of my loading gifs in IE, it appears as expected over the thumbnail but doesn't animate until the fadeOut starts. Are there some tricks to using animated gifs in IE? I already changed it to an image tag rather a div with the gif as a background but it still didn't really help. I snipped the code that it's a part of, you can see what (i think) is the relevant code: // a part of the click event on the form $(currentForm).append(' loader.gif '); // swapped bg images on #img and faded it in then in the fadeIn callback function: $(#img).fadeOut( 0, function(){ $(#bg-loader).fadeOut(400, function(){ $(this).remove(); }); }); the css for bg-loader is: #bg-loader { display: block; background: #fff; padding: 29px; /* creates 74x74pixel square centred image */ opacity: 0.8; position: absolute; top: 0; left: 0; } If you know something that might help I'd love to hear from you, it's a small niggle but it's a niggle none the less =] Cheers, Rob ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/loading-gif-not-animating-until-fadeIn-completes-in-IE-tf3488506.html#a9742172 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/