Re: [jQuery] New Plugin: modalContent
HI. I find the jQ src is compressed. could you tell me what tools can compress the js myself ? and in process of compress what could be problem. Thank. 2006/11/29, Brice Burgess [EMAIL PROTECTED]: Gavin M. Roy wrote: Putting my time where my mouth is in the Stop using thickbox! I've created a modalContent plugin. You can view it and a few examples at http://jquery.glyphix.com/ Gavin, I agree that there needs to be a good, solid, and fast modal window framework for jQ. I've run into many downsides with thickbox -- and would like to see these avoided (or fixed!) in any work that goes into the modal dialogs. For starters; i18n seems to be completely forgotten in these plugins (thickbox certainly included). Plugins which take strings as parameters (such as Kelvin Luck's datepicker rikrikrik's quickseach) make l10n efforts easy -- in my case I wrap a translation function around the strings in the template that is spitting out the $(document).ready() Javascript. Having to constantly mod plugins so that they take a variable string to fill out all those title, alt, and link text atrributes they inject is no fun! Secondly, when using inline content inside a modal window -- be sure to preserve the event bindings if you're cloning the elements! It's kind of a pain in the ass (for the SERVER!) to resort to using an ajax call to display the content in order to preserve a form's customized submit event. When the information is already available to display a form (such as fields looked up from a database and made available to the template) it is plain inefficient to make another request so that you can display the same form but preserve any binding associated with it. See; http://www.nabble.com/click-event-not-working---tf2612228.html#a7311920for clarity ;) Lastly, there's much work out there already done. Personally, I mucho enjoy Thickbox's method of disabling the page (overlay) and center focusing the modal window -- while still allowing you to scroll the page. This is slick -- and Klaus has further enhanced it (and reduced TB size to @ 8k) http://www.stilbuero.de/2006/11/06/a-smoother-thickbox-with-less-code/ I'm sure there's other issues out there to be addressed -- like using CSS to style the modal window's border ;) These are my pleas. Thanks, ~ Brice -- View this message in context: http://www.nabble.com/Stop-using-thickbox%21-tf2704990.html#a7594544 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- yours 齐永恒 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] .css works not correct for me
Hi, it's textAlign! Both should work. Christof ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] .css works not correct for me
yes , it is all test in a line. I want to know what to do this. what tools can do. Thanks 2006/11/29, Christof Donat [EMAIL PROTECTED]: Hi, it's textAlign! Both should work. Christof ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- yours 齐永恒 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] New Plugin: modalContent
Hi, I find the jQ src is compressed. could you tell me what tools can compress the js myself ? AFAIK John uses this: http://dean.edwards.name/packer/ You can also try http://sourceforge.net/projects/jsquash Very early stage of development, but in the most cases if works for me. JSquash is slower than Packer while compressing, but the result is usually a bit smaller. I have no measurements about the decompressing speed. I'd expect both to be similar. JSquash is planned to be a C++ library, but at the moment it simply compiles a small CLI-Programm. Kae Verens has a JS-Implementation of the same Algorithm at http://verens.com/demos/jsquash/jsquash.html but it is even slower than the C++ Version. and in process of compress what could be problem. Packer as well as JSQuash takes out the line breaks. JavaScript interpreters insert missing semicolons at line breaks automatically. If now these line breaks are gone and the semicolon is still missing, the compressed code will fail. Christof ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] iFxTransfer problem with IE
Hi all, i'm new to JQuery, could someone help me ? The only place this doesn't work is on my page :s What am I doing wrong ? Thansk a lot, nerique wrote: Hi, I meet a problem with the ifxtransfer plugin. It doesn't work with IE7. COuld you help ? el.TransferTo( { to: 'd_' + el.attr('id'), duration: 500, complete: function(to) { $(to).click(deleteFromSelectedCategories).Pulsate(100,2); } } ).Puff(400); This returns me an error in Jquery on es=e.style. Thanks for your time. Nerique -- View this message in context: http://www.nabble.com/iFxTransfer-problem-with-IE-tf2718478.html#a7595405 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Bug: display: none plus getComputedStyle in Safari
Hi all, A while ago I reported a bug, which I couldn't really narrow down, so it never went into a ticket: http://jquery.com/discuss/2006-August/010401/ The problem was that in line 1315: ret = document.defaultView.getComputedStyle(this,null).getPropertyValue(prop); document.defaultView.getComputedStyle(this,null) returns null causing an error in Safari obviously. I fixed it with the following: ret = document.defaultView.getComputedStyle(this,null) document.defaultView.getComputedStyle(this,null).getPropertyValue(prop); A few minutes ago I stumbled upon a post, which exactly explains that bug: http://snook.ca/archives/javascript/safari2_display-none_getcomputedstyle/ So I wonder if we should merge the fix into jQuery finally? -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Disable and re- Enable a button possible in IE?
As part of a client side validation library I disable and enable the submit element (generally a jQ object referencing a single button or input) depending on the state of form elements. This seems to work well in Mozilla. In IE(6) my routine disables the submit element, but never re-enables it! Here's my code -- --- disable: function() { if (!this.submit) return; this.submit[0].disabled = true; this.submit.fadeTo(1,0.5); }, enable: function() { if (!this.submit) return; this.submit[0].disabled = false; this.submit.fadeTo(1,1); }, --- I have tried using $.attr('disabled',true); and $.attr('disabled',false); -- these don't seem to work even in Moz (never disables the submit element on submit.attr('disabled',true)); I'm using jQ 1.0.2 rev 501. Any ideas? Thanks! ~ Brice ps - the validation library [OLDER VERSION] can be found; http://dev.iceburg.net/jquery/tableEditor/validate.js ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] OT: mail delivery
Christopher Jordan schrieb: Hi folks, I'm getting emails from the list sometimes very late. For instance, I just now received an email that was apparently sent by the poster at 5:30 this morning. What I'm trying to figure out is, if it's just me (and thus, likely a problem with my email server), or if anyone else is having this problem. It's rather annoying, as I often see responses to posts that I haven't actually gotten yet, and since some folks crop out all but the relevant piece they're responding to, I have to wait until I get the original post to see the whole picture. So... is this just happening to me? :o) Cheers, Chris I noticed the same. And, in addition to this, lately threads are broken into two pieces, .i.e. some of the replies are no longer sorted correctly into the correct thread and instead display as a new thread. Most probably this is a bug in Thunderbird? Does anyone know how good Thunderbird handles imap mailboxes with lots of mails? I have nearly the complete mailing list in my imap mailbox here (ca 15000 mails right now)... -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] OT: mail delivery
Does anyone know how good Thunderbird handles imap mailboxes with lots of mails? I have nearly the complete mailing list in my imap mailbox here (ca 15000 mails right now)... I am not sure, but i've read there is a bug in the latest thunderbird, which occurs when you delete items and then compress the folder, your maildb gets garbled, so don't compress untill 1.5.0.9 is out! -- Gilles ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Tweenbox Plugin
i want to use Tweenbox for dialogs. but im unable to build a custom close button are there any suggestions? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] unsubscribe STOP CANCEL REMOVE
can you please remove me from this mailing list. too much filling my inbox... thank you ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Change href of external links
Thanks guys, excellent solutions and points. I've gone with Dave's solution, as it allows some tag flexibility without adding much code. One question: is it not possible to combine .not arguments? Tried playing with the quotes, but it only seems to work if they are separated. .not([EMAIL PROTECTED]'internal.com/']) .not([EMAIL PROTECTED]'thickbox']) vs .not([EMAIL PROTECTED]'internal.com/'] || [EMAIL PROTECTED]'thickbox']) // or some variation Adam -- View this message in context: http://www.nabble.com/Change-href-of-external-links-tf2718387.html#a7597841 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jquery thickbox on sourceforge.net
don't know if you noticed but jquery thickbox are used on sf.net download pages... -- Aljosa Mohorovic http://www.revolucija.hr Ivana Lucica 5 1 Zagreb, Croatia +385 (0)1 616 8414 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jquery thickbox on sourceforge.net
hi all, I am a new hand. I use jQ first, I want to save form' values in pages and make values a list. this, many forms save will be lists, then ,put the lists data to my server . in this , i do not find the way hand the form. please tell me . thanks 2006/11/29, Aljosa Mohorovic [EMAIL PROTECTED]: don't know if you noticed but jquery thickbox are used on sf.net download pages... -- Aljosa Mohorovic http://www.revolucija.hr Ivana Lucica 5 1 Zagreb, Croatia +385 (0)1 616 8414 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- yours 齐永恒 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jquery thickbox on sourceforge.net
Very nice! Finally another quite great site powered by jquery! 2006/11/29, 齐永恒 [EMAIL PROTECTED]: hi all, I am a new hand. I use jQ first, I want to save form' values in pages and make values a list. this, many forms save will be lists, then ,put the lists data to my server . in this , i do not find the way hand the form. please tell me . thanks 2006/11/29, Aljosa Mohorovic [EMAIL PROTECTED]: don't know if you noticed but jquery thickbox are used on sf.net download pages... -- Aljosa Mohorovic http://www.revolucija.hr Ivana Lucica 5 1 Zagreb, Croatia +385 (0)1 616 8414 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- yours 齐永恒 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Paul Bakaus Web Developer Hildastr. 35 79102 Freiburg ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] New plugin: del.icio.us like text grow
Hmm...looks like I may have re-invented a little bit of the wheel! I guess the differences are mine can be controlled through CSS and the min-width setting (not sure if this was supposed to word in the expander example - but it didn't work in Safari). Cheers for pointing it out though! Erik Beeson wrote: This looks really nice, but how is it different from the one in Interface? http://interface.eyecon.ro/demos/expander.html --Erik On 11/28/06, Remy Sharp [EMAIL PROTECTED] wrote: Hi, I've written a plugin that matches the automatic text box growth functionality in the tag search on del.icio.us. http://leftlogic.com/info/articles/auto_grow_text It can read CSS styling to control the min and max width of the input box. Let me know what you think, or if you spot any bugs. Thanks, Remy Sharp. -- View this message in context: http://www.nabble.com/New-plugin%3A-del.icio.us-like-text-grow-tf2717821.html#a7577611 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/New-plugin%3A-del.icio.us-like-text-grow-tf2717821.html#a7598770 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] $(function(){...}); best practice?
Hi all, as my number of $(function(){...}); adds up, I wonder what the best practice here is? For example, is there a performance difference in the following, or is one way simply better than the other?: $(function(){ // some stuff }); $(function(){ // some stuff }); $(function(){ // some stuff }); or function init(){ // my functions }; $(function(){ init(); }); Adam -- View this message in context: http://www.nabble.com/%24%28function%28%29%7B...%7D%29--best-practice--tf2724966.html#a7598829 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Bug: display: none plus getComputedStyle in Safari
A while ago I reported a bug, which I couldn't really narrow down, so it never went into a ticket: http://jquery.com/discuss/2006-August/010401/ The problem was that in line 1315: ret = document.defaultView.getComputedStyle(this,null).getPropertyValue(prop); document.defaultView.getComputedStyle(this,null) returns null causing an error in Safari obviously. I fixed it with the following: ret = document.defaultView.getComputedStyle(this,null) document.defaultView.getComputedStyle(this,null).getPropertyValue(prop); A few minutes ago I stumbled upon a post, which exactly explains that bug: http://snook.ca/archives/javascript/safari2_display-none_getcomputedstyle/ I think the code has changed since August though. Notice that now it's in a swap that sets display:block. So if it was invisible it should now be visible and not return null. Unless visibility:hidden does it too, and in that case the swap should add visibility:visible to the swap list. I can't test on Safari so I've depended on the kindness of others in tracking down these sort of bugs. If the workaround is still needed I'd avoid two calls to getComputedStyle, which may be expensive. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jquery thickbox on sourceforge.net
On 29/11/06, Aljosa Mohorovic [EMAIL PROTECTED] wrote: don't know if you noticed but jquery thickbox are used on sf.net download pages... -- Aljosa Mohorovic http://www.revolucija.hr Ivana Lucica 5 1 Zagreb, Croatia +385 (0)1 616 8414 I've seen the reference to them in the page code but not seen any links that show a thickbox yet. Any example download pages? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Added mousewheel plugin to SVN
Gilles pointed out a recent Ajaxian[1] post on a mouse wheel extension for Prototype and my plugin was brought up in the comments. So, I went ahead and added it to jQuery Plugins SVN, since my site is lame. Just shoot the list an email if you find a bug. [1]: http://ajaxian.com/archives/prototype-event-extension-eventwheele -- Brandon Aaron ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] $(function(){...}); best practice?
On 11/29/06, agent2026 [EMAIL PROTECTED] wrote: For example, is there a performance difference in the following, or is one way simply better than the other?: Really it just depends on the application. I think you will loose a _tiny_ amount of performance by using lots of $(function(){}) instead of just one. I prefer to treat it like your second example but just make the $(function() {}) the init method. In other words do it like this: $(function() { // my functions }); -- Brandon Aaron ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jquery thickbox on sourceforge.net
don't know if you noticed but jquery thickbox are used on sf.net download pages... Nice catch! I see that it's also on the project pages, for example: http://sourceforge.net/projects/gaim/ Very cool :-) --John ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Disable and re- Enable a button possible in IE?
If you grab the latest version of jQuery (1.0.3) or event better from SVN, then you will be able to use .attr() to set the disabled attribute and you will be able to just use .css() to set the opacity - even in IE. Actually the opacity should work with 1.0.2. The issue of the button not being re-enabled ... I'm wondering if the enable method even gets fired. Does the button fade back to 100% opacity? I noticed you base which method runs (enable vs disable) on a check for a class name. I believe there might have been some issues with earlier releases of class names and IE and an upgrade might fix this issue as well. -- Brandon Aaron On 11/29/06, Brice Burgess [EMAIL PROTECTED] wrote: As part of a client side validation library I disable and enable the submit element (generally a jQ object referencing a single button or input) depending on the state of form elements. This seems to work well in Mozilla. In IE(6) my routine disables the submit element, but never re-enables it! Here's my code -- --- disable: function() { if (!this.submit) return; this.submit[0].disabled = true; this.submit.fadeTo(1,0.5); }, enable: function() { if (!this.submit) return; this.submit[0].disabled = false; this.submit.fadeTo(1,1); }, --- I have tried using $.attr('disabled',true); and $.attr('disabled',false); -- these don't seem to work even in Moz (never disables the submit element on submit.attr('disabled',true)); I'm using jQ 1.0.2 rev 501. Any ideas? Thanks! ~ Brice ps - the validation library [OLDER VERSION] can be found; http://dev.iceburg.net/jquery/tableEditor/validate.js ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] OT: mail delivery
It could easily be a combination of that and my mail server. I just noticed yesterday, that another list I'm on does the same thing. It's just not as active a list, so I hadn't noticed before yesterday. Hmm.. Oh well. :o/ Cheers, Chris John Resig wrote: Then again, it could be a combination of both. Who hosts the list? What's it's connection like? I host the list along with the web site - every once in a while I manage to kill the server, causing the list to freak out (I'm not a sysadmin). Things should be pretty stable for now (hopefully). --John ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] MyDayLite (to-do list) release. All files included.
I originally showed this 3-4 months ago in its very early stages. I've been working on it periodically and using it everyday since then and I think its finally to a stage where I can release it. I'm not a rockstar PHP or JS programmer... I'm sure there are areas that can be optimized so be nice :) jQuery has a great community and new plug-ins are coming out everyday and I want to contribute back. So below you'll find a zip file containing everything needed to install this app on your own server. Eventually I'll have a hosted solution. I hope one or more people can look at the code and see the plug-ins in use in an actual application and learn something from it. I know I learned a lot making this. Idea I wanted to create a better to-do list that I can use in my Google homepage, and wanted it to feel like a Google application. The design is highly based off Gmail. I also wanted it to feel natural and easy to use... mainly in the mark off feature as well as the quick priority and label assignment (see the help page or video for example). Features sort and prioritize to-dos to-dos and labels can be edited in line to-dos can be marked off much like you'd mark off something on a piece of paper. to-dos can be archived, and retrieved from the archive or deleted permanently. the same files can be used in a standalone page, or in your Google homepage (use the xml file included) quickly assign a priority or label via typing only create a new label and to-do at the same time (ex: new label name this is my to-do) tested in FF 2, Safari, and IE 7 Email me with any bugs, or code improvements you might have: litzinger at gmail dot com Online Demo: http://brianlitzinger.com/mydaylite/demo/ Video Demo: http://brianlitzinger.com/mydaylite/demo/video.mov Files: http://brianlitzinger.com/mydaylite/demo/MyDayLite.0.3.zip Google preview: http://brianlitzinger.com/mydaylite/demo/google_preview.gif Big thanks to Yehuda/wycats for helping me with random JS questions via AIM, and for taking my idea for the quick priority and label assignment (first few lines in the global.js file) and greatly improving/recreating the crappy code I originally had. -- View this message in context: http://www.nabble.com/MyDayLite-%28to-do-list%29-release.-All-files-included.-tf2725759.html#a7601164 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Bug: display: none plus getComputedStyle in Safari
Yeah, this has been fixed for a while now. The one case that isn't accounted for (yet) is having a parent element that has a display set to none - that kills computedStyle for all sub-elements. Unfortunately, the hack to work around that is too monstrous to comprehend. For now, it works fine in Safari for most cases, and that's what matters. --John On 11/29/06, Klaus Hartl [EMAIL PROTECTED] wrote: Hi all, A while ago I reported a bug, which I couldn't really narrow down, so it never went into a ticket: http://jquery.com/discuss/2006-August/010401/ The problem was that in line 1315: ret = document.defaultView.getComputedStyle(this,null).getPropertyValue(prop); document.defaultView.getComputedStyle(this,null) returns null causing an error in Safari obviously. I fixed it with the following: ret = document.defaultView.getComputedStyle(this,null) document.defaultView.getComputedStyle(this,null).getPropertyValue(prop); A few minutes ago I stumbled upon a post, which exactly explains that bug: http://snook.ca/archives/javascript/safari2_display-none_getcomputedstyle/ So I wonder if we should merge the fix into jQuery finally? -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] How can this not work? (Safari Problem)
Nobody? I really have no idea. The content I want to target is there if I do a html() for the whole 'greenboxcontent' container, but as soon as I want to target something in it, something that I previously loaded into it with HTML from another div ... nothing. And it's really just a Safari problem. Every other browser has zero problems with my code. Damn, I'm frustrated! :-( Fredi Subway wrote: Hi, Have a look at this code: function showfeedinfos(feedid){ $.get(getfeedinfo.php, {feedid: feedid}, function(feedinfo) { $(#f_item_+feedid+ .feedinfo).hide().html(feedinfo).slideDown(slow); deblur(); }); } On every browser I've tested, this works without any problems, just in Safari not, it just doesen't show anything. It actualy reaches the inside of the function, but for some reason it doesn't fill the div with the loaded content (the variable feedinfo has the content as an alert test revealed). This is the html where the extra info is loaded into (I just removed the rest of the info that's in there): div id=f_item_47 ... div class=feedinfo/div ... /div It's from my first jQuery project: http://www.osxcode.com/feedsearch/ Funny thing is that if I change the id=f_item_47 part to class=f_item_47 and the jQuery part to a class as well, than it works in Safari, but with a very big lag, so not really a solution I want to use. Any ideas? Fredi -- View this message in context: http://www.nabble.com/How-can-this-not-work--%28Safari-Problem%29-tf2721195.html#a7601884 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] MyDayLite (to-do list) release. All files included.
Cool little app. Thanks for sharing! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Litzinger Sent: Wednesday, November 29, 2006 7:22 AM To: discuss@jquery.com Subject: [jQuery] MyDayLite (to-do list) release. All files included. I originally showed this 3-4 months ago in its very early stages. I've been working on it periodically and using it everyday since then and I think its finally to a stage where I can release it. I'm not a rockstar PHP or JS programmer... I'm sure there are areas that can be optimized so be nice :) jQuery has a great community and new plug-ins are coming out everyday and I want to contribute back. So below you'll find a zip file containing everything needed to install this app on your own server. Eventually I'll have a hosted solution. I hope one or more people can look at the code and see the plug-ins in use in an actual application and learn something from it. I know I learned a lot making this. Idea I wanted to create a better to-do list that I can use in my Google homepage, and wanted it to feel like a Google application. The design is highly based off Gmail. I also wanted it to feel natural and easy to use... mainly in the mark off feature as well as the quick priority and label assignment (see the help page or video for example). Features sort and prioritize to-dos to-dos and labels can be edited in line to-dos can be marked off much like you'd mark off something on a piece of paper. to-dos can be archived, and retrieved from the archive or deleted permanently. the same files can be used in a standalone page, or in your Google homepage (use the xml file included) quickly assign a priority or label via typing only create a new label and to-do at the same time (ex: new label name this is my to-do) tested in FF 2, Safari, and IE 7 Email me with any bugs, or code improvements you might have: litzinger at gmail dot com Online Demo: http://brianlitzinger.com/mydaylite/demo/ Video Demo: http://brianlitzinger.com/mydaylite/demo/video.mov Files: http://brianlitzinger.com/mydaylite/demo/MyDayLite.0.3.zip Google preview: http://brianlitzinger.com/mydaylite/demo/google_preview.gif Big thanks to Yehuda/wycats for helping me with random JS questions via AIM, and for taking my idea for the quick priority and label assignment (first few lines in the global.js file) and greatly improving/recreating the crappy code I originally had. -- View this message in context: http://www.nabble.com/MyDayLite-%28to-do-list%29-release.-All-files-incl uded.-tf2725759.html#a7601164 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] How can this not work? (Safari Problem)
On 11/29/06, Subway [EMAIL PROTECTED] wrote: Nobody? I really have no idea. The content I want to target is there if I do a html() for the whole 'greenboxcontent' container, but as soon as I want to target something in it, something that I previously loaded into it with HTML from another div ... nothing. And it's really just a Safari problem. Every other browser has zero problems with my code. Damn, I'm frustrated! :-( Heh ... Safari gets me pretty ticked sometimes too. Have you tried to just simplify things and see if you can maybe narrow down the issue. Perhaps a simplified test case will shed some light on the issue and make it easier for the list to dig into. -- Brandon Aaron ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] TableEditor: Flexible In Place editing of HTML Tables (with tableSorter support)
Cool! Wish List: 1. Add new row at end of table 2. Insert row in middle of table 3. Move rows (well sorting should handle this one) 4. Delete rows Great if you could handle the above... then we have a full scale table editor plugin! Regards Ashutosh On 11/28/06, Brice Burgess [EMAIL PROTECTED] wrote: I've updated the in place table editing plugin available @ http://dev.iceburg.net/jquery/tableEditor/demo.php The changes include; A) Performance improvements and HTML element bugfixes B) th/column class inheritance on row cells (example added to plugin page C) Marking columns as no edit (example in apply class) D) Ability to restore row to its original values (example included). Besides the ugly as hell styling, I feel that this plugin is about done. I'd still like better integration to tableSorter (waiting on responses).. but am more concerned about the code quality methods used. If anyone could look over the code provide comments I'd be more than appreciative. It would be nice to add the tableEditor to the jQ plugin SVN repository if there's enough interest. Does anyone find this plugin useful? Thanks! ~ Brice ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] MyDayLite (to-do list) release. All files included.
Brian Litzinger wrote: I wanted to create a better to-do list that I can use in my Google homepage, and wanted it to feel like a Google application. The design is highly based off Gmail. I also wanted it to feel natural and easy to use... mainly in the mark off feature as well as the quick priority and label assignment (see the help page or video for example). Amazing stuff Brian, I gotta check this out on my server and do some code-digging... -- Suni. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] MyDayLite (to-do list) release. All files included.
A quick note / bugfix, if you will: Scandinavian characters were, for me at least, getting messed up when the labels were updated with ajax. This fixed by using utf8_decode. Change line 52 in processor.php to: $value = str_replace(amp;, , utf8_decode($_REQUEST['value'])); And I encourage everyone to try the app out. Took like 30 seconds to install/configure. -- Suni ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] TableEditor: Flexible In Place editing of HTML Tables (with tableSorter support)
On Tuesday, November 28, 2006 2:44 AM Brice Burgess said: Does anyone find this plugin useful? Yes definitely. Although I can't implement it just yet, I'm bookmarking it so I can come back later. Chris. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] MyDayLite (to-do list) release. All files included.
I tried to write med: to change priotity, doesn´t work for me (FF2 Windws XP) Spanish characters (ñ, á, é...) working nice :-) Very nice interface! -- David Arango, el único desarrollador con una orden de alejamiento de Jeffrey Zeldman Simplelogica.net, ahora con un 33,3% más de intromisión en listas de correo Cuando no hago otra cosa escribo en mildiez.net ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] MyDayLite (to-do list) release. All files included.
Hey Brian: One more problem. It seems that the zip-file is out of date (or sync) as everything is not working correctly. As if your php classes are newer than the view that is displayed. In the archive (closed to-dos) the links for reopening and deleting post data like open_todo=269 and delete_todo=268 although those have been commented out in the processor.php, so they only seem to work (js removes the html elements) but nothing really happens (refresh the page and you notice). Also, the archive doesn't have checkboxes for selecting several elements at once, like your online demo has. Todo class still has php functions for these (mark_todo, unmark_todo, open_todos, delete_todos). The app seems incredibly nice. Could you take a look and make sure the zip includes the working versions of the files? -- Suni ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] How can this not work? (Safari Problem)
$(#f_item_+feedid+ .feedinfo) .hide().html(feedinfo).slideDown(slow); Could this be related to the display:none bug in Safari we just discussed on another thread today? Try removing the .hide() from that chain and see what happens. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] MyDayLite (to-do list) release. All files included.
Could something like this be run as HTML wallpaper on a desktop as opposed to in a browser? Nice app... Rick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marshall Salinger Sent: Wednesday, November 29, 2006 11:14 AM To: 'jQuery Discussion.' Subject: Re: [jQuery] MyDayLite (to-do list) release. All files included. Cool little app. Thanks for sharing! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Litzinger Sent: Wednesday, November 29, 2006 7:22 AM To: discuss@jquery.com Subject: [jQuery] MyDayLite (to-do list) release. All files included. I originally showed this 3-4 months ago in its very early stages. I've been working on it periodically and using it everyday since then and I think its finally to a stage where I can release it. I'm not a rockstar PHP or JS programmer... I'm sure there are areas that can be optimized so be nice :) jQuery has a great community and new plug-ins are coming out everyday and I want to contribute back. So below you'll find a zip file containing everything needed to install this app on your own server. Eventually I'll have a hosted solution. I hope one or more people can look at the code and see the plug-ins in use in an actual application and learn something from it. I know I learned a lot making this. Idea I wanted to create a better to-do list that I can use in my Google homepage, and wanted it to feel like a Google application. The design is highly based off Gmail. I also wanted it to feel natural and easy to use... mainly in the mark off feature as well as the quick priority and label assignment (see the help page or video for example). Features sort and prioritize to-dos to-dos and labels can be edited in line to-dos can be marked off much like you'd mark off something on a piece of paper. to-dos can be archived, and retrieved from the archive or deleted permanently. the same files can be used in a standalone page, or in your Google homepage (use the xml file included) quickly assign a priority or label via typing only create a new label and to-do at the same time (ex: new label name this is my to-do) tested in FF 2, Safari, and IE 7 Email me with any bugs, or code improvements you might have: litzinger at gmail dot com Online Demo: http://brianlitzinger.com/mydaylite/demo/ Video Demo: http://brianlitzinger.com/mydaylite/demo/video.mov Files: http://brianlitzinger.com/mydaylite/demo/MyDayLite.0.3.zip Google preview: http://brianlitzinger.com/mydaylite/demo/google_preview.gif ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] How can this not work? (Safari Problem)
On 11/29/06, Subway [EMAIL PROTECTED] wrote: It doesn't even get that far. Just targeting anything inside the greencontent div already stops jQuery from going along the chain. For example: $(#f_item_+feedid).html(); Even this returns null. Does it give any errors? Although, usually Safari's error messages are less helpful than IE's. -- Brandon Aaron ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] How can this not work? (Safari Problem)
It doesn't even get that far. Just targeting anything inside the greencontent div already stops jQuery from going along the chain. For example: $(#f_item_+feedid).html(); Even this returns null. Fredi dave.methvin wrote: $(#f_item_+feedid+ .feedinfo) .hide().html(feedinfo).slideDown(slow); Could this be related to the display:none bug in Safari we just discussed on another thread today? Try removing the .hide() from that chain and see what happens. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/How-can-this-not-work--%28Safari-Problem%29-tf2721195.html#a7604000 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jQuery based MVC framework - Need Help.
Hi folks, as part of a current project I'm working on that will be using quite some Javascript I decided to create a lightweight ( 10kb!) MVC framework using jQuery in order to create a very clean and organized JS code base other people will be able to understand and work with as well. In a nutshell I want: * Models to encapsulate all functionality needed to for retrieving data asynchronously (JSON, XML) * Controller to interact with those Model classes and trigger requests on them and responding to callbacks and to ... * ... call functions of the View classes which will be the only ones allowed to manipulate the DOM, attach onclick events etc. I already have most of that working pretty nicely with an (unoptimized, uncompressed) code base size of 6,86kb. What I'm asking is if somebody who is more experienced with JS then me would be interested in reviewing and possibly helping on future enhancing the code. I could also need a person to ask general JS questions, especially when it comes to implementing some object-oriented techniques I usually use in php. The project is going to be licensed under the MIT license. The name of it is jCake as of right now (in honor of jQuery and the great CakePHP framework http://cakephp.org/ I'm using for my php work). So if anybody would like to give me his AIM/ICQ/E-Mail contact information I'll send out more information and the code to them. After that there will be public alpha release ; ). -- Felix -- http://www.thinkingphp.org http://www.fg-webdesign.de ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Checkbox: Selecting all Previous
I changed some of it and stopped using the checkboxes, but this would work with the checks too. I need the ID attribute for something else, soI used the REL attribute as proscribed. $(.checkbox).click( function() { currentOption = parseInt($(this).attr(rel)) + 1; $(#options div.checkbox).removeClass(checked); $(#options div.checkbox).lt(currentOption).addClass(checked); } ); I wish there was a way of getting the position in an array. QUESTION OR FEATURE SUGGESTION arrayPos() would return the index of the array. So if I had 4 links with a class of foo and I clicked the third one, $arrayPos(.foo, this) would return 3 (or 2 if it started at zero). Maybe I should put this in a seperate message? Glen ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] How can this not work? (Safari Problem)
Brandon Aaron wrote: On 11/29/06, Subway [EMAIL PROTECTED] wrote: Nobody? I really have no idea. The content I want to target is there if I do a html() for the whole 'greenboxcontent' container, but as soon as I want to target something in it, something that I previously loaded into it with HTML from another div ... nothing. And it's really just a Safari problem. Every other browser has zero problems with my code. Damn, I'm frustrated! :-( Heh ... Safari gets me pretty ticked sometimes too. Have you tried to just simplify things and see if you can maybe narrow down the issue. Perhaps a simplified test case will shed some light on the issue and make it easier for the list to dig into. -- Brandon Aaron Yeah, guess I really have to re-create that part in a simple form to narrow down the problem. Fredi Fredi -- View this message in context: http://www.nabble.com/How-can-this-not-work--%28Safari-Problem%29-tf2721195.html#a7604089 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] MyDayLite (to-do list) release. All files included.
I just re-uploaded the zip file and made sure it contained the same files as the demo. Thanks for the feedback everyone. I'll keep posting updates to the same page, and will eventually take care of the character encoding and string cleaning (as well as a hosted version with username/password signin). As for the desktop usage, I guess it could work with Windows Active Desktop, or when OS 10.5 comes out it should work as a dashboard widget (though I think someone released a widget to display a webpage but it doesn't work so well). -- View this message in context: http://www.nabble.com/MyDayLite-%28to-do-list%29-release.-All-files-included.-tf2725759.html#a7604261 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] MyDayLite (to-do list) release. All files included.
David, the priority uses the ! character, and the labels use the character. I originally had it as :, but I found that I actually used : in some of my to-do text for time of day and it borked the input. You can also change them to whatever you want (look in the global.js and label.class.php files). David Arango wrote: I tried to write med: to change priotity, doesn´t work for me (FF2 Windws XP) Spanish characters (ñ, á, é...) working nice :-) Very nice interface! -- David Arango, el único desarrollador con una orden de alejamiento de Jeffrey Zeldman Simplelogica.net, ahora con un 33,3% más de intromisión en listas de correo Cuando no hago otra cosa escribo en mildiez.net ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/MyDayLite-%28to-do-list%29-release.-All-files-included.-tf2725759.html#a7604333 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] New plugin: del.icio.us like text grow
Taking another tack, it's also just smaller, assuming this is all you need, which is always nice. I've got an application I wanted to add this effect into but have no use for any of the Interface modules, so the utility stuff that comes along is just cruft. On 11/29/06, Remy Sharp [EMAIL PROTECTED] wrote: Hmm...looks like I may have re-invented a little bit of the wheel! I guess the differences are mine can be controlled through CSS and the min-width setting (not sure if this was supposed to word in the expander example - but it didn't work in Safari). Cheers for pointing it out though! Erik Beeson wrote: This looks really nice, but how is it different from the one in Interface? http://interface.eyecon.ro/demos/expander.html --Erik On 11/28/06, Remy Sharp [EMAIL PROTECTED] wrote: Hi, I've written a plugin that matches the automatic text box growth functionality in the tag search on del.icio.us. http://leftlogic.com/info/articles/auto_grow_text It can read CSS styling to control the min and max width of the input box. Let me know what you think, or if you spot any bugs. Thanks, Remy Sharp. -- View this message in context: http://www.nabble.com/New-plugin%3A-del.icio.us-like-text-grow-tf2717821.html#a7577611 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/New-plugin%3A-del.icio.us-like-text-grow-tf2717821.html#a7598770 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] How can this not work? (Safari Problem)
Brandon Aaron wrote: On 11/29/06, Subway [EMAIL PROTECTED] wrote: It doesn't even get that far. Just targeting anything inside the greencontent div already stops jQuery from going along the chain. For example: $(#f_item_+feedid).html(); Even this returns null. Does it give any errors? Although, usually Safari's error messages are less helpful than IE's. -- Brandon Aaron Nothing. Not even a spinwheel, just nothing. (However, the spinwheel comes up pretty randomly because of something else I wasn't able to pin down) Fredi -- View this message in context: http://www.nabble.com/How-can-this-not-work--%28Safari-Problem%29-tf2721195.html#a7604392 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] MyDayLite (to-do list) release. All files included.
Brian - I'd like to potentially use and/or ship this with a Drupal module I've been working on which is a project management tool. Would you be willing to license your code under the GPL, such that I can include it within the Drupal CVS repository? -- Morbus Iff ( dare you overpower my stench of vil? ) Technical: http://www.oreillynet.com/pub/au/779 Culture: http://www.disobey.com/ and http://www.gamegrene.com/ icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] MyDayLite (to-do list) release. All files included.
Thanks for the feedback everyone. I'll keep posting updates to the same page, and will eventually take care of the character encoding and string cleaning (as well as a hosted version with username/password signin). If the todo is longer than a line, then editing it is fubar'd. -- Morbus Iff ( morbus is an authorizer reseller of fine maebari ) Technical: http://www.oreillynet.com/pub/au/779 Culture: http://www.disobey.com/ and http://www.gamegrene.com/ icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] MyDayLite (to-do list) release. All files included.
On Wednesday, November 29, 2006 7:22 AM Brian Litzinger said: I wanted to create a better to-do list that I can use in my Google homepage, and wanted it to feel like a Google application. The design is highly based off Gmail. I also wanted it to feel natural and easy to use... mainly in the mark off feature as well as the quick priority and label assignment (see the help page or video for example). Pretty cool Brian. Some comments. 1. I am able to click the priority text but nothing happens. Is something happening that I don't know about? 2. Why does the form at the top become disabled when I click any of the checkboxes in the list? 3. Your system for making new labels is convenient but it's not clear how to actually do it. I would suggest you put a small hint below the input box that indicates how to create a new label. 4. How do you cross out an item? Chris. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] beginner's problem
Hi there, my name is Christoph and I'm currently working on the open source software project 'Mapbender' (www.mapbender.org), a web mapping client. I'm trying to add some basic AJAX functions to the software. Currently I'm experimenting with JQuery. I'm experiencing difficulties with JQuery. Maybe it's just a beginner's fault. When I try to send a request via $.post(url, param, callback); JQuery returns no data to my callback function function(xml,status){alert(xml);alert(status);} and status is 'error'. 'url' is a link to a php-file on my webserver that just contains echo Test; and param is something like {name1:value1,name2:value2} I would expect to see Test being alerted, but instead I see a blank alert. Do I need to send special headers in my file? I dug a little deeper, and found the function 'httpSuccess'; I alerted the exception that is caught there and it says [Exception... Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status] nsresult: 0x80040111 (NS_ERROR_NOT_AVAILABLE) location: JS frame :: http:///jquery.js :: anonymous :: line 5952 data: no] can anyone make head or tails out of this? I'm kind of lost. Thanks in advance, Christoph ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] How can this not work? (Safari Problem)
Brandon Aaron wrote: Heh ... Safari gets me pretty ticked sometimes too. Have you tried to just simplify things and see if you can maybe narrow down the issue. Perhaps a simplified test case will shed some light on the issue and make it easier for the list to dig into. Ok, I've removed anything that isn't of importance to this problem: http://osxcode.com/feedsearch/index.test.php It still works in anythin except Safari. If you click on FEEDS and than on the [i] button, it normaly shows some extra information, not so in Safari. To test it further, I've added some alerts: function showfeedinfos(feedid){ if ($(#f_item_+feedid+ .feedinfo).html() == ''){ alert(#f_item_+feedid+ .feedinfo == ''); $.get(getfeedinfo.php, {feedid: feedid}, function(feedinfo){ $(#f_item_+feedid+ .feedinfo).hide().html(feedinfo).slideDown(slow); }); } else { alert(#f_item_+feedid+ .feedinfo != ''); alert($(#f_item_+feedid+ .feedinfo).html()); $(#f_item_+feedid+ .feedinfo).slideUp(slow, function(){ $(#f_item_+feedid+ .feedinfo).html(); }); } } Interestingly, Firefox goes into the if clause at the first [i] click and Safari choses the else part. Now don't ask me why. Fredi -- View this message in context: http://www.nabble.com/How-can-this-not-work--%28Safari-Problem%29-tf2721195.html#a7605094 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Checkbox: Selecting all Previous
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Glen Lipka Sent: Wednesday, November 29, 2006 9:52 AM To: jQuery Discussion. Subject: Re: [jQuery] Checkbox: Selecting all Previous QUESTION OR FEATURE SUGGESTION arrayPos() would return the index of the array. So if I had 4 links with a class of foo and I clicked the third one, $arrayPos(.foo, this) would return 3 (or 2 if it started at zero). Maybe I should put this in a seperate message? Glen -- Actually I was looking over the suggestion I made earlier, and noticed that I didn't need to figure out the array position like I had. Here's the modified code. $([EMAIL PROTECTED]).each(function (i) { $(this).bind(click,function () { $(this).siblings([EMAIL PROTECTED]).lt(i).each(function () { $(this).attr({checked: 'true'}); } ) } From the API docs: 'Additionally, the (each) function, when executed, is passed a single argument representing the position of the element in the matched set.' That's all we want, so by including the 'i' we remove the need for the id or any other attribute to discern where the object is in the array. Again, tested in FF2/Win only. I can see where arrayPos would be a good function tho, just not necessary in this case. -ALEX ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Bug: display: none plus getComputedStyle in Safari
John Resig schrieb: Yeah, this has been fixed for a while now. The one case that isn't accounted for (yet) is having a parent element that has a display set to none - that kills computedStyle for all sub-elements. Unfortunately, the hack to work around that is too monstrous to comprehend. For now, it works fine in Safari for most cases, and that's what matters. That is exactly the problem I have. So I will have to live with my patched version for Plazes? -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] TableSorter textExtractionCustom
thanks Mike, text or numeric value but I do not have it wrapped in a span element and using this doesn't work: .. textExtractionCustom: { 1: function(o) { return $('',o).val(); }, 2: function(o) { return $('',o).val(); } }, .. Mike Alsup wrote: How do I apply a regex function on that text? .. textExtractionCustom: { 1: function(o) { return $('span',o).val(); }, 2: function(o) { return $('span',o).val(); } }, Do you want the text of the element? $('span', o).text() ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery 1.1 API improvements (macros, events)
Andrea Ercolino schrieb: dave.methvin wrote: Then there is the classic ambiguity of .unload(). Does it call an onunload handler, or does it unbind all onload handlers? There is no doubt with .un(load) or .on(unload, fn) which are only a few characters longer. OK. But I don't think that on and un are better names than bind and unbind, the former are shorter but the latter mean exactly what they say, no explication necessary. I totally agree with that. I'd also like too see bind and unbind as replacement for click etc. in 1.1... -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Bug: display: none plus getComputedStyle in Safari
Is this patch generalized enough to add to the core? Just a thought... - Brian John Resig schrieb: Unfortunately, the hack to work around that is too monstrous to comprehend. For now, it works fine in Safari for most cases, and that's what matters. That is exactly the problem I have. So I will have to live with my patched version for Plazes? -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] How can this not work? (Safari Problem)
Brandon Aaron wrote: Have you tried to just simplify things and see if you can maybe narrow down the issue. Perhaps a simplified test case will shed some light on the issue and make it easier for the list to dig into. Ok, I removed all the effects as well, still no difference: http://osxcode.com/feedsearch/index.test3.php The whole HTML: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; head meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1 / titleOS X Code (r,s) - jMe - Feed Aggregator - OS X, Web 2.0 Programming/title link rel=stylesheet type=text/css href=defaultstyle.css / script type=text/javascript src=jquery.pack.js/script script type=text/javascript function showgreenpage(pagename){ if (pagename != currentpage){ $(#+currentpage+_page).html($(#greenboxcontent).html()); $(#greenboxcontent).html($(#+pagename+_page).html()); $(#+pagename+_page).html(); currentpage = pagename; generatetoollinks(); } } function generatetoollinks(){ var myoutput = ''; for(page in mypages) { if (currentpage == page){ var myclass = toollinksbg; var myaction = ; } else { var myclass = toollinksbgs; var myaction = ' onclick=showgreenpage(\''+page+'\'); '; } myoutput = myoutput+'div class='+myclass+' javascript:void(null); '+page+' /div'; } $(#toollinks).html(myoutput); } function showfeedinfos(feedid){ if ($(#f_item_+feedid+ .feedinfo).html() == ''){ $.get(getfeedinfo.php, {feedid: feedid}, function(feedinfo){ $(#f_item_+feedid+ .feedinfo).html(feedinfo); }); } else { $(#f_item_+feedid+ .feedinfo).html(); } } $(document).ready(function(){ mypages = new Object(); mypages[items] = Items; mypages[feeds] = Feed List; currentpage = items; generatetoollinks(); }); /script /head body div id=toollinks/div div id=greenbox div id=greenboxcontent original content /div /div div id=items_page class=hiddeninfo/div div id=feeds_page class=hiddeninfo div id=f_item_31 javascript:void(null); pics/infoicon.gif div class=feedinfo/div /div /div /body /html I have simple no idea why this isn't working ... and I really don't think I'm doing anything special, it just wont work. :-( Fredi -- View this message in context: http://www.nabble.com/How-can-this-not-work--%28Safari-Problem%29-tf2721195.html#a7606665 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Unsuscribe how to OT
Hi every: I need to unsuscribe this address from the list and start with my Gmail account, does anybody know how to do this? Cheers -- ReynierPM 5to Ing. Informática Maestro de poco, aprendiz de mucho ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Unsuscribe how to OT
From the headers of your email: List-Unsubscribe: http://jquery.com/mailman/listinfo/discuss_jquery.com, mailto:[EMAIL PROTECTED] -- Brandon Aaron On 11/29/06, Reynier Perez Mira [EMAIL PROTECTED] wrote: Hi every: I need to unsuscribe this address from the list and start with my Gmail account, does anybody know how to do this? Cheers -- ReynierPM 5to Ing. Informática Maestro de poco, aprendiz de mucho ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery based MVC framework - Need Help.
Hi Felix I'm not a js guru but I'd love to have a look and help a little if I can ... Olivvv Felix Geisendörfer wrote: Hi folks, as part of a current project I'm working on that will be using quite some Javascript I decided to create a lightweight ( 10kb!) MVC framework using jQuery in order to create a very clean and organized JS code base other people will be able to understand and work with as well. In a nutshell I want: * Models to encapsulate all functionality needed to for retrieving data asynchronously (JSON, XML) * Controller to interact with those Model classes and trigger requests on them and responding to callbacks and to ... * ... call functions of the View classes which will be the only ones allowed to manipulate the DOM, attach onclick events etc. I already have most of that working pretty nicely with an (unoptimized, uncompressed) code base size of 6,86kb. What I'm asking is if somebody who is more experienced with JS then me would be interested in reviewing and possibly helping on future enhancing the code. I could also need a person to ask general JS questions, especially when it comes to implementing some object-oriented techniques I usually use in php. The project is going to be licensed under the MIT license. The name of it is jCake as of right now (in honor of jQuery and the great CakePHP framework http://cakephp.org/ I'm using for my php work). So if anybody would like to give me his AIM/ICQ/E-Mail contact information I'll send out more information and the code to them. After that there will be public alpha release ; ). -- Felix -- http://www.thinkingphp.org http://www.fg-webdesign.de ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] beginner's problem
Hi Christoph, Could you post a bit of your code for us to look at? Also I assume you're using the latest jQuery version? Cheers, Chris ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jQuery enhancements
Hi folks, there are some tickets on the tracker that could use input from more then one or two readers. Would be nice to have some additional comments (good, bad, improvements, ideas etc.) on these: - http://jquery.com/dev/bugs/bug/448/ - http://jquery.com/dev/bugs/bug/445/ - http://jquery.com/dev/bugs/bug/444/ - http://jquery.com/dev/bugs/bug/447/ - http://jquery.com/dev/bugs/bug/379/ - http://jquery.com/dev/bugs/bug/399/ - http://jquery.com/dev/bugs/bug/437/ And two rather old ones: - http://jquery.com/dev/bugs/bug/134/ - http://jquery.com/dev/bugs/bug/137/ Would be a great help to have some more comments of some of those. -- Jörn Zaefferer http://bassistance.de ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery based MVC framework - Need Help.
Hi Felix, You may want to check out Steve Yen's TrimPath http://trimpath.com/ I have looked at the code and I don't recommend taking it without a very close look. I was able to break the TrimQuery code in unacceptable ways. I also don't think that putting a MVC in a regular browser page is necesarily a good idea. A combination of Ajax and server processing could be faster. On 11/29/06, Felix Geisendörfer [EMAIL PROTECTED] wrote: The project is going to be licensed under the MIT license. The name of it is jCake as of right now (in honor of jQuery and the great CakePHP framework I'm using for my php work). Since Cake is inspired by Ruby on Rails maybe jRails is more appropriate. I was thinking about a project called Harmony which would be JavaScirpt on Rails. That way the client and server would be using the same language and form validation both client and server could share code and stay DRY. After some investigation I decided that the Ajax/dumb client route was the better path in general and follows the web's client-server model better. Peter - http://peter.michaux.ca ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Interface Selectable.. function on deselect
I've just started using jQuery and the really nice Interface plugin and found that I was needing to call a function when something was de-selected using the Selectable plugin. As a quick hack, I've added a few lines to the iselect.js code, but would love to see this integrated properly into the core plugin. First, I changed the following code: this.f = { a : o.accept, o : o.opacity ? parseFloat(o.opacity) : false, sc : o.selectedclass ? o.selectedclass : false, hc : o.helperclass ? o.helperclass : false, onselect : o.onselect ? o.onselect : false }; to include an ondeselect option: this.f = { a : o.accept, o : o.opacity ? parseFloat(o.opacity) : false, sc : o.selectedclass ? o.selectedclass : false, hc : o.helperclass ? o.helperclass : false, onselect : o.onselect ? o.onselect : false, ondeselect : o.ondeselect ? o.ondeselect : false }; Then I modified this: if (jQuery.selectedone == true this.f.onselect) { this.f.onselect(jQuery.Selectserialize(jQuery.attr(this,'id'))); } to: if (jQuery.selectedone == true this.f.onselect) { this.f.onselect(jQuery.Selectserialize(jQuery.attr(this,'id'))); } else { this.f.ondeselect(); } After doing that, it's possible to call the selectable plugin with something like this: script type=text/javascript $('#content').Selectable( { accept: 'selectable', opacity : 0.2, selectedclass: 'selecteditem', helperclass: 'selecthelper', onselect: function(serial) { var selected = serial.hash; alert(selected); }, ondeselect: function() { alert(deselecting); } } ); /script and it works great! just thought others might be interested.. thanks again for a really awesome set of plugins! -jason -- jason schleifer ah-ni-may-tor | weirdo http://jonhandhisdog.com/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery based MVC framework - Need Help.
Since Cake is inspired by Ruby on Rails maybe jRails is more appropriate. It's going to be more like CakePHP then it is going to be like RoR, therefor jCake is going to stay. It's not like I don't think RoR deserves major credit, it definitely does. But there are things I do not like about it. One of them is it's folder layout, which is compared to CakePHP https://trac.cakephp.org/browser/trunk/cake/1.x.x.x, quite a mess. Other then the common folder layout and MVC pattern I do not plan on porting much else of CakePHP or RoR. The main reason for creating it is to organize and structure Javascript code. It's not about form validation, queries, associations or whatever. It's only about keeping things maintainable and light weight (only dynamically include the JS that is required for a certain page). Therefor something like TrimPath might be a good inspiration in general, but is a totally different kind of project. -- Felix Geisendörfer aka the_undefined http://www.thinkingphp.org http://www.fg-webdesign.de Peter Michaux wrote: Hi Felix, You may want to check out Steve Yen's TrimPath http://trimpath.com/ I have looked at the code and I don't recommend taking it without a very close look. I was able to break the TrimQuery code in unacceptable ways. I also don't think that putting a MVC in a regular browser page is necesarily a good idea. A combination of Ajax and server processing could be faster. On 11/29/06, Felix Geisendörfer [EMAIL PROTECTED] wrote: The project is going to be licensed under the MIT license. The name of it is jCake as of right now (in honor of jQuery and the great CakePHP framework I'm using for my php work). Since Cake is inspired by Ruby on Rails maybe jRails is more appropriate. I was thinking about a project called Harmony which would be JavaScirpt on Rails. That way the client and server would be using the same language and form validation both client and server could share code and stay DRY. After some investigation I decided that the Ajax/dumb client route was the better path in general and follows the web's client-server model better. Peter - http://peter.michaux.ca ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Tooltip plugin update
Hi folks, just wanted to let you know that I updated the tooltip plugin. A quite often requested feature, repositioning of the tooltip when at the right or bottom or borders, is now included. Details, demo and documentation can be found here: http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ Have fun. -- Jörn Zaefferer http://bassistance.de ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Tooltip plugin update
Brilliant, thank you Jorn. I use this plugin extensively. Regards, Chris ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Unsuscribe how to OT
Hi Reynier, To unsubscribe, either ... (a) go to the following URL: http://jquery.com/mailman/listinfo/discuss_jquery.com and fill out the form near the bottom of the page, or ... (b) send an email to [EMAIL PROTECTED] with unsubscribe in the subject It would be nice to have this information available at jquery.com/ discuss/ . I'd put it there myself, but it doesn't look like it's part of the wiki. _ Karl Swedberg www.englishrules.com www.learningjquery.com On Nov 29, 2006, at 3:03 PM, Reynier Perez Mira wrote: Hi every: I need to unsuscribe this address from the list and start with my Gmail account, does anybody know how to do this? Cheers -- ReynierPM 5to Ing. Informática Maestro de poco, aprendiz de mucho ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Tooltip plugin update
Looking really good Jörn... Regards, Matthew Delmarter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jörn Zaefferer Sent: Thursday, 30 November 2006 10:59 a.m. To: jQuery Discussion. Subject: [jQuery] Tooltip plugin update Hi folks, just wanted to let you know that I updated the tooltip plugin. A quite often requested feature, repositioning of the tooltip when at the right or bottom or borders, is now included. Details, demo and documentation can be found here: http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ Have fun. -- Jörn Zaefferer http://bassistance.de ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Change href of external links
One question: is it not possible to combine .not arguments? Tried playing with the quotes, but it only seems to work if they are separated. .not([EMAIL PROTECTED]'internal.com/']) .not([EMAIL PROTECTED]'thickbox']) Even better, you could use the :not() selector to do the job all at once, I forgot about it. $([EMAIL PROTECTED]:not([EMAIL PROTECTED]'internal.com/']):not(.thickbox)) .bind(click, function(){ return !window.open(this.href); }); This is the way jQuery optimization usually goes. You start with 10 lines of jQuery that would have been 20 lines of tedious DOM Javascript. By the time you are done it's down to two or three lines and it couldn't get any shorter unless it read your mind. :-) ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Disable and re- Enable a button possible in IE?
Brandon Aaron wrote: If you grab the latest version of jQuery (1.0.3) or event better from SVN, then you will be able to use .attr() to set the disabled attribute and you will be able to just use .css() to set the opacity - even in IE. Actually the opacity should work with 1.0.2. Brandon, I've pulled rev. 631 from jQuery-trunk and all seems well. I'm using $.attr() and $.css() as you mentioned. The new routine is; ... disable: function() { if (!this.submit || this.disabled == true) return; this.disabled = true; this.submit.attr('disabled', true).css('opacity',0.5); }, enable: function() { if (!this.submit || this.disabled == false) return; this.disabled = false; this.submit.attr('disabled', false).css('opacity',1); }, ... I'll be updating that to protect/disable a links using a bind/unbind return false; $.click() event. Anyway.. you were correct about the IE enable button not firing. It wasn't about classes... but instead about IE not getting the selected value from a select element. I'll post a separate thread about this topic. Thanks! ~ Brice ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Tooltip plugin update
Jörn Zaefferer wrote: Hi folks, just wanted to let you know that I updated the tooltip plugin. A quite often requested feature, repositioning of the tooltip when at the right or bottom or borders, is now included. Details, demo and documentation can be found here: http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ Have fun. Jörn Awesome work. One quirk I found in FF 2.0 (which may be unavoidable) is a flashing of the scrollbar @ demo page when displaying the tooltips in lower right corner. At 1280x1024 The demo page has no scroll bar. When I highlight over one of the bottom right tooltips, a scrollbar appears disappears once or twice before disappearing. This is kind of goofy/annoying. I wonder if it could be fixed by temporarily changing the OVERFLOW value on the BODY (or tooltip element) to HIDDEN and then restoring it upon the tooltip display? ~ Brice ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Getting the $.val() of a select element in IE
The $.val() function returns an empty value for a select element in IE if a value attribute is not specifically defined in each option. In Firefox the value (if not found as an attribute of an option) is extracted from the innerHTML/text of the element. Why this doesn't happen in IE is beyond me? Here's the code; --- script type=text/javascript $().ready(function() { alert($('select').val()); $('select').change(function() { alert($(this).val()); }); }); /script select optiona/option option SELECTEDb/option optionc/option /select --- FF will alert b on load, and on changing the select, will alert a,b, or c depending on what has been selected. IE alerts on load, and continues to do so on change. NOW -- If I change the select to read; select option value=a/ option SELECTED value=b/ option value=c/ /select It works (alerts correctly), but the select does not display the values in the drop down menu -- so I must use select option value=aa/option option SELECTED value=bb/option option value=cc/option /select Which seems awfully redundant.. but is perhaps the W3C standard? Is this the only way to go? I still think it is strange that $.val() returns the value in FF but not in IE... Thanks! ~ Brice ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Getting the $.val() of a select element in IE
The $.val() function returns an empty value for a select element in IE if a value attribute is not specifically defined in each option. In Firefox the value (if not found as an attribute of an option) is extracted from the innerHTML/text of the element. Why this doesn't happen in IE is beyond me? Here's the code; --- script type=text/javascript $().ready(function() { alert($('select').val()); $('select').change(function() { alert($(this).val()); }); }); /script select optiona/option option SELECTEDb/option optionc/option /select --- FF will alert b on load, and on changing the select, will alert a,b, or c depending on what has been selected. IE alerts on load, and continues to do so on change. NOW -- If I change the select to read; select option value=a/ option SELECTED value=b/ option value=c/ /select It works (alerts correctly), but the select does not display the values in the drop down menu -- so I must use select option value=aa/option option SELECTED value=bb/option option value=cc/option /select Which seems awfully redundant.. but is perhaps the W3C standard? Is this the only way to go? I still think it is strange that $.val() returns the value in FF but not in IE... Thanks! ~ Brice ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Getting the $.val() of a select element in IE
This has already been logged as bug #440 ( http://jquery.com/dev/bugs/bug/440/) On 11/29/06, Brice Burgess [EMAIL PROTECTED] wrote: The $.val() function returns an empty value for a select element in IE if a value attribute is not specifically defined in each option. In Firefox the value (if not found as an attribute of an option) is extracted from the innerHTML/text of the element. Why this doesn't happen in IE is beyond me? Here's the code; --- script type=text/javascript $().ready(function() { alert($('select').val()); $('select').change(function() { alert($(this).val()); }); }); /script select optiona/option option SELECTEDb/option optionc/option /select --- FF will alert b on load, and on changing the select, will alert a,b, or c depending on what has been selected. IE alerts on load, and continues to do so on change. NOW -- If I change the select to read; select option value=a/ option SELECTED value=b/ option value=c/ /select It works (alerts correctly), but the select does not display the values in the drop down menu -- so I must use select option value=aa/option option SELECTED value=bb/option option value=cc/option /select Which seems awfully redundant.. but is perhaps the W3C standard? Is this the only way to go? I still think it is strange that $.val() returns the value in FF but not in IE... Thanks! ~ Brice ___ 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/
Re: [jQuery] How can this not work? (Safari Problem)
Subway wrote: My first jQuery project: http://www.osxcode.com/feedsearch/ Ok, I kinda found a solution ... ok, better call it a hack. It's a very small hack, but that doesn't change the fact that I don't really like it. This is what I added before I target the content that I insert into the 'greencontent' div: $(#greenboxcontent).html($(#greenboxcontent).html()); Is there a better way to do this? And well, I guess I better add a browser check to only do this with Safari. ;-) Fredi -- View this message in context: http://www.nabble.com/How-can-this-not-work--%28Safari-Problem%29-tf2721195.html#a7610427 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] beginner's problem
Sounds to me like your using absolute URLs in your AJAX requests. If your trying to call http://localhost/something.php, just type 'something.php' as the url. Firefox doesnt like anything starting with http:// . On 11/29/06, Christoph Baudson [EMAIL PROTECTED] wrote: Hi there, my name is Christoph and I'm currently working on the open source software project 'Mapbender' (www.mapbender.org), a web mapping client. I'm trying to add some basic AJAX functions to the software. Currently I'm experimenting with JQuery. I'm experiencing difficulties with JQuery. Maybe it's just a beginner's fault. When I try to send a request via $.post(url, param, callback); JQuery returns no data to my callback function function(xml,status){alert(xml);alert(status);} and status is 'error'. 'url' is a link to a php-file on my webserver that just contains echo Test; and param is something like {name1:value1,name2:value2} I would expect to see Test being alerted, but instead I see a blank alert. Do I need to send special headers in my file? I dug a little deeper, and found the function 'httpSuccess'; I alerted the exception that is caught there and it says [Exception... Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status] nsresult: 0x80040111 (NS_ERROR_NOT_AVAILABLE) location: JS frame :: http:///jquery.js :: anonymous :: line 5952 data: no] can anyone make head or tails out of this? I'm kind of lost. Thanks in advance, Christoph ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] MyDayLite (to-do list) release. All files included.
Hi Brian great little app, im finding it very usefull, thanks, just a couple of suggestions 1 - rounded corners like gmail would be nice 2 - the ability to add a few more fields ie. due-date,show date created etc.. would be handy 3 - keyboard shortcut to go to the input field would be good (so you dont have to use your mouse to click the field first ( or tab 4 times)) Cheers Justin -- email: [EMAIL PROTECTED] jabber: [EMAIL PROTECTED] gtalk: [EMAIL PROTECTED] msn: [EMAIL PROTECTED] yahoo im: justinjameskelly icq: 202893989 On 11/30/06, Brian Litzinger [EMAIL PROTECTED] wrote: I originally showed this 3-4 months ago in its very early stages. I've been working on it periodically and using it everyday since then and I think its finally to a stage where I can release it. I'm not a rockstar PHP or JS programmer... I'm sure there are areas that can be optimized so be nice :) jQuery has a great community and new plug-ins are coming out everyday and I want to contribute back. So below you'll find a zip file containing everything needed to install this app on your own server. Eventually I'll have a hosted solution. I hope one or more people can look at the code and see the plug-ins in use in an actual application and learn something from it. I know I learned a lot making this. Idea I wanted to create a better to-do list that I can use in my Google homepage, and wanted it to feel like a Google application. The design is highly based off Gmail. I also wanted it to feel natural and easy to use... mainly in the mark off feature as well as the quick priority and label assignment (see the help page or video for example). Features sort and prioritize to-dos to-dos and labels can be edited in line to-dos can be marked off much like you'd mark off something on a piece of paper. to-dos can be archived, and retrieved from the archive or deleted permanently. the same files can be used in a standalone page, or in your Google homepage (use the xml file included) quickly assign a priority or label via typing only create a new label and to-do at the same time (ex: new label name this is my to-do) tested in FF 2, Safari, and IE 7 Email me with any bugs, or code improvements you might have: litzinger at gmail dot com Online Demo: http://brianlitzinger.com/mydaylite/demo/ Video Demo: http://brianlitzinger.com/mydaylite/demo/video.mov Files: http://brianlitzinger.com/mydaylite/demo/MyDayLite.0.3.zip Google preview: http://brianlitzinger.com/mydaylite/demo/google_preview.gif Big thanks to Yehuda/wycats for helping me with random JS questions via AIM, and for taking my idea for the quick priority and label assignment (first few lines in the global.js file) and greatly improving/recreating the crappy code I originally had. -- View this message in context: http://www.nabble.com/MyDayLite-%28to-do-list%29-release.-All-files-included.-tf2725759.html#a7601164 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] Getting the $.val() of a select element in IE
Aaron Heimlich wrote: This has already been logged as bug #440 (http://jquery.com/dev/bugs/bug/440/) Aaron, Thanks for the response. I see that it's flagged as wontfix -- but have to disagree with the reason. Given as consider this; select id=combo name=combo option value=Please select.../option option value=22/option option value=33/option /select $('#combo').val(); While that's a typical case.. I've come across lots of HTML without the value= options, or even HTML like; select id=combo name=combo option value=Please select.../option option/option !-- as spacer -- option value=22/option option value=33/option /select - The *Bottom Line* is that IE submits a value of b for combo if the following select is left untouched. I've included the HTML/Form for your testing pleasure ;) htmlbody form action= method=GET select name=s optiona/option option SELECTEDb/option optionc/option /select input type=submit /form /body/html I think that jQuery's .val() should always reflect the value that gets SUBMITTED. What do you guys think? Thanks! ~ Brice ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Lite build not working for plugins?
Anybody have the lite build working for plugins? When I include plugins in my lite build the javadocs are not stripped (but they are from core). The min and pack builds seem to work just fine. lite.js looks like it should work but it doesn't (for me). That may be the newline issue we had before. There may be one or more plugin files that contain windows-based newline characters which make the min build fail (docs too). I fixed the regEx in lite.js to account for this. It's working now. Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Getting the $.val() of a select element in IE
The *Bottom Line* is that IE submits a value of b for combo if the following select is left untouched. I've included the HTML/Form for your testing pleasure ;) Yes, that's true. But IE offers no way for javascript to distinguish between a true empty string value and a missing value attribute (that I know of). I think that jQuery's .val() should always reflect the value that gets SUBMITTED. What do you guys think? Yes, of course. We just haven't solved this one yet. I took a look at the dojo source earlier today and they don't account for this situation either. Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Getting the $.val() of a select element in IE
Mike Alsup wrote: Yes, of course. We just haven't solved this one yet. I took a look at the dojo source earlier today and they don't account for this situation either. Mike off the top I would suggest seeing if the value attribute exists on the selectedIndex option. If it exists, use this value. If not, use the innerHTML of the option (or empty string if there is none) ? Perhaps this is too much overhead? ~ brice ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Getting the $.val() of a select element in IE
Brice Burgess wrote: Mike Alsup wrote: Yes, of course. We just haven't solved this one yet. I took a look at the dojo source earlier today and they don't account for this situation either. Mike off the top I would suggest seeing if the value attribute exists on the selectedIndex option. If it exists, use this value. If not, use the innerHTML of the option (or empty string if there is none) ? Perhaps this is too much overhead? ~ brice Upon looking into the source I see that all $.val() does is provide a macro to the element in questions .value -- and doesn't do any sniffing/smart work. So perhaps providing a $.sval() function to match the value of a select may be in order (and it's probably in the forms plugin already... ;)) ~ Brice ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] unsubscribe STOP CANCEL REMOVE
http://jquery.com/discuss/ On 11/29/06, Emrys Roberts [EMAIL PROTECTED] wrote: can you please remove me from this mailing list. too much filling my inbox... thank you ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Getting the $.val() of a select element in IE
off the top I would suggest seeing if the value attribute exists on the selectedIndex option. If it exists, use this value. If not, use the innerHTML of the option (or empty string if there is none) ? Perhaps this is too much overhead? Yes, that's a good thought but IE is too slippery. getAttribute(..), val(), .value, et al, all return identical values whether the attribute is missing or it has an empty string. And the value attribute for an option always exists whether or not it appears in the markup. defaultValue doesn't help either. (and it's probably in the forms plugin already... ;)) Nope, but it will be when we solve this! Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] How can this not work? (Safari Problem)
On 11/29/06, Subway [EMAIL PROTECTED] wrote: Subway wrote: My first jQuery project: http://www.osxcode.com/feedsearch/ Ok, I kinda found a solution ... ok, better call it a hack. It's a very small hack, but that doesn't change the fact that I don't really like it. This is what I added before I target the content that I insert into the 'greencontent' div: $(#greenboxcontent).html($(#greenboxcontent).html()); Is there a better way to do this? And well, I guess I better add a browser check to only do this with Safari. ;-) That is interesting. Sounds like a timing issue ... like the node isn't actually there on the first call. That is why using classes work ... b/c it takes time before it finds the node. I hope I can find some time to take a look at this myself. -- Brandon Aaron ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Getting the $.val() of a select element in IE
... IE is too slippery. getAttribute(..), Hold the phone. I think I've got a fix for this... ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Getting the $.val() of a select element in IE
On 11/29/06, Mike Alsup [EMAIL PROTECTED] wrote: Yes, that's a good thought but IE is too slippery. getAttribute(..), val(), .value, et al, all return identical values whether the attribute is missing or it has an empty string. And the value attribute for an option always exists whether or not it appears in the markup. defaultValue doesn't help either. How about something like this[1]: var selectBox = document.getElementById('selectBox'); var selectedOption = selectBox.options[selectBox.selectedIndex]; var hasValueAttr = selectedOption.attributes['value'].specified; [1] See the last section of http://www.quirksmode.org/dom/tests/attributes.html -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Unsuscribe how to OT
Thank you, Karl! I was trying to figure this out today as well. I just needed to switch my registered email with the listserv.I second putting 'unsubscribe' info on the /discuss/ page. Particularly, a link to http://jquery.com/mailman/listinfo/discuss_jquery.com-TonyFrom: [EMAIL PROTECTED]: Wed, 29 Nov 2006 17:13:41 -0500To: [EMAIL PROTECTED]: Re: [jQuery] Unsuscribe how to OTHi Reynier,To unsubscribe, either ...(a) go to the following URL: http://jquery.com/mailman/listinfo/discuss_jquery.com and fill out the form near the bottom of the page, or ...(b) send an email to [EMAIL PROTECTED] with unsubscribe in the subjectIt would be nice to have this information available at jquery.com/discuss/ . I'd put it there myself, but it doesn't look like it's part of the wiki. _Karl Swedbergwww.englishrules.comwww.learningjquery.com On Nov 29, 2006, at 3:03 PM, Reynier Perez Mira wrote:Hi every:I need to unsuscribe this address from the list and start with my Gmail account, does anybody know how to do this?Cheers--ReynierPM5to Ing. InformáticaMaestro de poco, aprendiz de mucho___jQuery mailing [EMAIL PROTECTED]://jquery.com/discuss/ _ Use Messenger to talk to your IM friends, even those on Yahoo! http://ideas.live.com/programpage.aspx?versionId=7adb59de-a857-45ba-81cc-685ee3e858fe___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Getting the $.val() of a select element in IE
Mike Alsup wrote: Hold the phone. I think I've got a fix for this... Sweet! This will potentially solve my latest nightmare dealing with quote escaping. I convert some plain text into a defined select box with the text showing showing up as the selected option. This was fine until I had to incorporate the value attribute (for IE) and thus quote escaping . Cosider this code; !-- the predefined select -- select style=display: none; id=s1 option value=ABCABC/option option value=DEFDEF/option option value=wi#039;thquot;quamp;amp;swi'thqus/option /select !-- The Cell -- tdwi'thqus/td $('td').each(function() { var select = $('#s1').clone(); select.removeAttr('id'); select.val($(this).html()).show(); // set value of select, unhide $(this).html('').append(select); // replace cell with select }); What happens is the cell gets replaced with the select element, but { ABC } is shown as the selected value instead of { wi'thqus } .. now if only I were able to use optionwi'thqus/option and have $.val() retrieve this! :) ~ Brice ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Unsuscribe how to OT
Of course, like the only page on the site thats not a wiki -_- On 11/29/06, Anthony Rasmussen [EMAIL PROTECTED] wrote: Thank you, Karl! I was trying to figure this out today as well. I just needed to switch my registered email with the listserv. I second putting 'unsubscribe' info on the /discuss/ page. Particularly, a link to http://jquery.com/mailman/listinfo/discuss_jquery.com -Tony -- From: [EMAIL PROTECTED] Date: Wed, 29 Nov 2006 17:13:41 -0500 To: discuss@jquery.com Subject: Re: [jQuery] Unsuscribe how to OT Hi Reynier, To unsubscribe, either ... (a) go to the following URL: http://jquery.com/mailman/listinfo/discuss_jquery.com and fill out the form near the bottom of the page, or ... (b) send an email to [EMAIL PROTECTED] with unsubscribe in the subject It would be nice to have this information available at jquery.com/discuss/. I'd put it there myself, but it doesn't look like it's part of the wiki. _ Karl Swedberg www.englishrules.com www.learningjquery.com On Nov 29, 2006, at 3:03 PM, Reynier Perez Mira wrote: Hi every: I need to unsuscribe this address from the list and start with my Gmail account, does anybody know how to do this? Cheers -- ReynierPM 5to Ing. Informática Maestro de poco, aprendiz de mucho ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Use Messenger to talk to your IM friends, even those on Yahoo! Talk now!http://ideas.live.com/programpage.aspx?versionId=7adb59de-a857-45ba-81cc-685ee3e858fe ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Getting the $.val() of a select element in IE
var hasValueAttr = selectedOption.attributes['value'].specified; Yup, that's the one that did it. This is fixed now in the form plugin. Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery enhancements
Jörn Zaefferer wrote: Would be a great help to have some more comments of some of those. Homework done. :-) -- View this message in context: http://www.nabble.com/jQuery-enhancements-tf2727722.html#a7612654 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Getting the $.val() of a select element in IE
Considering the recent discussion about removing the macro functions, perhaps it would be reasonalbe to turn val() into a smart function, and to leave straight .value access through .attr(value). Blair On 11/30/06, Brice Burgess [EMAIL PROTECTED] wrote: Brice Burgess wrote: Mike Alsup wrote: Yes, of course. We just haven't solved this one yet. I took a look at the dojo source earlier today and they don't account for this situation either. Mike off the top I would suggest seeing if the value attribute exists on the selectedIndex option. If it exists, use this value. If not, use the innerHTML of the option (or empty string if there is none) ? Perhaps this is too much overhead? ~ brice Upon looking into the source I see that all $.val() does is provide a macro to the element in questions .value -- and doesn't do any sniffing/smart work. So perhaps providing a $.sval() function to match the value of a select may be in order (and it's probably in the forms plugin already... ;)) ~ Brice ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Getting the $.val() of a select element in IE
On 11/29/06, Blair McKenzie [EMAIL PROTECTED] wrote: perhaps it would be reasonalbe to turn val() into a smart function, and to leave straight .value access through .attr(value). Except that all of the smartness it would need is already in the Forms plugin. -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] executing a function thickbox closes
Hey all, I am trying to execute a function when thickbox gets closed. using the code below I can get the alert box to run: $(#TB_closeWindowButton).click( function(){ alert('d'); TB_remove(); }); but if I use: function TB_show(caption, url, imageGroup, fn) -- added fn $(#TB_closeWindowButton).click( function(){ fn; TB_remove(); }) TB_show(null,../photo/?id=+?=$_GET['id'];?+TB_iframe=trueheight=200width=600,false,alert('h')); I have no luck, thanks. -- View this message in context: http://www.nabble.com/executing-a-function-thickbox-closes-tf2729551.html#a7613285 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Klaus's (disappearing) tabs
Hello folks, I've been using Klaus's tabs plugin to separate the main sections of an editor for an e-learning application - and until I tried to improve things today, it worked brilliantly. When the plugin worked, it was within a two section frame - one for a tree view of the lesson and the other for the editor. To avoid the need for a frame, I merged the two frame contents into a single page and that's when my problem began. I now find that the tabs no longer work properly - their respective contents are stacked on top of each other down the containing div I'd really appreciate some help if possible to recapture the tabs. If you visit the test site (below), click on any of the tree links (e.g. Meet Harry) to view my problem in the RHS div. The page can be viewed at: http://temporarius.massey.ac.nz/admin/ramosus_div.asp?id=treemappblID=8 The tab contents are loaded via this function: function editThisNode(nodeID, nodeorder, pblID, bFullView, bNodeDetail, sorder, origin, pagetypeID) { $.get(scripts/ajax_ramosus_editor.asp?id=8nodeID= + nodeID + nodeorder= + nodeorder + pblID= + pblID + bFullView= + bFullView + bNodeDetail= + bNodeDetail + origin= + origin + sorder= + sorder + pagetypeID= + pagetypeID, function(responseText){$(div#editorbox).html(responseText);}); $('div#editor').tabs({fxFade: true, fxSpeed: 'fast', fxAutoHeight: true}); } Thanks, Bruce ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Qucik ?: Checking if element exists in a jQ object?
Is there a quick way to check if an element exists in a jQ object stack? It seems that .find(), .filter(), .is() all take CSS selectors (strings)? Here's an example of what I'm trying to do; paaa/p pbbb/p p class=noin/p pddd/p script type=text/javascript $().ready(function() { var row = $('p'); var fRow = $(row); fRow.not('.noinc'); row.each(function(i) { if ($(fRow).filter(this).size() 0) // element is in fRow , do Something! else // element is NOT in fRow, do Something else! }); }); /script ~ Brice ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Unsuscribe how to OT
Added! On 11/29/06, Anthony Rasmussen [EMAIL PROTECTED] wrote: Thank you, Karl! I was trying to figure this out today as well. I just needed to switch my registered email with the listserv. I second putting 'unsubscribe' info on the /discuss/ page. Particularly, a link to http://jquery.com/mailman/listinfo/discuss_jquery.com -Tony From: [EMAIL PROTECTED] Date: Wed, 29 Nov 2006 17:13:41 -0500 To: discuss@jquery.com Subject: Re: [jQuery] Unsuscribe how to OT Hi Reynier, To unsubscribe, either ... (a) go to the following URL: http://jquery.com/mailman/listinfo/discuss_jquery.com and fill out the form near the bottom of the page, or ... (b) send an email to [EMAIL PROTECTED] with unsubscribe in the subject It would be nice to have this information available at jquery.com/discuss/ . I'd put it there myself, but it doesn't look like it's part of the wiki. _ Karl Swedberg www.englishrules.com www.learningjquery.com On Nov 29, 2006, at 3:03 PM, Reynier Perez Mira wrote: Hi every: I need to unsuscribe this address from the list and start with my Gmail account, does anybody know how to do this? Cheers -- ReynierPM 5to Ing. Informática Maestro de poco, aprendiz de mucho ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ Use Messenger to talk to your IM friends, even those on Yahoo! Talk now! ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Qucik ?: Checking if element exists in a jQ object?
bah, forgot the API docs link for index(): http://www.jquery.com/api On 11/29/06, Aaron Heimlich [EMAIL PROTECTED] wrote: On 11/29/06, Brice Burgess [EMAIL PROTECTED] wrote: Is there a quick way to check if an element exists in a jQ object stack? It seems that .find(), .filter(), .is() all take CSS selectors (strings)? I believe index() is what you're looking for. According to the API docs[1], it takes an object and returns its index in the jQ stack or -1 if the object can't be found. So your code would be: paaa/p pbbb/p p class=noin/p pddd/p script type=text/javascript $().ready(function() { var row = $('p'); var fRow = $(row); fRow.not ('.noinc'); row.each(function(i) { if (fRow.index(this) = 0) // my changes are here; // element is in fRow , do Something! else // element is NOT in fRow, do Something else! }); }); /script Although now that I think about it, you could probably do (untested) row.each(function(i) { if($(this).is('.noinc')) { // do something } else { // do something else } }); or row.each(function(i) { if(jQuery.class.has(this, 'noinc')) { // do something } else { // do something else } }); -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/