Re: [jQuery] jQuery copy constructor
Hi, $.fn.newQuery = function() { var c = $(); c.cur = $.merge([], this.cur); return c; } I don't like the name. Maybe copy states better what the function does. Have you tried this kind of implementaiton: $.fn.copy = function() {return $(this.get());}; I don't know if that is faster or not, but I am shure, it is shorter :-) What I would really like to see in the standard library is that jQuery objects can be passed to the $() function to obtain a copy: var $a = $('some.query'); var $b = $($a); $b.filter('some.criteria'); // Does not affect $a How about using $('some.criteria',$a) this actually uses the following code: // Watch for when a jQuery object is passed at the context if ( c c.jquery ) return $(c.get()).find(a); which is pretty much the same technique that I have used above. Christof ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery copy constructor
From: Ferdinand Beyer What I would really like to see in the standard library is that jQuery objects can be passed to the $() function to obtain a copy: var $a = $('some.query'); var $b = $($a); $b.filter('some.criteria'); // Does not affect $a It looks like jQuery 1.0 does this. Check the source code: function jQuery(a,c) { ... // Watch for when a jQuery object is passed as the selector if ( a.jquery ) return $( jQuery.merge( a, [] ) ); ... } -Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Any mirror to jquery1.0
Hey, i just read its been released jquery.com is offline for me here... can anyone show me mirrors to get it...thx ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Simple autolink and highlight
Some more simple stuff, might be useful for others. Example http://kawika.org/jquery/autolink/ Code jQuery.fn.highlight = function (text, o) { return this.each( function(){ var replace = o || 'span class=highlight$1/span'; $(this).html( html.replace( new RegExp('('+text+'(?![\\w\\s?.\\/;#~%=-]*))', ig), replace) ); }); } jQuery.fn.autolink = function () { return this.each( function(){ var re = /((http|https|ftp):\/\/[\w?=.\/-;#~%-]+(?![\w\s?.\/;#~%=-]*))/g; $(this).html( $(this).html().replace(re, 'a href=$1$1/a ') ); }); } jQuery.fn.mailto = function () { return this.each( function() { var re = /(([a-z0-9*._+]){1,}\@(([a-z0-9]+[-]?){1,}[a-z0-9]+\.){1,}([a-z]{2,4}|museum)(?![\w\s?.\/;#~%=-]*))/g $(this).html( $(this).html().replace( re, 'a href=mailto:$1;$1/a' ) ); }); } Usage $(document).ready( function () { $(body).autolink(); $(body).mailto(); $(body).highlight( highlight ); $(body).highlight( word, $1 img src=\0034_up_not_down.gif\ / ); }); ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Simple autolink and highlight
Some more simple stuff, might be useful for others. Example http://kawika.org/jquery/autolink/ Code jQuery.fn.highlight = function (text, o) { return this.each( function(){ var replace = o || 'span class=highlight$1/span'; $(this).html( html.replace( new RegExp('('+text+'(?![\\w\\s?.\\/;#~%=-]*))', ig), replace) ); }); } jQuery.fn.autolink = function () { return this.each( function(){ var re = /((http|https|ftp):\/\/[\w?=.\/-;#~%-]+(?![\w\s?.\/;#~%=-]*))/g; $(this).html( $(this).html().replace(re, 'a href=$1$1/a ') ); }); } jQuery.fn.mailto = function () { return this.each( function() { var re = /(([a-z0-9*._+]){1,}\@(([a-z0-9]+[-]?){1,}[a-z0-9]+\.){1,}([a-z]{2,4}|museum)(?![\w\s?.\/;#~%=-]*))/g $(this).html( $(this).html().replace( re, 'a href=mailto:$1;$1/a' ) ); }); } Usage $(document).ready( function () { $(body).autolink(); $(body).mailto(); $(body).highlight( highlight ); $(body).highlight( word, $1 img src=\0034_up_not_down.gif\ / ); }); ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery copy constructor
Ferdinand Beyer wrote: What I would really like to see in the standard library is that jQuery objects can be passed to the $() function to obtain a copy: var $a = $('some.query'); var $b = $($a); $b.filter('some.criteria'); // Does not affect $a What do you think about that? Could .end()[1] do what you're after? I suppose in your example it would be: $('some.query').doSomething() .filter('some.criteria') .doSomethingElse() .end(); There are circumstances when a method of cloning would be useful, though I'm not sure of an official method. [1] http://www.visualjquery.com/#base_dom_end Best wishes, Dave Cardwell ~ http://davecardwell.co.uk/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jquery 1.0 .css IE -- Change, Bug, ??
All, I noticed that when I changed over to jquery 1.0 some of my code was not working in IE6. Particularly, whenever I was using .css and a css property that was more than one word. For example, $('#MyDiv').css('border-color', this.value); - This works in FF1.5, Op9, but NOT IE6 However, this: $('#MyDiv').css('borderColor', this.value); - works in FF1.5, Op9, IE6 I tried some tests and the same issue exist for things like: border-width font-style font-family font-size font-weight text-align I am pretty sure that it is any style property that is more than one word. The 1.0 API docs are a little unclear on this one. Perhaps they could clarify if we should use the css properties or the javascript reference? Is this a change in 1.0? A bug? I am fairly confident that I tested this before in an older version of jQuery (maybe even 1.0a) and did not experience this in IE6. Please let me know if I am missing something. Thanks, Jeff ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Revision 231 cloneNode() Firefox issue
I'm experiencing some problems on a site with some apparently simple code. It used to work with jQuery R226, but when I updated to 1.0 final (R231), it broke in Firefox (Mac) with the following error: Error: $(e.cloneNode(true)) has no properties Source: http://sgmvoc.optimistweb.org/sites/sgmvoc.optimistweb.org/ themes/clubhouse/scripts/jq.js Line: 376 It works fine in Safari and possibly other browsers too. This is in the following code from jquery-1.0.js: jQuery.swap( e, old, function() { if (jQuery.css(e,display) != none) { oHeight = e.offsetHeight; oWidth = e.offsetWidth; } else { // e = $(e.cloneNode(true)).css({ visibility: hidden, position: absolute, display: block }).prependTo(body)[0]; // oHeight = e.clientHeight; oWidth = e.clientWidth; e.parentNode.removeChild(e); } }); which was last changed in revision 230-231. The problem happens when doing a plain slideDown() from inside a .click() callback: jQuery(a.login).click(function(){ jQuery(#header-forms div).filter(:visible).slideUp(slow); // jQuery(#login-box).slideDown(slow); // ... }); in: http://sgmvoc.optimistweb.org/sites/sgmvoc.optimistweb.org/themes/ clubhouse/scripts/jq-clubhouse.js This is pretty simple jQuery usage, and it works fine with 1.0 final in Firefox if I extract the immediate markup and try it on a stand- alone, unstyled .html page. It is only in combination with the other markup on that page that it breaks. It could be a browser bug, jquery bug or something in my markup that's messing stuff up, I'm not sure. You can try it for yourself on: http://sgmvoc.optimistweb.org/ (click the 'Register' or 'Member log- in' in the header) Has anyone got any ideas about this? Have you seen it before? Steven Wittens ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] del.icio.us powered mp3 player plugin
I made my first plugin for jquery. It's not really a difficult one to program but it adds a nice functionality to your mp3 links. Using the del.icio.us mp3 player you can let people preview your mp3s . The code and an example are on http://xwerocode.blogspot.com/2006/08/my-first-jquery-plugin.html Stop downloading just listen :) David ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] New Plugin: jQEm - Interact with the base 'em' unit.
Before setting out to attempt my own jQuery plugin I had a look through the list of existing plugins to see if someone had already contributed a means to convert ems to pixels. I wasn't expecting to find a script that responds to changes as well! This is an ideal foundation onto which I can build. I have a problem - jQEm is failing in Safari. Running the test Dave conveniently included on the plugin page I get two errors in Safari's (v2.0.4) JavaScript console: It highlights this line of jqem-uncompressed.js: var public = { And the last line of: $.jqem.bind(function() { if( $.jqem.current() $.jqem.previous() ) { alert('You increased the font size!'); } else if( $.jqem.current() $.jqem.previous() ) { alert('You decreased the font size!'); } else { alert('You triggered the event without changing the font size!'); } }); I'm running the plugin in partnership with jQuery v1.0 uncompressed. Can anyone reproduce this problem or shed any light on it? Cheers Ollie On 24/08/06, Dave Cardwell [EMAIL PROTECTED] wrote: Hi John. I liked both of your suggestions so have released jQEm v0.2 at http://davecardwell.co.uk/geekery/javascript/jquery/jqem/0.2/. Thanks for the feedback. Best wishes, Dave Cardwell ~ http://davecardwell.co.uk/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] ping?
Testing, please ignore. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] qooxdoo
Has anyone on the list seen qooxdoo (http://qooxdoo.org/ http://service.gmx.net/de/cgi/derefer?DEST=http%3A%2F%2Fqooxdoo.org%2F) yet? The demos are quite impressive. At my first impression, the codebase could be leveraged a lot by using jQuery, maybe implementing the framework as a set of jQuery plugins. What do you think? -- Jörn ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Distorted fonts (in Opera) with opacity = 0.9999
Hi, If I remember correctly, Firefox has an issue with opacity at '1' - I guess I assumed that it was the case in more browsers. I'll add another catch in to fix it (sigh) Have you ever thought about using deans object-Detection-tip for things like this: http://dean.edwards.name/weblog/2005/12/js-tip1/ e.g. like this: jQuery = (function(addEvent,ffOpacityFix, ...) { var jq = function() { ... } jq.prototype = { ... animate: function() { ... } ... } if( ffOpaciyFix ) jq.prototype.animate = function() { ... } return jq; }) ( document.addEventListener? function(element, type, handler) { element.addEventListener(type, handler, false); }: (document.attachEvent? function(element, type, handler) { element.attachEvent(on + type, handler); }: function(element, type, handler) { ... }), isFF, // however you whant to do it ... ); The Trick is that you do all the checking for supported Objects, Methods, etc. only once and get an optimized implementation for every Browser. Christof ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Revision 231 cloneNode() Firefox issue
I'm experiencing some problems on a site with some apparently simple code. It used to work with jQuery R226, but when I updated to 1.0 final (R231), it broke in Firefox (Mac) with the following error: Error: $(e.cloneNode(true)) has no properties Source: http://sgmvoc.optimistweb.org/sites/sgmvoc.optimistweb.org/ themes/clubhouse/scripts/jq.js Line: 376 It works fine in Safari and possibly other browsers too. This is in the following code from jquery-1.0.js: jQuery.swap( e, old, function() { if (jQuery.css(e,display) != none) { oHeight = e.offsetHeight; oWidth = e.offsetWidth; } else { // e = $(e.cloneNode(true)).css({ visibility: hidden, position: absolute, display: block }).prependTo(body)[0]; // oHeight = e.clientHeight; oWidth = e.clientWidth; e.parentNode.removeChild(e); } }); which was last changed in revision 230-231. The problem happens when doing a plain slideDown() from inside a .click() callback: jQuery(a.login).click(function(){ jQuery(#header-forms div).filter(:visible).slideUp(slow); // jQuery(#login-box).slideDown(slow); // ... }); in: http://sgmvoc.optimistweb.org/sites/sgmvoc.optimistweb.org/themes/ clubhouse/scripts/jq-clubhouse.js This is pretty simple jQuery usage, and it works fine with 1.0 final in Firefox if I extract the immediate markup and try it on a stand- alone, unstyled .html page. It is only in combination with the other markup on that page that it breaks. It could be a browser bug, jquery bug or something in my markup that's messing stuff up, I'm not sure. You can try it for yourself on: http://sgmvoc.optimistweb.org/ (click the 'Register' or 'Member log- in' in the header) Has anyone got any ideas about this? Have you seen it before? Steven Wittens ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] qooxdoo
Has anyone on the list seen qooxdoo (http://qooxdoo.org/) yet? The demos are quite impressive. At my first impression, the codebase could be leveraged a lot by using jQuery, maybe implementing the framework as a set of jQuery plugins. What do you think? -- Jörn -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Server/Mailing List Troubles
Hey Everyone - This morning the jQuery server was very slow and occasionally unresponsive - I fixed it as soon as I woke up and didn't think much more of it. However, this evening it came to my attention that the mailing list hadn't been working all day... oops. It should (hopefully) be fixed now - if you sent a message to the list today, you'll probably have to resend it as its probably gone now. Sorry! --John ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] getIfModified
List, I'm looking to see if anyone has experience w/ $.getIfModified in the ajax plug-in. I'm trying to return the GET only if the contents are modified (such as opening a 30 second timeout where it listens for a request, closes if there is nothing and re-opens or returns what it gets if something comes back). Anyway, getIfModified seems to always return something. Is there a way to debug the XHR object so i can see all of the headers and etc? Will ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] AJAX Autocomplete + jquery 1.0 (dyve.net)
Hey, i couldnt find the owner of that autocomplete hosted in dyve.net...The autosuggest is working with jquery.com/src/latest.js and isnt working with the 1.0 release... Perhaps he may read it in this discussion...Thx ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery 1.0
I'd say the more the merrier. Even if no one needs Russian now, they will once they see that Russian is available. :) !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Roman Sent: Saturday, August 26, 2006 7:03 AM To: jQuery Subject: Re: [jQuery] jQuery 1.0 What languages are currently being translated? I can help to translate to Russian if that interests anyone. Realazy XA Chen wrote: And I wonder, is our INTERNATIONAL work ready to begin? Which things need to translate? I can't wait for it! 2006/8/26, John Resig [EMAIL PROTECTED]: I'd like to take this opportunity to announce the brand new jQuery 1.0! A lot of work has gone into this release. A lot of bugs fixed, a ton of new features, and a complete overhaul of how the jQuery development process is run. In reality, this release is so large, it's going to take a couple days to release it (this includes a new version of the jQuery web site). So bare with us as we make the transition over to full release. There's some kinks that'll have to be worked out (namely, finalizing the new documentation) but it's all in the pipeline and will be ready within the next couple days. For now, here are some relevant links to get you started: * jQuery 1.0 http://jquery.com/src/jquery-1.0.js * jQuery 1.0 - Compressed http://jquery.com/src/jquery-1.0.pack.js * API Documentation http://jquery.com/api/ * (Partial) Test Suite http://jquery.com/test/ If you want to build your own copies of jQuery, you can check it out of Subversion and build it from the command line. You can get the latest jQuery by doing: svn co svn://jquery.com/jquery There's so much more to come. I'll be doing a post every day this week detailing some aspect of jQuery 1.0 along with some screencasts demonstrating what you can do with all the new code. Please, if you spot any bugs, file them in the bug tracker: * Bug Tracker: http://proj.jquery.com/dev/bugs/ * Submit New Bug: http://proj.jquery.com/dev/bugs/new/ I'd like to thank everyone who made this release possible. It's been a lot of work, but the journey is only just beginning. I can't wait to delve into some of the very exciting advances that we have planned. Happy Coding! --John ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] qooxdoo GUI framework
Your emails have been coming through.BlairOn 8/29/06, Jörn Zaefferer [EMAIL PROTECTED] wrote: Okay, third attempt, dunno what I'm doing wrong :/Just wanted to point the list at http://qooxdoo.org/After looking at the demos, it seems to be a quite interessting guiframework. I wonder if the codebase could be leveraged by using jQuery, maybe implementing the framework as a set of jQuery plugins. What do youthink?-- Jörn___jQuery mailing listdiscuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Interface Elements uncompressed version
Does anyone have an uncompressed version of the interface elements plugin or could you repair the link on the http://interface.eyecon.ro/downloadsite? Thank you and best regards Jörg ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Rounded Corners Plugin Broken with jQuery 1.0
Dave Methvin's rounded corners plugin breaks under jquery 1.0. I just tried a local copy of his demo using 1.0 with no other changes, and it doesn't do anything. No errors are reported either (at least in Firefox or Firebug). - jason p.s. - Sorry if this double-posts, I'm not sure the original message got through. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] getIfModified
Not sure if this is the problem or not but be aware that for 'getIfModified' to work the server must set the 'Last-Modified' header. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Rounded Corners Plugin Broken with jQuery 1.0
I don't have any problem running Dave's plugin with 1.0. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Rounded Corners Plugin Broken with jQuery 1.0
Have you tried my plugin? I think it's in the mailing list at the beginning of June or July?On 8/29/06, Mike Alsup [EMAIL PROTECTED] wrote:I don't have any problem running Dave's plugin with 1.0 .___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Converting XMLDocument to Plain XML?
Hi everybody, I was wondering if there is an easy way to convert an XMLDocument (or childNodes) back into plain xml text? Basically I'm thinking about fetching a XML document, manipulating it with jQuery and then push it back to the server to save the results. This is what I imagine to do: $.get('data/my-data.xml', data_callback); function data_callback(xml) { // Manipulate xml object / child nodes // ... // Save the resulting xml document $.post('save.php', {plain_xml: $(xml).toXML()}); // So what I would need is a $.fn.toXML() function } I hope that makes sense. If there is no easy way I guess I'll have to code some recursive $.fn.toXML function to generate the plain xml, right? Best Regards, Felix Geisendrfer -- -- http://www.thinkingphp.org http://www.fg-webdesign.de ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Revision 231 cloneNode() Firefox issue
(resending, the last copy didn't arrive...? :/ ) I'm experiencing some problems on a site with some apparently simple code. It used to work with jQuery R226, but when I updated to 1.0 final (R231), it broke in Firefox (Mac) with the following error: Error: $(e.cloneNode(true)) has no properties Source: http://sgmvoc.optimistweb.org/sites/sgmvoc.optimistweb.org/ themes/clubhouse/scripts/jq.js Line: 376 It works fine in Safari and possibly other browsers too. This is in the following code from jquery-1.0.js: jQuery.swap( e, old, function() { if (jQuery.css(e,display) != none) { oHeight = e.offsetHeight; oWidth = e.offsetWidth; } else { // e = $(e.cloneNode(true)).css({ visibility: hidden, position: absolute, display: block }).prependTo(body)[0]; // oHeight = e.clientHeight; oWidth = e.clientWidth; e.parentNode.removeChild(e); } }); which was last changed in revision 230-231. The problem happens when doing a plain slideDown() from inside a .click() callback: jQuery(a.login).click(function(){ jQuery(#header-forms div).filter(:visible).slideUp(slow); // jQuery(#login-box).slideDown(slow); // ... }); in: http://sgmvoc.optimistweb.org/sites/sgmvoc.optimistweb.org/themes/ clubhouse/scripts/jq-clubhouse.js This is pretty simple jQuery usage, and it works fine with 1.0 final in Firefox if I extract the immediate markup and try it on a stand- alone, unstyled .html page. It is only in combination with the other markup on that page that it breaks. It could be a browser bug, jquery bug or something in my markup that's messing stuff up, I'm not sure. You can try it for yourself on: http://sgmvoc.optimistweb.org/ (click the 'Register' or 'Member log- in' in the header) Has anyone got any ideas about this? Have you seen it before? Steven Wittens ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery copy constructor
Ferdinand - I just added in object cloning with the constructor function, you can now do: var div = $(div) $(div).find(span) and have the original 'div' still contain what it's supposed to. --John On 8/28/06, Ferdinand Beyer [EMAIL PROTECTED] wrote: Hi! In a recent project I often needed to copy a jQuery object to perform a subquery without losing the original object. As far as I can see there is no official way to do this so I came up with a small extension function: $.fn.newQuery = function() { var c = $(); c.cur = $.merge([], this.cur); return c; } Usage example: // I need these queries very often so I want to save the results // within a variable $fields = $('input.dynamic, textarea.dynamic, select.dynamic'); $requiredFields = $fields.newQuery().filter('.required'); I'm pretty sure that I will need this function in almost every future project when I use jQuery. Is there an official way to do this that I missed? What I would really like to see in the standard library is that jQuery objects can be passed to the $() function to obtain a copy: var $a = $('some.query'); var $b = $($a); $b.filter('some.criteria'); // Does not affect $a What do you think about that? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Interface Elements uncompressed version
I would like to get the uncompressed version of the interface elements plugin, too!On 8/29/06, Joerg Zwirner [EMAIL PROTECTED] wrote: Does anyone have an uncompressed version of the interface elements plugin or could you repair the link on the http://interface.eyecon.ro/downloadsite? Thank you and best regards Jörg ___jQuery mailing listdiscuss@ jquery.comhttp://jquery .com/discuss/-- Best regards,沈志川 (Benx) ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Problems with jQuery.com?
Hey all. I'm having some fairly large problems getting a stable connection to the jquery website. I get Wordpress errors when I try to connect to the blog, and getting jquery-1.0.js is hit and miss. Is anyone else having similar problems? -- View this message in context: http://www.nabble.com/Problems-with-jQuery.com--tf2177454.html#a6020486 Sent from the JQuery forum at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Problems with jQuery.com?
Hi, I'm experiencing the same. Probably this is due to overhelming popularity of jQuery after reaching rel. 1.0. Everybody in the world is trying to get latest version... -- View this message in context: http://www.nabble.com/Problems-with-jQuery.com--tf2177454.html#a6021489 Sent from the JQuery forum at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Problems with jQuery.com?
Cheers. I'm glad I'm not alone in this, but sad that it's down nonetheless! Krzysztof FF wrote: Hi, I'm experiencing the same. Probably this is due to overhelming popularity of jQuery after reaching rel. 1.0. Everybody in the world is trying to get latest version... -- View this message in context: http://www.nabble.com/Problems-with-jQuery.com--tf2177454.html#a6021637 Sent from the JQuery forum at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Rounded Corners Plugin Broken with jQuery 1.0
Can't be. Visual jQuery uses rounded corners, and it works fine.On 8/28/06, Jason Huck [EMAIL PROTECTED] wrote: Dave Methvin's rounded corners plugin breaks under jquery 1.0. I justtried a local copy of his demo using 1.0 with no other changes, and itdoesn't do anything. No errors are reported either (at least inFirefox or Firebug). - jasonp.s. - Sorry if this double-posts, I'm not sure the original messagegot through.___jQuery mailing list discuss@jquery.comhttp://jquery.com/discuss/-- Yehuda KatzWeb Developer(ph)718.877.1325(fax) 718.686.4288 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] where is the animate function ?
looks like it disappeared (but still in the doc)does it mean that the documentation at http://proj.jquery.com/docs/ is deprecated ?is there an updated documentation for the animation package ( http://jquery.com/api/) ?thanks for the help ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] del.icio.us powered mp3 player plugin
It never worked for me. IE 6+ for the PC. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of David Sent: Monday, August 28, 2006 3:09 PM To: jQuery Discussion. Subject: [jQuery] del.icio.us powered mp3 player plugin I made my first plugin for jquery. It's not really a difficult one to program but it adds a nice functionality to your mp3 links. Using the del.icio.us mp3 player you can let people preview your mp3s . The code and an example are on http://xwerocode.blogspot.com/2006/08/my-first-jquery-plugin.html Stop downloading just listen :) David ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] qooxdoo
Impressive stuff. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jörn Zaefferer Sent: Monday, August 28, 2006 4:54 AM To: discuss@jquery.com Subject: [jQuery] qooxdoo Has anyone on the list seen qooxdoo (http://qooxdoo.org/) yet? The demos are quite impressive. At my first impression, the codebase could be leveraged a lot by using jQuery, maybe implementing the framework as a set of jQuery plugins. What do you think? -- Jörn -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Rounded Corners Plugin Broken with jQuery 1.0
I posted about it yesterday... it isnt working, but the jquery released in May works fine...//both packed versions...2006/8/29, Yehuda Katz [EMAIL PROTECTED] :Can't be. Visual jQuery uses rounded corners, and it works fine. On 8/28/06, Jason Huck [EMAIL PROTECTED] wrote: Dave Methvin's rounded corners plugin breaks under jquery 1.0. I justtried a local copy of his demo using 1.0 with no other changes, and itdoesn't do anything. No errors are reported either (at least inFirefox or Firebug). - jasonp.s. - Sorry if this double-posts, I'm not sure the original messagegot through.___jQuery mailing list discuss@jquery.comhttp://jquery.com/discuss/ -- Yehuda KatzWeb Developer(ph)718.877.1325(fax) 718.686.4288 ___jQuery mailing listdiscuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery 1.0 + Thickbox 2 problems?
Thanks for the reply, Dan. jQuery is the only javascript we're loading (because, frankly, I don't know enough javascript to use anything else!), plus the forms thickbox plugins. I reverted back to the old jquery-svn from the jQuery site (revision 88?) and it all works tickity-boo again. The AJAX-enabled forms are working as they should, and FF reports no errors :-) It's a mystery why it would work for you and not for me, but now I have it working again (even if it is with an old version) I'm not so worried. Thanks, Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dan Atkinson Sent: 29 August 2006 12:16 To: discuss@jquery.com Subject: Re: [jQuery] jQuery 1.0 + Thickbox 2 problems? Chris, I confirm from personal experience that jQuery 1.0 and Thickbox 2.0 work fine together. If there are issues with it, then you may be overwriting jQuery with something else. I've seen it happen before, and fun and chaos can ensue. Check if there are any potential conflicts with other JS files (prototype, Scriptalicious, etc) first. Cheers, Dan Atkinson __ This email has been scanned by Senergy Ltd for viruses. Powered by MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery 1.0
John Resig wrote: So bare with us... I understand your desire to celebrate, even though I don't prescribe to the way you do so. I'll keep my clothes on and just cheer for your accomplishment. ;) Seriously: Congratulations, John. I hope jQuery continues to grow its international success. It's been fun watching jQuery refine into the incredible library it is now. I especially like how the high-quality, useful plugins are coming quickly. Again, congratulations. -- View this message in context: http://www.nabble.com/jQuery-1.0-tf2168251.html#a6026511 Sent from the JQuery forum at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Rounded Corners plugin broken with jQuery 1.0?
Dropped jQuery 1.0 (uncompressed) into a work in progress and all my rounded corners disappeared. Anyone else using the rounded corners plugin that can verify or potentially offer a fix? Thanks, Jason -- View this message in context: http://www.nabble.com/Rounded-Corners-plugin-broken-with-jQuery-1.0--tf2179141.html#a6025935 Sent from the JQuery forum at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery copy constructor
Great news! Thanks! John Resig schrieb: Ferdinand - I just added in object cloning with the constructor function, you can now do: var div = $(div) $(div).find(span) and have the original 'div' still contain what it's supposed to. --John ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Autocomplete invasion
I know there are there already two solution for autocompletion. But i needed one to integrate with Interface for a project and I thought it will be nice to share it with you. So here it goes: http://interface.eyecon.ro/demos/autocompleter.htmlAttach AJAX driven autocomplete/sugestion box to text input fields. Features: autofillkeyboard and mouse navigationdelayed AJAX requestanimated suggestion boxminimum characters before the AJAX request is started ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Autocomplete invasion
Stefan... It looks nice, but your test data set is a little small to really test it out. Not enough countries on each continent start with the same few letters. Any chance of either merging your data set into one "world" or changing data sets? !//--andy matthewsweb developercertified advanced coldfusion programmerICGLink, Inc.[EMAIL PROTECTED]615.370.1530 x737--//- -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Stefan PetreSent: Tuesday, August 29, 2006 9:00 AMTo: discuss@jquery.comSubject: [jQuery] Autocomplete invasionI know there are there already two solution for autocompletion. But i needed one to integrate with Interface for a project and I thought it will be nice to share it with you. So here it goes:http://interface.eyecon.ro/demos/autocompleter.html Attach AJAX driven autocomplete/sugestion box to text input fields. Features: autofill keyboard and mouse navigation delayed AJAX request animated suggestion box minimum characters before the AJAX request is started ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Autocomplete invasion
The only thing I'm missing is a Status indicator when the AJAX- request has been started.. Maybe an idea? Steef Op 29-aug-2006, om 16:00 heeft Stefan Petre het volgende geschreven: I know there are there already two solution for autocompletion. But i needed one to integrate with Interface for a project and I thought it will be nice to share it with you. So here it goes: http://interface.eyecon.ro/demos/autocompleter.html Attach AJAX driven autocomplete/sugestion box to text input fields. Features: autofill keyboard and mouse navigation delayed AJAX request animated suggestion box minimum characters before the AJAX request is started ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Rounded Corners plugin broken with jQuery 1.0?
Dropped jQuery 1.0 (uncompressed) into a work in progress and all my rounded corners disappeared. Anyone else using the rounded corners plugin that can verify or potentially offer a fix? Starting with this code: http://methvin.com/jquery/jq-corner-demo.html The original code works fine for me using jQuery SVN 234 as long as I change the way the startup code is called. For some reason with SVN 234 this is never called: $(document).bind(load, function(){ alert(I am never alerted); }); But this works fine: $(document).ready(function(){ alert(I will appear); }); But otherwise it works fine. Sooo...for those of you still having trouble, could you post a simple example of how you are using the plugin and some more details about which version of jQuery you are using? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] getIfModified
Mike Alsup schrieb: Not sure if this is the problem or not but be aware that for 'getIfModified' to work the server must set the 'Last-Modified' header. Careful, if that header isn't set, the AJAX plugin will break Firefox 1.0. I send another mail about this which didn't come through... -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Ajax IfModified mode breaks Firefox 1.0
Hi, the IfModified mode for Ajax calls may break Firefox 1.0. The following code: var modRes = xml.getResponseHeader(Last-Modified); if ( ifModified modRes ) jQuery.lastModified[url] = modRes; breaks and throws such an exception if such response header is not set: Error: [Exception... Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.getResponseHeader] nsresult: 0x80040111 (NS_ERROR_NOT_AVAILABLE) location: JS frame :: http://192.168.1.199/js/jquery.js :: anonymous :: line 5029 data: no] Source File: http://192.168.1.199/js/jquery.js Line: 5029 The only way I could fix this is to wrap that code into a try/catch block: try { var modRes = xml.getResponseHeader(Last-Modified); if ( ifModified modRes ) jQuery.lastModified[url] = modRes; } catch (e) { // do nothing } Or is it better practice to have such header always in any response? -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Ajax IfModified mode breaks Firefox 1.0
Hi, the IfModified mode for Ajax calls may break Firefox 1.0. The following code: var modRes = xml.getResponseHeader(Last-Modified); if ( ifModified modRes ) jQuery.lastModified[url] = modRes; breaks and throws such an exception if such response header is not set: Error: [Exception... Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.getResponseHeader] nsresult: 0x80040111 (NS_ERROR_NOT_AVAILABLE) location: JS frame :: http://192.168.1.199/js/jquery.js :: anonymous :: line 5029 data: no] Source File: http://192.168.1.199/js/jquery.js Line: 5029 The only way I could fix this is to wrap that code into a try/catch block: try { var modRes = xml.getResponseHeader(Last-Modified); if ( ifModified modRes ) jQuery.lastModified[url] = modRes; } catch (e) { // do nothing } Or is it better practice to have such header always in any response? -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Distorted fonts (in Opera) with opacity = 0.9999
Joel Birch schrieb: In Mac Firefox, when an element is anything other than opacity:1, the text is rendered 'thinner' or lighter in weight. This means that, for example, when you fadeUp, text is 'light' in weight until opacity:1 is reached. The transition from opacity:.999 to opacity:1 is very noticeable as all the text in the window jumps from being thinner to full weight. Fading only to .999 means that all the type remains thin, but can be preferable to the more obvious 'jump' effect. Joel. Good to know, I haven't realized that. One more reason to get rid of the 0.... -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Bug in 226: elem has no properties
John Resig schrieb: I honestly can't duplicate this bug - I've tried it multiple times, on multiple pages - can you put up a test page so that I can confirm this? John, I could now reproduce it on another page. It happens if you query for elements that are nested that level in one element but not in another one. It is better explained by example code I guess. Testpage here: http://stilbuero.de/demo/jquery/nested.html This is the structure (simplified): div id=search-output h2Plazes:/h2 div id=search-pager/div div id=search-results div id=results-list class=anchor div id=list/div /div /div /div If you do $('#search-outputdivdivdiv') you get the bug... -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Ajax IfModified mode breaks Firefox 1.0
Hi, the IfModified mode for Ajax calls may break Firefox 1.0. The following code: var modRes = xml.getResponseHeader(Last-Modified); if ( ifModified modRes ) jQuery.lastModified[url] = modRes; breaks and throws such an exception if such response header is not set: Error: [Exception... Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.getResponseHeader] nsresult: 0x80040111 (NS_ERROR_NOT_AVAILABLE) location: JS frame :: http://192.168.1.199/js/jquery.js :: anonymous :: line 5029 data: no] Source File: http://192.168.1.199/js/jquery.js Line: 5029 The only way I could fix this is to wrap that code into a try/catch block: try { var modRes = xml.getResponseHeader(Last-Modified); if ( ifModified modRes ) jQuery.lastModified[url] = modRes; } catch (e) { // do nothing } Or is it better practice to have such header always in any response? -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] css('height') does not work?!
Hi all, shouldn't css('height') return the height of an element? It doesn't work anymore (Rev 226), but height() does. Or does css('height') not exist anymore in favor of height()? Regards, Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Interface Elements uncompressed version
Sorry, I forgot to upload the archive. Now should be on-line. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Autocomplete invasion
@Stefan Nagtegaal: this element acts in a very small portion of the screen and maybe it is used in a more complexed application context. If you want to use AJAX activity indicator then I suggest to use ajaxStart, ajaxStop, ajaxComplete etc from jQuery. @Andy Matthews: The data base had all countries but this data is shared with the grid plugin I'm working on. The grid allows changing the data and people screwed with the information. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] slideDown vs. show - overflow
Hello - I'm using an async get to fill a div. I found that if I called slideDown() on the div after filling it I usually get text and images overflowing outside of the div. I thought it was one of those css float problems - so I tried adding the lt;br clear=both/gt; hack - but I still had overflow. Eventually I found that if I called show() instead of slideDown() - it sized the div correctly. subsequent uses of slideUp() and slideDown() are no problem once the div is filled... here is the relevant code: $.get('/plainthing/open/' + id, function(response){ $(div#thing_ + id).find(div.full).hide(); $(div#thing_ + id).find(div.full).html($(lt;divgt;lt;/divgt;).html(response).find(div.full).html()); //$(div#thing_ + id).find(div.full).slideDown(normal); $(div#thing_ + id).find(div.full).show(); }); Have you encountered this before? Thanks.. -- View this message in context: http://www.nabble.com/slideDown-vs.-show---overflow-tf2179500.html#a6027023 Sent from the JQuery forum at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] css('height') does not work?!
Hi all, shouldn't css('height') return the height of an element? It doesn't work anymore (Rev 226), but height() does. Or does css('height') not exist anymore in favor of height()? Regards, Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Distorted fonts (in Opera) with opacity = 0.9999
Joel Birch schrieb: In Mac Firefox, when an element is anything other than opacity:1, the text is rendered 'thinner' or lighter in weight. This means that, for example, when you fadeUp, text is 'light' in weight until opacity:1 is reached. The transition from opacity:.999 to opacity:1 is very noticeable as all the text in the window jumps from being thinner to full weight. Fading only to .999 means that all the type remains thin, but can be preferable to the more obvious 'jump' effect. Joel. Good to know, I haven't realized that. One more reason to get rid of the 0.... -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Event Handling Problem
I'm having an issue in Internet Explorer with the new jQuery 1.0 and event handling. I have a button which I dynamically add an event to (being used as a folder browser). The problem is in IE the button event fires twice, so if I'm two directories down, it goes up two directories on click instead of one. This doesn't happen in FF. Also, the AJAX call doesn't appear to work at all in Opera 9. !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 runat=server titleUntitled Page/ title script type=text/_javascript_ src=scripts/jquery-code.js/script script type=text/_javascript_ $(document).ready(function(){ $(div#test).load(fs.aspx,{ operation: get folder, folder: }); }); function load_directory(dir) { $(div#test).load(fs.aspx,{ operation: get folder, folder: dir }); $(input#up).unclick(); if(dir != dir != / ) { //alert(dir); //alert(dir.substring(0,dir.lastIndexOf('/'))); $(input#up).click(function(){ load_directory(dir.substring(0,dir.lastIndexOf('/'))); return false; }); return false; } return false; }; /script /head body form id=form1 runat=server input type=button value=up id=up / div id=test /div /form /body /html ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Autocomplete invasion
Stefan Petre wrote: http://interface.eyecon.ro/demos/autocompleter.html Stefan, Very nicely done. I only found a couple of issues: If you type enough characters to trigger the autocomplete, then type one more character, the autocomplete closes and you are not given any suggestions. In other words: Type sou, a few suggestions are shown. Type t, the suggestions dissappear. Type h, the suggestions come back. I expect new suggestions would come back when the t is typed. Also, there is quite a bit of flashing while the suggestion list is sliding down when using Firefox 1.5.0.6. -- View this message in context: http://www.nabble.com/Autocomplete-invasion-tf2183734.html#a6041817 Sent from the JQuery forum at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] del.icio.us powered mp3 player plugin
I like that what about doing a next|previous button...Look: the user could change the songs... i tried it before, but i didnt manage stopping the sound when i remove it...Lets try? =P 2006/8/29, Andy Matthews [EMAIL PROTECTED]: It never worked for me. IE 6+ for the PC.!//--andy matthewsweb developercertified advanced coldfusion programmerICGLink, Inc.[EMAIL PROTECTED] 615.370.1530 x737--//--Original Message-From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]]OnBehalf Of DavidSent: Monday, August 28, 2006 3:09 PMTo: jQuery Discussion.Subject: [jQuery] del.icio.us powered mp3 player plugin I made my first plugin for jquery. It's not really a difficult one toprogram but it adds a nice functionality to your mp3 links. Using thedel.icio.us mp3 playeryou can let people preview your mp3s . The code and an example are onhttp://xwerocode.blogspot.com/2006/08/my-first-jquery-plugin.htmlStop downloading just listen :) David___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/ ___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] So what is wrong with ie6 on blur?
hi, folks.I set up an example page here: http://realazy.org/temp/tut/form_hover_step3.htmland some js code like this: $([EMAIL PROTECTED]'text'], [EMAIL PROTECTED]'password'], textarea).hover(function(){$(this).addClass(ie_hover)}, function(){$(this).removeClass(ie_hover)}).focus(function(){$(this).addClass(ie_focus)}).blur(function(){$(this).removeClass(ie_focus)}); test in firefox all is ok, but in ie6, I never saw the .blur(function(){$(this).removeClass(ie_focus)}) effect, that is, when I onblur this elements, they change nothing... so does my falut? ie's fault? or jQuery's fault( I hope not :) )thanks in advance.Realazy -- realazy.org ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] svn difficulties
Hello, Am I the only have currently having trouble to download the latest files this is the error Im getting all the sudden: Error: Cannot replace a directory from within Any ideas am I doing anything wrong? Thank you ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Autocomplete invasion
Rexbard wrote: If you type enough characters to trigger the autocomplete, then type one more character, the autocomplete closes and you are not given any suggestions. Yup. Its looks nice, but is rather unintuitive. I think one of the other autocomplete plugins used caching to load a set of proposals when there were enough characters, and then reduced the selection when the client enters more characters, without anymore requests. That way it was much more responsive. The demo link is missing on the demo page, yet. Concerning the 'fx'-option of the plugin: I think it is easier to understand if the client passes a function instead of some custom object that needs to be parsed. Eg: $('#element').Autocomple({ fx: function(suggestionBox) { suggestionBox.SlideInUp(400) } }); This would give the client more control of the animation (like chaining animations) and he can rely on existing documentation instead of figuring out how the object passed for fx is parsed. Maybe there is a way to write this even more comprehensive. Something concerning the new interface homepage in general: There seems to be some bugs in different interface plugins (weird positioning when moving objects out of the window at the bottom, a lot of flickering here and there) I'd like to report in detail, but the link to the forum intended for bug reports gives me a 404 error. While you fix that, you could add the link to the navigation. -- Jörn ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Autocomplete invasion
On 8/29/06, Jörn Zaefferer [EMAIL PROTECTED] wrote: Yup. Its looks nice, but is rather unintuitive. I think one of the other autocomplete plugins used caching to load a set of proposals when there were enough characters, and then reduced the selection when the client enters more characters, without anymore requests. That way it was much more responsive. That would be http://www.dyve.net/jquery?autocomplete ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Autocomplete invasion
aedmonds wrote: Stefan, The plugin is cool. One request I would have is to have an optional callback parameter when the user selects an item from the list. Thank you for interface! -Aaron Edmonds Stefan Petre wrote: I know there are there already two solution for autocompletion. But i needed one to integrate with Interface for a project and I thought it will be nice to share it with you. So here it goes: http://interface.eyecon.ro/demos/autocompleter.html Attach AJAX driven autocomplete/sugestion box to text input fields. Features: - autofill - keyboard and mouse navigation - delayed AJAX request - animated suggestion box - minimum characters before the AJAX request is started ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ Sure, I will implement this option. Any suggestion for the parameters to send to the callback? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] AJAX Autocomplete + jquery 1.0 (dyve.net)
Hi, I'll look into it. Dylan On 8/28/06, Rafael Santos [EMAIL PROTECTED] wrote: Hey, i couldnt find the owner of that autocomplete hosted in dyve.net... The autosuggest is working with jquery.com/src/latest.js and isnt working with the 1.0 release... Perhaps he may read it in this discussion... Thx ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Autocomplete invasion
Stefan Petre wrote: The caching idea is very good. For sure I will implement such a thing. Cool. The demo is on demos page. Ok, but the link is broken. The fx part I will keep it like it is now because it is easier to implement then to explain to starters how they can bind there own function. Maybe I will extend this part to accept a function as parameter too. My idea was this: It is easier to use a function that is documented somewhere else in detail, instead of figuring out how to use the custom object. But you make a good point, understanding callback functions may not be so very easy. Would be nice to here other opinions about this. The forum is off because soon jQuery will have a forum and John told me that interface will have a category there. Besides, I don't have time for support and people are expecting at least an answer. Even I don't respond quick to bug reports and so I always consider what everyone says. That is an interessting information. You write that on your page instead of presenting a broken link. The problem with draggables on example pages is that the mousemove event is binded to the body and the height of the body is not the same as window's height. So when you leave the body with the dragged element the event is not triggered anymore. I know about the flickering (some fx plugins and sortables example when the page has scroll and is scrolled at least some pixels) and I'm working on this to solve it. Ah, good to know you are working on it. You know, it looks like your plugin collection is the most famous one in the jQuery sphere, thats why some information would help quite a lot of people. -- Jörn ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Autocomplete invasion
Stefan Petre wrote: Sure, I will implement this option. Any suggestion for the parameters to send to the callback? How about this: text - The text of the selected entry value - The value of the selected entry index - The index of the selected entry in the list of available entries input - The characters entered so far before selecting an entry, must take care of autofilled characters, equals 'text' if it was fully entered The order should be optimized so the client has to only specify the parameters he needs most likely, eg. function(text, value) { dosomething } On a side note: If a client can write a callback for this, he should be able to write one for the fx option ;-) -- Jörn ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Autocomplete invasion
It'd be great if the autocomplete plugin allow to use one textfield to make multiple suggestions, for comma-separated values, for instance. I'm thinking in the Gmail autocomplete for multiple e-mail addresses in the destination field, or the del.icio.us TAGS field, that suggest you new tags everytime you write a new word. Would it be too much difficult to add this feature? Keep up the good work! Regards, -- Albert Garcia OboLog Tus pensamientos en red http://www.obolog.com _ Mi blog en http://obokaman.obolog.com -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de aedmonds Enviado el: martes, 29 de agosto de 2006 20:36 Para: discuss@jquery.com Asunto: Re: [jQuery] Autocomplete invasion I know that the scriptaculous Autocompleter passed the autocompletion input field and the selected item (the li item selected). But since you are using XML for the response, maybe return the input field and the item that was selected? BTW, you added the Autocomplete to the demos page on the interface site but the link should go to http://interface.eyecon.ro/demos/autocompleter.html rather than http://interface.eyecon.ro/demos/autocomplete. Thought I'd let you know since you just updated it. -Aaron Stefan Petre wrote: Sure, I will implement this option. Any suggestion for the parameters to send to the callback? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/Autocomplete-invasion-tf2183734.html#a6045025 Sent from the JQuery forum 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] Autocomplete invasion
Jörn Zaefferer wrote: Stefan Petre wrote: Sure, I will implement this option. Any suggestion for the parameters to send to the callback? How about this: text - The text of the selected entry value - The value of the selected entry index - The index of the selected entry in the list of available entries input - The characters entered so far before selecting an entry, must take care of autofilled characters, equals 'text' if it was fully entered The order should be optimized so the client has to only specify the parameters he needs most likely, eg. function(text, value) { dosomething } On a side note: If a client can write a callback for this, he should be able to write one for the fx option ;-) -- Jörn ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ Can you give me an example of a case that will use all of this parameters? I want to keep it real. The FX is more appealing then a callback for onselect for starters and for that it should have a easy way to implement those effects. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Autocomplete invasion
Hi, I updated my autocompleter to work with 1.0. There's a weird CSS bug in the IE version, if someone figures it out, let me know. Stefan: Feel free to use my code, and integrate, daapt or copy it into your suite. We need a good jQuery suite for basic effects, and there should be a good autocompleter. The reason I built mine aka features yours should have :-) - caching - settings to FORCE the user to make a selection (no free text) - callback on select - callback for html markup I'm really looking forward to something better than what I put together, I'll use it in my own projects then :-) Let me know if I can be of help. http://www.dyve.net/jquery?autocomplete On 8/29/06, Jörn Zaefferer [EMAIL PROTECTED] wrote: Stefan Petre wrote: The caching idea is very good. For sure I will implement such a thing. Cool. The demo is on demos page. Ok, but the link is broken. The fx part I will keep it like it is now because it is easier to implement then to explain to starters how they can bind there own function. Maybe I will extend this part to accept a function as parameter too. My idea was this: It is easier to use a function that is documented somewhere else in detail, instead of figuring out how to use the custom object. But you make a good point, understanding callback functions may not be so very easy. Would be nice to here other opinions about this. The forum is off because soon jQuery will have a forum and John told me that interface will have a category there. Besides, I don't have time for support and people are expecting at least an answer. Even I don't respond quick to bug reports and so I always consider what everyone says. That is an interessting information. You write that on your page instead of presenting a broken link. The problem with draggables on example pages is that the mousemove event is binded to the body and the height of the body is not the same as window's height. So when you leave the body with the dragged element the event is not triggered anymore. I know about the flickering (some fx plugins and sortables example when the page has scroll and is scrolled at least some pixels) and I'm working on this to solve it. Ah, good to know you are working on it. You know, it looks like your plugin collection is the most famous one in the jQuery sphere, thats why some information would help quite a lot of people. -- Jörn ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Autocomplete invasion
You need a callback. Real world example: I select a species thru autocomplete. I need to know how rare a species is inthe form, The autocomplete should pass me that, but it should not show up in the input field. On 8/29/06, Stefan Petre [EMAIL PROTECTED] wrote: Jörn Zaefferer wrote: Stefan Petre wrote: Sure, I will implement this option. Any suggestion for the parameters to send to the callback? How about this: text - The text of the selected entry value - The value of the selected entry index - The index of the selected entry in the list of available entries input - The characters entered so far before selecting an entry, must take care of autofilled characters, equals 'text' if it was fully entered The order should be optimized so the client has to only specify the parameters he needs most likely, eg. function(text, value) { dosomething } On a side note: If a client can write a callback for this, he should be able to write one for the fx option ;-) -- Jörn ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ Can you give me an example of a case that will use all of this parameters? I want to keep it real. The FX is more appealing then a callback for onselect for starters and for that it should have a easy way to implement those effects. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Autocomplete invasion
Albert Garcia wrote: It'd be great if the autocomplete plugin allow to use one textfield to make multiple suggestions, for comma-separated values, for instance. I'm thinking in the Gmail autocomplete for multiple e-mail addresses in the destination field, or the del.icio.us TAGS field, that suggest you new tags everytime you write a new word. Would it be too much difficult to add this feature? Keep up the good work! Regards, -- Albert Garcia OboLog Tus pensamientos en red http://www.obolog.com _ Mi blog en http://obokaman.obolog.com -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de aedmonds Enviado el: martes, 29 de agosto de 2006 20:36 Para: discuss@jquery.com Asunto: Re: [jQuery] Autocomplete invasion I know that the scriptaculous Autocompleter passed the autocompletion input field and the selected item (the li item selected). But since you are using XML for the response, maybe return the input field and the item that was selected? BTW, you added the Autocomplete to the demos page on the interface site but the link should go to http://interface.eyecon.ro/demos/autocompleter.html rather than http://interface.eyecon.ro/demos/autocomplete. Thought I'd let you know since you just updated it. -Aaron Stefan Petre wrote: Sure, I will implement this option. Any suggestion for the parameters to send to the callback? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/Autocomplete-invasion-tf2183734.html#a6045025 Sent from the JQuery forum at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ I need to think about this. :) ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] AJAX Autocomplete + jquery 1.0 (dyve.net)
Fixed. http://www.dyve.net/jquery?autocomplete Dylan On 8/28/06, Rafael Santos [EMAIL PROTECTED] wrote: Hey, i couldnt find the owner of that autocomplete hosted in dyve.net... The autosuggest is working with jquery.com/src/latest.js and isnt working with the 1.0 release... Perhaps he may read it in this discussion... Thx ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Autocomplete invasion
aedmonds wrote: I know that the scriptaculous Autocompleter passed the autocompletion input field and the selected item (the li item selected). But since you are using XML for the response, maybe return the input field and the item that was selected? BTW, you added the Autocomplete to the demos page on the interface site but the link should go to http://interface.eyecon.ro/demos/autocompleter.html rather than http://interface.eyecon.ro/demos/autocomplete. Thought I'd let you know since you just updated it. -Aaron Stefan Petre wrote: Sure, I will implement this option. Any suggestion for the parameters to send to the callback? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ yes, this was my first idea. I incline to use this as parameters. Maybe the function applies to the input field ... The link is fixed. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] svn difficulties
2006/8/29, Marco M. Jaeger [EMAIL PROTECTED]: Am I the only have currently having trouble to download the latest files – this is the error I'm getting all the sudden: Error: Cannot replace a directory from within Any ideas – am I doing anything wrong? I have the same problem but only with the read-only access. The authenticated one works. It must come from the last reboot of John's server ;-) Franck. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jQuery's submit event handler
This doesn't work as intended for me:http://pastebin.ca/152458The value of the message field will not be set to an empty string.What's wrong? Is it me? Thanks for help! ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Thickbox 2.0 and Jquery 1.0
Hi everybody, is planned to migrate Thickbox 2.0 to use jquery 1.0 in short term? Now it launches an error on accessing Window.nodeType property. Thanks! --Albert GarciaOboLog » tus pensamientos en redhttp://www.obolog.com___Mi blog en http://obokaman.obolog.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Vitamin newsletter signup in jQuery?
Is it possible to recreate the newsletter signup at www.thinkvitamin.com using jQuery? I am not very proficient with jQuery (only just used the scroll feature today!). At the moment I have a php form which just squirts an h3 at the beginning if the send is successful but Id love to just instantly hide the form and replace it with a Your email has been sent message. Thanks in advance, Steven Hambleton -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.11.6/430 - Release Date: 28/08/2006 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Slidebar with jquery
Nice... this example http://interface.eyecon.ro/demos/slider.html is too much uggly ehehhe and dont work in my IE 7. Any alternative? Matt Stith wrote: Try out interface's Slider. http://interface.eyecon.ro/demos On 8/24/06, testebr [EMAIL PROTECTED] wrote: Hi, Anyone know where I can find an SlideBar with Jquery like this website http://www.strategyinformer.com/pc/hiddenstrokeii/interview.html http://www.strategyinformer.com/pc/hiddenstrokeii/interview.html (prototype based) ? see the YOUR SCORE BLOCK Thanks. -- View this message in context: http://www.nabble.com/Slidebar-with-jquery-tf2161977.html#a5975055 Sent from the JQuery forum 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/Slidebar-with-jquery-tf2161977.html#a6030615 Sent from the JQuery forum at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Slide
Hi, I know very little about javascript and I hope someone can help me. I'm trying to make image.gif button that toggles the Hide and Show script pasted below. I read through the jQuery site and I think you are suppose to add $(img).toggle(); to it, but I'm not sure exactly where. Thanks in advance. $(document).ready(function(){ $(a.switch_show).click(function(){ $(div#hidden_shelf:hidden).slideDown(normal); return false; }); $(a.switch_hide).click(function(){ $(div#hidden_shelf:visible).slideUp(normal); return false; }); }); -- View this message in context: http://www.nabble.com/Slide-tf2184174.html#a6041079 Sent from the JQuery forum at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Hiding my form when successful
Hi all, I am really new to this jQueury malarkey but I've managed to add a few plugins etc :) I have a php form and I want to hide the form if the email was successfully sent. Is there a bit of code I can drop in somewhere? Thank you all in advance! -- View this message in context: http://www.nabble.com/Hiding-my-form-when-successful-tf2182302.html#a6035389 Sent from the JQuery forum at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] So what is wrong with ie6 on blur?
InterestingIf I tab through the inputs everything works fine, but if I click into one of the inputs and then click somewhere else on the page the blur event doesn't fire in IE6 or Opera 9.--Aaron On 8/29/06, Realazy XA Chen [EMAIL PROTECTED] wrote: hi, folks.I set up an example page here: http://realazy.org/temp/tut/form_hover_step3.htmland some js code like this: $([EMAIL PROTECTED]'text'], [EMAIL PROTECTED]'password'], textarea).hover(function(){$(this).addClass(ie_hover)}, function(){$(this).removeClass(ie_hover)}).focus(function(){$(this).addClass(ie_focus)}).blur(function(){$(this).removeClass(ie_focus)}); test in firefox all is ok, but in ie6, I never saw the .blur(function(){$(this).removeClass(ie_focus)}) effect, that is, when I onblur this elements, they change nothing... so does my falut? ie's fault? or jQuery's fault( I hope not :) )thanks in advance.Realazy -- realazy.org ___jQuery mailing list discuss@jquery.comhttp://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Anomalies using Ajax plugin and IE 6/7
I created a test page to tinker with the Ajax plugin and have noted a strange behaviour in IE 6 and 7. The main test page is: http://www.jimdavis.org/test/jq_ajaxtest.html The page is loading http://www.jimdavis.org/test/ajax-test.html and http://www.jimdavis.org/test/ajax-test2.html using script type=text/javascript $(document).ready(function(){ $(div#left-content).load(ajax-test.html); $(div#right-content).load(ajax-test2.html); }); /script The files that are being loaded inclue an inline style to float the image left and add a little margin and a border. Viewing the main file http://www.jimdavis.org/test/jq_ajaxtest.html in FireFox everything displays as expected. Viewing the same file in IE 6 or 7 incorrectly shows the text below the image. Interestingly, the individual files, ajax-test.html and ajax-test2.html, display correctly in IE. The text wraps around the image as expected. Could jquery be introducing this problem? Jim ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] svn difficulties
I have the same problem but only with the read-only access. The authenticated one works. It must come from the last reboot of John's server ;-) No problem with your server, John. Marco, I created a brand new sandbox from svn://jquery.com/jquery and everything works fine. Franck. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] del.icio.us powered mp3 player plugin
I like it :-) A simple addition would provide a bunch of functionality: $([EMAIL PROTECTED] $= .mp3]).mp3player(); That will find all links that point to an MP3 file and automatically convert them to an MP3 Player. Keep up the good work! --John On 8/28/06, David [EMAIL PROTECTED] wrote: I made my first plugin for jquery. It's not really a difficult one to program but it adds a nice functionality to your mp3 links. Using the del.icio.us mp3 player you can let people preview your mp3s . The code and an example are on http://xwerocode.blogspot.com/2006/08/my-first-jquery-plugin.html Stop downloading just listen :) David ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- John Resig http://ejohn.org/ [EMAIL PROTECTED] ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Slidebar with jquery
You can change the look to whatever you want.On 8/28/06, testebr [EMAIL PROTECTED] wrote: Nice... this example http://interface.eyecon.ro/demos/slider.html is too muchuggly ehehhe and dont work in my IE 7.Any alternative?Matt Stith wrote: Try out interface's Slider. http://interface.eyecon.ro/demos On 8/24/06, testebr [EMAIL PROTECTED] wrote: Hi, Anyone know where I can find anSlideBar with Jquery like this website http://www.strategyinformer.com/pc/hiddenstrokeii/interview.html http://www.strategyinformer.com/pc/hiddenstrokeii/interview.html (prototype based) ? see the YOUR SCORE BLOCK Thanks. -- View this message in context: http://www.nabble.com/Slidebar-with-jquery-tf2161977.html#a5975055 Sent from the JQuery forum 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/Slidebar-with-jquery-tf2161977.html#a6030615Sent from the JQuery forum at Nabble.com.___jQuery mailing list discuss@jquery.comhttp://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] animate() support for custom tween/easing 'formulas'
I did some work in this area, too. If it's useful, it's BSD-ed. http://mrclay.org/js/transition/ That is /awesome/. I just keep watching them slide in over-and-over again. I've gotta add this in now ;-) --John ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Thickbox 2.0 and Jquery 1.0
I was able to get Thickbox working with no effort at all. What exactly are you trying to do?On 8/28/06, Albert García [EMAIL PROTECTED] wrote: Hi everybody, is planned to migrate Thickbox 2.0 to use jquery 1.0 in short term? Now it launches an error on accessing Window.nodeType property. Thanks! --Albert GarciaOboLog » tus pensamientos en redhttp://www.obolog.com ___Mi blog en http://obokaman.obolog.com ___jQuery mailing listdiscuss@jquery.com http://jquery.com/discuss/-- Yehuda KatzWeb Developer(ph)718.877.1325(fax) 718.686.4288 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Vitamin newsletter signup in jQuery?
A way to go is giving the form and all inputs an id and use the ajax function $.post example : form id=form action=test.php input type=text name=text id=textbr input type=submit value=send id=send /form the javascript code would be $(send).click(function(){ $.post(test.php, {test: $(text).val()}, function(xml){ $(form).html('Email send'); } ); return false; }); Or you could go the php way and change a variable when the form is posted and wrap an if else around the form. ?php if(count($_POST) 0) { $var = 1; } if($var == 1){ ? Email send ?php }else{ ? form id=form action=test.php input type=text name=text id=textbr input type=submit value=send id=send /form ?php } ? This is quick code so don't put it on you site like it is. Hambo Design (Steven) schreef: Is it possible to recreate the newsletter signup at www.thinkvitamin.com http://www.thinkvitamin.com/ using jQuery? I am not very proficient with jQuery (only just used the scroll feature today!). At the moment I have a php form which just squirts an h3 at the beginning if the send is successful but I’d love to just instantly hide the form and replace it with a ‘Your email has been sent’ message. Thanks in advance, Steven Hambleton -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.11.6/430 - Release Date: 28/08/2006 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Central Hosting of Latest File
Have you considered using goggle projects (http://code.google.com/hosting/) to host the central latest file and maybe related plugins? The reason I mention it is because we can all benefit from caching to load the file quickly. Also, I think the popularity of jQuery is going to grow and Google has pretty solid uptime. Barring that, we could host a file on our servers to use across our enterprise. Congratulations on 1.0! We should have some things live in the next few months. I havent been this psyched since CSS first came out! Glen Lipka | Sr. UI Designer, WCG | Intuit Inc. | ext. 46435 | Cell: 510.701.8203 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] help w/ getIfModified
Still working on the GetIfModified as outlined here: http://www.mail-archive.com/discuss@jquery.com/msg00481.html Any examples of how to use this properly? I'm not sure how to grab the states success, failure, notomdified etc. will ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Central Hosting of Latest File
Have you considered using goggle projects (http://code.google.com/hosting/) to host the central latest file and maybe related plugins? The reason I mention it is because we can all benefit from caching to load the file quickly. Also, I think the popularity of jQuery is going to grow and Google has pretty solid uptime. Barring that, we could host a file on our servers to use across our enterprise. You shouldn't be loading any .js files from jquery.com except for test purposes. Always copy the .js to your own server and load it from there. The same is true for any other external .js libraries you are using. -Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] del.icio.us powered mp3 player plugin
David, I tested it with IE5.5, IE6, IE7RC1, FF1.5.0.6 and Opera9 and it works fine... if you remove object and only keep embed: http://fmarcia.info/jquery/mp3/mp3.html I don't know if object is mandatory for other browsers; if so, you could use $.browser to check it. Franck. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] help w/ getIfModified
Well with HTTP codes, i know that code 200 is success.. thats about it..On 8/29/06, Will Jessup [EMAIL PROTECTED] wrote:Still working on the GetIfModified as outlined here: http://www.mail-archive.com/discuss@jquery.com/msg00481.htmlAny examples of how to use this properly? I'm not sure how to grab thestates success, failure, notomdified etc.will___ jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] help w/ getIfModified
On 8/29/06, Will Jessup [EMAIL PROTECTED] wrote: Matt,Hehe. well jQuery has quite a bit of cool code I just can't seem to getit to work.Firstly it seem the functions $.ajaxStart, $.ajaxComplete etc. areattached globally and triggered when they should be, 2nd it says that there is a 2nd variable for the callback that has thestatus in it, like$.getIfModified('/ajaxmessages.php', '', function(json, error){so the callback fires on error(?), but doesn't work. WillTry this link: http://proj.jquery.com/discuss/2006-July/007606/I believe it has the answers you are looking for. Cheers,-- Shawn TumeyCofounderMT Web Productions LLC ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] help w/ getIfModified
Shawn , Ah so obvious now, thx. Will On 8/29/06, *Will Jessup* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Matt, Hehe. well jQuery has quite a bit of cool code I just can't seem to get it to work. Firstly it seem the functions $.ajaxStart, $.ajaxComplete etc. are attached globally and triggered when they should be, 2nd it says that there is a 2nd variable for the callback that has the status in it, like $.getIfModified('/ajaxmessages.php', '', function(json, error){ so the callback fires on error(?), but doesn't work. Will Try this link: http://proj.jquery.com/discuss/2006-July/007606/ I believe it has the answers you are looking for. Cheers, -- Shawn Tumey Cofounder MT Web Productions LLC ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] help w/ getIfModified
Can anyone decode this for me - alert(res) //null jQuery.ajax( type, url, params,function(res, status){ alert(res) // contains the response code if ( status == success || !ifModified status == notmodified ) { // Inject the HTML into all the matched elements self.html(res.responseText).each( callback, [res.responseText, status] ); // Execute all the scripts inside of the newly-injected HTML $(script, self).each(function(){ if ( this.src ) $.getScript( this.src ); else eval.call( window, this.text || this.textContent || this.innerHTML || ); }); } else callback.apply( self, [res.responseText, status] ); } on lines 1 and 3 I put alerts - I'm confused as where the res variable in the function comes from - since res does not exist before the function in the code how can it be a variable in the function? On 8/29/06, *Will Jessup* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Matt, Hehe. well jQuery has quite a bit of cool code I just can't seem to get it to work. Firstly it seem the functions $.ajaxStart, $.ajaxComplete etc. are attached globally and triggered when they should be, 2nd it says that there is a 2nd variable for the callback that has the status in it, like $.getIfModified('/ajaxmessages.php', '', function(json, error){ so the callback fires on error(?), but doesn't work. Will Try this link: http://proj.jquery.com/discuss/2006-July/007606/ I believe it has the answers you are looking for. Cheers, -- Shawn Tumey Cofounder MT Web Productions LLC ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/