Re: [jQuery] jQuery Getting Started guide
On Mon, August 21, 2006 22:51, Jörn Zaefferer said: > Hi folks! > > I wrote a Getting Started guide for jQuery. The first version is now > available: > http://fuzz.bassistance.de/jqueryDev/jquery-getting-started.html > It definitley lacks some more CSS for a nice presentation. Apart from > that, > I invite you to read and try it and provide whatever comments you like. > > I hope this guide can be improved to provide a good introduction for > everyone new to jQuery. > Great idea! I think the biggest problem for jQuery beginners is the "Using selectors" part. So I would suggest much more examples there! Michael ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] How to combine lt and gt?
> $("p").bt(2,5) > > for between. This should mathematical be 2 < x < 5. I like that - I'll probably add it in post-1.0. --John ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] How to combine lt and gt?
John Resig schrieb: > The order is definitely important. Every time you do a "filter" (like > eq or lt) it prunes the list down so all future operations must be > relative to the previous operations (If that makes any sense). > > Additionally, I just recently added shortcut methods for eq/lt/gt so you can > do: > > $("p").lt(5).gt(3) > > When you do something like this, you probably want everything between 2 and 5, so why not extend jQuery to something like $("p").bt(2,5) for between. This should mathematical be 2 < x < 5. Michael ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery and openjsan.org
> Frankly, I think a better solution for jQuery is to become its own > repository. :-) Provide svn space for contrib modules, under a common > MIT/GPL dual license, automate the documentation, make it easy to mix and > match. Right now there's just so many cool things being announced on the > list here that I can't keep up with them, but none of it ends up on the web > site, except maybe in the blog. For a modular system like jQuery, a better > way to present and advertise those contributed modules and plugins is very > important. That, and the Internationalization of jQuery, are the two big projects that are going to take place post-1.0. They won't be easy, but the results will be really nice :-) --John ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery and openjsan.org
I'm a PHP guy through and through, and hate Perl. Am I what you're looking for? :-) Seriously thought, I'd not actually heard of openjsan until this thread. The problem with CPAN-like systems, though (such as PEAR, the PHP equivalent), is that they get big, fast. Just a base PEAR install is huge, and includes a ton of test code, documentation, configs, and other things that are completely irrelevant to running the code. They also really don't work in individual downloads. You have to use their installer, which means pretty much you have to have a dedicated server that you're running things on. You can set things up without it, but frankly they're all hacks that only sorta work. The other catch is inter-dependency. That means all code has to be written to essentially the same standard. It also means you get a lot of code that requires other code that requires other code. That's OK on a server but for Javascript, that becomes a TON of code you need to send to the client. Add t that the fact that there are so many different common standards for JS coding makes the problem even worse. Frankly, I think a better solution for jQuery is to become its own repository. :-) Provide svn space for contrib modules, under a common MIT/GPL dual license, automate the documentation, make it easy to mix and match. Right now there's just so many cool things being announced on the list here that I can't keep up with them, but none of it ends up on the web site, except maybe in the blog. For a modular system like jQuery, a better way to present and advertise those contributed modules and plugins is very important. On Monday 21 August 2006 21:03, John Beppu wrote: > Cool. I'm glad Perl is still alive. ;-) > > However, I would really like to hear from the non-Perl people who are > so underrepresented on openjsan.org. Is there anyone on this jQuery > Discussion mailing list who is *NOT* a Perl hacker? > > If so, I'd really like to hear your thoughts on openjsan.org and how > we could make it better. > > (...or, if you could suggest a place where I can find non-Perl people > doing serious JavaScript development, that's cool, too. The more > voices, the better.) > > On 8/21/06, ashutosh bijoor <[EMAIL PROTECTED]> wrote: > > I second Stephen's opinions, but again, I'm a Perl guy too :-) > > -Ashutosh > > > > On 8/22/06, Stephen Howard <[EMAIL PROTECTED] > wrote: > > > I know you wanted to hear from non-Perl programmers, but I thought I'd > > > throw this in, as I've suggested on the jQuery list in the past that > > > people submit their jQuery work to JSAN (I have a couple of pre-jQuery > > > items on JSAN myself) > > > > > > The killer I think for JSAN is the infrastructure's immaturity. At > > > least for a time, Casey seemed to be running the uploads for JSAN > > > manually, so you never knew when your code would hit the repository. > > > > > > Another thing I think needs improving is a browseable interface to the > > > repository. I think this is one of cpan.org's strengths that is > > > missing from openjsan. In addition to the search box > > > (search.cpan.org), CPAN has browseable categories for modules. No such > > > interface seems to exist for JSAN. > > > > > > People from other language backgrounds may have different objections, > > > but those are what seem to be standing in the way from my point of > > > view. > > > > > > -Stephen > > > > > > John Beppu wrote: > > > > to John Resig: > > > > > > > > Have you considered uploading jQuery to openjsan.org? > > > > > > > > I ask, becuase I feel the Perl guys could use a decent foundation to > > > > do their work on, and jQuery might fit the bill. > > > > > > > > > > > > > > > > to everyone else: > > > > > > > > I'm a little concerned about JSAN, because it started out as a > > > > promising project to bring something CPAN-like for all Javascript > > > > programmers, but it's kinda fizzled out after the initial excitement. > > > > One serious problem in my mind is that it's mainly Perl people who > > > > seem to care about it right now while people from other language > > > > communities (like Ruby, Python, PHP, Java, etc.) seem to ignore it. > > > > In the very beginning, this wasn't the case, because the guy who > > > > wrote Prototype was willing to work with the JSAN group, and the guy > > > > who wrote MochiKit (a python guy) actually has uploaded a few > > > > versions to openjsan.org (although it seems like he hasn't uploaded > > > > the latest versions). There was an initial willingness by a diverse > > > > group to work together, but this doesn't seem to be the case anymore, > > > > and that's sad. > > > > > > > > My hunch is that aspects of openjsan.org take a bit too much from the > > > > Perl community, and for whatever reason, this is a turn-off to > > > > non-Perl programmers. (I think using POD for Javascript > > > > documentation may be one of these things but it's hard for me to > > > > say) > > > > > > >
Re: [jQuery] jQuery and openjsan.org
It's nice to have all those libraries in one place, but without some kind of comparison or rating system its not really that much more useful than google.When I first started hunting for libraries, I was interested in their specialty/category, strengths, weaknesses, development activity, and community support (ie mailing list), bugs. And now that I've found one I like (and only one - I find code easier to manage if you stick to one flavour) I might switch - but only if I am presented with all this information in a convenient info-at-a-glance format, and can read about other people's experience with it. Some possibilities:Less drill down. Put a description of the library on the main page with the name. Combine the file list and documentation pages (or make the file page a library documentation page) Quality/activity/usability rating systemForum/commentsBlairOn 8/22/06, John Beppu < [EMAIL PROTECTED]> wrote:Cool. I'm glad Perl is still alive. ;-)However, I would really like to hear from the non-Perl people who are so underrepresented on openjsan.org. Is there anyone on this jQueryDiscussion mailing list who is *NOT* a Perl hacker?If so, I'd really like to hear your thoughts on openjsan.org and howwe could make it better.(...or, if you could suggest a place where I can find non-Perl peopledoing serious _javascript_ development, that's cool, too. The morevoices, the better.) On 8/21/06, ashutosh bijoor <[EMAIL PROTECTED]> wrote:> I second Stephen's opinions, but again, I'm a Perl guy too :-)> -Ashutosh>>> On 8/22/06, Stephen Howard < [EMAIL PROTECTED] > wrote:> > I know you wanted to hear from non-Perl programmers, but I thought I'd> > throw this in, as I've suggested on the jQuery list in the past that > > people submit their jQuery work to JSAN (I have a couple of pre-jQuery> > items on JSAN myself)> >> > The killer I think for JSAN is the infrastructure's immaturity. At least > > for a time, Casey seemed to be running the uploads for JSAN manually, so> > you never knew when your code would hit the repository.> >> > Another thing I think needs improving is a browseable interface to the > > repository. I think this is one of cpan.org's strengths that is missing> > from openjsan. In addition to the search box (search.cpan.org ), CPAN> > has browseable categories for modules. No such interface seems to exist> > for JSAN.> >> > People from other language backgrounds may have different objections,> > but those are what seem to be standing in the way from my point of view. > >> > -Stephen> >> > John Beppu wrote:> > > to John Resig:> > >> > > Have you considered uploading jQuery to openjsan.org ?> > >> > > I ask, becuase I feel the Perl guys could use a decent foundation to> > > do their work on, and jQuery might fit the bill.> > >> > > > > >> > > to everyone else:> > >> > > I'm a little concerned about JSAN, because it started out as a> > > promising project to bring something CPAN-like for all _javascript_ > > > programmers, but it's kinda fizzled out after the initial excitement.> > > One serious problem in my mind is that it's mainly Perl people who> > > seem to care about it right now while people from other language > > > communities (like Ruby, Python, PHP, Java, etc.) seem to ignore it.> > > In the very beginning, this wasn't the case, because the guy who wrote> > > Prototype was willing to work with the JSAN group, and the guy who > > > wrote MochiKit (a python guy) actually has uploaded a few versions to> > > openjsan.org (although it seems like he hasn't uploaded the latest> > > versions). There was an initial willingness by a diverse group to > > > work together, but this doesn't seem to be the case anymore, and> > > that's sad.> > >> > > My hunch is that aspects of openjsan.org take a bit too much from the> > > Perl community, and for whatever reason, this is a turn-off to> > > non-Perl programmers. (I think using POD for _javascript_ documentation> > > may be one of these things but it's hard for me to say) > > >> > >> > >> > > Anyway, I'd like to hear from non-Perl programmers what they think of> > > openjsan.org and especially what they DO NOT like about openjsan.org> > > (so we'll know what to fix).> > >> > > ___> > > jQuery mailing list> > > discuss@jquery.com> > > http://jquery.com/discuss/> > >> >> > ___ > > jQuery mailing list> > discuss@jquery.com> > http://jquery.com/discuss/> > --> Reach1to1 Communications> http://www.reach1to1.com> [EMAIL PROTECTED]> 98201-94408> ___ > jQuery mailing list> discuss@jquery.com> http://jquery.com/discuss/>>>___ jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] html() + firebug = funky
Yeah, I think I accidentally regressed on that, I'll see if I can't resolve it for 1.0: Re-opened: http://proj.jquery.com/dev/bugs/bug/60/ --John > > There are two bug filed for this: > http://proj.jquery.com/dev/bugs/bug/22/ > http://proj.jquery.com/dev/bugs/bug/60/ > > But for some reason they have been closed (even though it still occurs > in the latest SVN). > > Simple test: > > src="http://jquery.com/src/jquery-svn.js";> > Hello > > > > > The DIV 'foo' ends up as > > html > > > You don't notice any difference in how it looks but you never know if > it may cause issues in the future - plus it makes debugging with > Firebug a bit harder (using the inspector). ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] New Plugin: jQEm - Interact with the base 'em' unit.
This is really great Dave - I've definitely needed something like this in some of my projects. A couple quick suggestions: - Using an event name like "fontSizeChange" may make more sense than "jqem". - Also, it's possible to pass arguments in to an event that's been triggered, like so: $.event.trigger("jqem", [ "cur_val", "old_val"]); meaning that the called function would receive: function( eventObj, cur_val, old_val ) { ... } Just a thought. --John On 8/21/06, Dave Cardwell <[EMAIL PROTECTED]> wrote: > Hello there, folks. > > While working on the next release of jQMinMax[1] (coming soon) it became > apparent that I'd need to be notified when the user increased or > decreased the font size. I can imagine there are a number of situations > where this might come in handy, thus I give you jQEM. > > The short version: it creates a 'jqem' event that is triggered globally > whenever a change in the value of 1em in the is detected. This > way, you can use jQuery's built in event (bind/unbind) functions. > > There are a few more features than that, so you may want to read the > rather hideous docs at the url below. > > [1] http://davecardwell.co.uk/geekery/javascript/jquery/jqminmax/ > [2] http://davecardwell.co.uk/geekery/javascript/jquery/jqem/0.1/ > > > Any feedback, requests or suggestions would be fantastic. > > > Best wishes, > Dave Cardwell ~ http://davecardwell.co.uk/ > > > > P.S. Mr Edwards - I know you read this list, and just wanted to say a > quick thank you for 'packer'. It's a fantastic little tool. > > ___ > 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] jQuery and openjsan.org
John - > Cool. I'm glad Perl is still alive. ;-) I'm a Perl guy too, but I wanna put in my 2 cents. ;-) I've been following JSAN since the very beginning and love the concept, and would love to see it grow. > If so, I'd really like to hear your thoughts on openjsan.org and how > we could make it better. Some of the biggest changes that I would make: - Feature modules prominently. - Categorization. - Detailed plugin descriptions (to browse by). - Less cryptic names (e.g. DOM.Util.0.13 -> DOM Utilities) - Detailed guide on how to get started - Use .zip instead of .tar.gz - Demo pages - Talk about modules in a practical sense (e.g. This is how you make a div slide down) as opposed to a programmatic sense (e.g. These are the methods that you could use to make a div slide down). This one is the hardest: - Some way to use the modules without needing to install/setup JSAN Essentially, you want to make the barrier to entry as low as possible, especially for a Javascript user (who, typically speaking, is not very technical) > (...or, if you could suggest a place where I can find non-Perl people > doing serious JavaScript development, that's cool, too. The more > voices, the better.) I know some places where I could shop the idea around, I'll see what I can conjure up. --John ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery and openjsan.org
Cool. I'm glad Perl is still alive. ;-) However, I would really like to hear from the non-Perl people who are so underrepresented on openjsan.org. Is there anyone on this jQuery Discussion mailing list who is *NOT* a Perl hacker? If so, I'd really like to hear your thoughts on openjsan.org and how we could make it better. (...or, if you could suggest a place where I can find non-Perl people doing serious JavaScript development, that's cool, too. The more voices, the better.) On 8/21/06, ashutosh bijoor <[EMAIL PROTECTED]> wrote: > I second Stephen's opinions, but again, I'm a Perl guy too :-) > -Ashutosh > > > On 8/22/06, Stephen Howard <[EMAIL PROTECTED] > wrote: > > I know you wanted to hear from non-Perl programmers, but I thought I'd > > throw this in, as I've suggested on the jQuery list in the past that > > people submit their jQuery work to JSAN (I have a couple of pre-jQuery > > items on JSAN myself) > > > > The killer I think for JSAN is the infrastructure's immaturity. At least > > for a time, Casey seemed to be running the uploads for JSAN manually, so > > you never knew when your code would hit the repository. > > > > Another thing I think needs improving is a browseable interface to the > > repository. I think this is one of cpan.org's strengths that is missing > > from openjsan. In addition to the search box (search.cpan.org), CPAN > > has browseable categories for modules. No such interface seems to exist > > for JSAN. > > > > People from other language backgrounds may have different objections, > > but those are what seem to be standing in the way from my point of view. > > > > -Stephen > > > > John Beppu wrote: > > > to John Resig: > > > > > > Have you considered uploading jQuery to openjsan.org? > > > > > > I ask, becuase I feel the Perl guys could use a decent foundation to > > > do their work on, and jQuery might fit the bill. > > > > > > > > > > > > to everyone else: > > > > > > I'm a little concerned about JSAN, because it started out as a > > > promising project to bring something CPAN-like for all Javascript > > > programmers, but it's kinda fizzled out after the initial excitement. > > > One serious problem in my mind is that it's mainly Perl people who > > > seem to care about it right now while people from other language > > > communities (like Ruby, Python, PHP, Java, etc.) seem to ignore it. > > > In the very beginning, this wasn't the case, because the guy who wrote > > > Prototype was willing to work with the JSAN group, and the guy who > > > wrote MochiKit (a python guy) actually has uploaded a few versions to > > > openjsan.org (although it seems like he hasn't uploaded the latest > > > versions). There was an initial willingness by a diverse group to > > > work together, but this doesn't seem to be the case anymore, and > > > that's sad. > > > > > > My hunch is that aspects of openjsan.org take a bit too much from the > > > Perl community, and for whatever reason, this is a turn-off to > > > non-Perl programmers. (I think using POD for Javascript documentation > > > may be one of these things but it's hard for me to say) > > > > > > > > > > > > Anyway, I'd like to hear from non-Perl programmers what they think of > > > openjsan.org and especially what they DO NOT like about openjsan.org > > > (so we'll know what to fix). > > > > > > ___ > > > jQuery mailing list > > > discuss@jquery.com > > > http://jquery.com/discuss/ > > > > > > > ___ > > jQuery mailing list > > discuss@jquery.com > > http://jquery.com/discuss/ > > > > > > -- > Reach1to1 Communications > http://www.reach1to1.com > [EMAIL PROTECTED] > 98201-94408 > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > > > ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] "Erasing" contents of a form
Thanks Ashutosh /Dave. Yes Dave, I did mean #commentsFormZ - sorry. Neither of these solutions fired, so perhaps there must be something else in my code screwing things up. The site is at http://www.callas.org.nz/e_books.asp?id=show&pID=1&cID=156 - feel free to add a comment! Cheers, Bruce At 01:27 p.m. 22/08/2006, you wrote: > >> Or do $("formElement").reset(); > > I cannot get the .reset() option to fire at all. > >Is there a reset() method on the jQuery object? I didn't see one. Also I >think you meant #commentsFormZ, it's the id of the form, right? Can you try >this? > > $("#commentsFormZ")[0].reset(); > > > >___ >jQuery mailing list >discuss@jquery.com >http://jquery.com/discuss/ Bruce R MacKay College of Sciences PN 452 Massey University Private Bag 11222 Palmerston North New Zealand p ++64 6 3504423 f ++64 6 3505610 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery and openjsan.org
I second Stephen's opinions, but again, I'm a Perl guy too :-)-AshutoshOn 8/22/06, Stephen Howard <[EMAIL PROTECTED] > wrote:I know you wanted to hear from non-Perl programmers, but I thought I'd throw this in, as I've suggested on the jQuery list in the past thatpeople submit their jQuery work to JSAN (I have a couple of pre-jQueryitems on JSAN myself)The killer I think for JSAN is the infrastructure's immaturity. At least for a time, Casey seemed to be running the uploads for JSAN manually, soyou never knew when your code would hit the repository.Another thing I think needs improving is a browseable interface to therepository. I think this is one of cpan.org's strengths that is missingfrom openjsan. In addition to the search box (search.cpan.org), CPANhas browseable categories for modules. No such interface seems to exist for JSAN.People from other language backgrounds may have different objections,but those are what seem to be standing in the way from my point of view.-StephenJohn Beppu wrote:> to John Resig: >> Have you considered uploading jQuery to openjsan.org?>> I ask, becuase I feel the Perl guys could use a decent foundation to> do their work on, and jQuery might fit the bill. >> >> to everyone else:>> I'm a little concerned about JSAN, because it started out as a> promising project to bring something CPAN-like for all _javascript_> programmers, but it's kinda fizzled out after the initial excitement. > One serious problem in my mind is that it's mainly Perl people who> seem to care about it right now while people from other language> communities (like Ruby, Python, PHP, Java, etc.) seem to ignore it. > In the very beginning, this wasn't the case, because the guy who wrote> Prototype was willing to work with the JSAN group, and the guy who> wrote MochiKit (a python guy) actually has uploaded a few versions to > openjsan.org (although it seems like he hasn't uploaded the latest> versions). There was an initial willingness by a diverse group to> work together, but this doesn't seem to be the case anymore, and > that's sad.>> My hunch is that aspects of openjsan.org take a bit too much from the> Perl community, and for whatever reason, this is a turn-off to> non-Perl programmers. (I think using POD for _javascript_ documentation > may be one of these things but it's hard for me to say) Anyway, I'd like to hear from non-Perl programmers what they think of> openjsan.org and especially what they DO NOT like about openjsan.org> (so we'll know what to fix).>> ___> jQuery mailing list > discuss@jquery.com> http://jquery.com/discuss/>___jQuery mailing list discuss@jquery.comhttp://jquery.com/discuss/-- Reach1to1 Communications http://www.reach1to1.com[EMAIL PROTECTED]98201-94408 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] "Erasing" contents of a form
>> Or do $("formElement").reset(); > I cannot get the .reset() option to fire at all. Is there a reset() method on the jQuery object? I didn't see one. Also I think you meant #commentsFormZ, it's the id of the form, right? Can you try this? $("#commentsFormZ")[0].reset(); ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] "Erasing" contents of a form
$("#sEmail").get(0).reset();should work. reset() is not a chainable method of jquery.-AshutoshOn 8/22/06, Bruce MacKay < [EMAIL PROTECTED]> wrote: Thanks for the responses Kenton,Matt. I've only been partially successful however in progressing these solutions. I have tried your solutions: The .val is partially successful in that it erases a form element's content, but only by inserting a blank space in its place (e.g. $("#sComment").val(" ");). The ID of my form is 'commentsFormZ' but I cannot get the .reset() option to fire at all. What am I doing wrong? My code (with the various attempts) is: $.fn.ajaxSubmit = function(e) {this.submit(function(){ var params = {}; $(this) .find("[EMAIL PROTECTED], [EMAIL PROTECTED]'text'], [EMAIL PROTECTED]'hidden'], [EMAIL PROTECTED]'password'], [EMAIL PROTECTED], textarea") .filter(":enabled") .each(function() { params[ this.name || this.id || this.parentNode.name || this.parentNode.id ] = this.value; });$("div#indicate").show();$("div#comments3").hide(); $.post(this.getAttribute("action"), params, function(text){ $("div#indicate").hide(); $("div#comments2").html(text).fadeIn("slow"); $("commentsFormZ").reset(); $("#sComment").val(" "); $("#sEmail").reset(); $('#hilightcomment').highlightFade({color:'yellow',speed:2000,iterator:'linear'}) }); return false; });} At 12:46 p.m. 21/08/2006, you wrote: Or do $("formElement").reset(); , that would reset the form to its original state. On 8/20/06, Bruce MacKay < [EMAIL PROTECTED]> wrote: Hi folks, I use the function below to send user comments to a database and get refreshed on the current page - no problems. However, I cannot seem to "erase" the contents of the comments form (id=NewCommentZ) for subsequent use - the text area and text input elements remain populated with the previously entered content. The disabled lines in the code below are my guesses - no more - of how to erase the form's contents, but I wasn't lucky. I'd appreciate someone providing me with some direction/hint towards a solution. Thanks, Bruce $.fn.ajaxSubmit = function(e) {this.submit(function(){ var params = {}; $(this) .find("[EMAIL PROTECTED], [EMAIL PROTECTED]'text'], [EMAIL PROTECTED]'hidden'], [EMAIL PROTECTED]'password'], [EMAIL PROTECTED], textarea") .filter(":enabled") .each(function() { params[ this.name || this.id || this.parentNode.name || this.parentNode.id ] = this.value; }); toggleContent('NewCommentZ');$.post(this.getAttribute("action"), params, function(text){ $("div#comments2").html(text).fadeIn("slow"); $('#hilightcomment').highlightFade({color:'yellow',speed:2000,iterator:'linear'}) //$("NewCommentZ").html(""); //$(this).find("[EMAIL PROTECTED], [EMAIL PROTECTED]'text'], [EMAIL PROTECTED]'hidden'], [EMAIL PROTECTED]'password'], [EMAIL PROTECTED], textarea").html(""); }); return false; });} ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ Bruce R MacKay College of Sciences PN 452 Massey University Private Bag 11222 Palmerston North New Zealand p ++64 6 3504423 f ++64 6 3505610 ___jQuery mailing listdiscuss@jquery.com http://jquery.com/discuss/-- Reach1to1 Communicationshttp://www.reach1to1.com [EMAIL PROTECTED]98201-94408 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] bad example on documentation page
http://john.jquery.com/jquery/docs/index.xml If you click "B" then "background( )" the result is operating on some html without a background set. Seeing the "" *empty* result as the result is fairly worthless. It might be more useful to start with a background and show the returned results with something in them. Just a nitpick - good docs help a ton though. -- View this message in context: http://www.nabble.com/bad-example-on-documentation-page-tf2143806.html#a5918027 Sent from the JQuery forum at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] "Erasing" contents of a form
Thanks for the responses Kenton,Matt. I've only been partially successful however in progressing these solutions. I have tried your solutions: The .val is partially successful in that it erases a form element's content, but only by inserting a blank space in its place (e.g. $("#sComment").val(" ");). The ID of my form is 'commentsFormZ' but I cannot get the .reset() option to fire at all. What am I doing wrong? My code (with the various attempts) is: $.fn.ajaxSubmit = function(e) {this.submit(function(){ var params = {}; $(this) .find("[EMAIL PROTECTED], [EMAIL PROTECTED]'text'], [EMAIL PROTECTED]'hidden'], [EMAIL PROTECTED]'password'], [EMAIL PROTECTED], textarea") .filter(":enabled") .each(function() { params[ this.name || this.id || this.parentNode.name || this.parentNode.id ] = this.value; });$("div#indicate").show();$("div#comments3").hide(); $.post(this.getAttribute("action"), params, function(text){ $("div#indicate").hide(); $("div#comments2").html(text).fadeIn("slow"); $("commentsFormZ").reset(); $("#sComment").val(" "); $("#sEmail").reset(); $('#hilightcomment').highlightFade({color:'yellow',speed:2000,iterator:'linear'}) }); return false; });} At 12:46 p.m. 21/08/2006, you wrote: Or do $("formElement").reset(); , that would reset the form to its original state. On 8/20/06, Bruce MacKay < [EMAIL PROTECTED]> wrote: Hi folks, I use the function below to send user comments to a database and get refreshed on the current page - no problems. However, I cannot seem to "erase" the contents of the comments form (id=NewCommentZ) for subsequent use - the text area and text input elements remain populated with the previously entered content. The disabled lines in the code below are my guesses - no more - of how to erase the form's contents, but I wasn't lucky. I'd appreciate someone providing me with some direction/hint towards a solution. Thanks, Bruce $.fn.ajaxSubmit = function(e) {this.submit(function(){ var params = {}; $(this) .find("[EMAIL PROTECTED], [EMAIL PROTECTED]'text'], [EMAIL PROTECTED]'hidden'], [EMAIL PROTECTED]'password'], [EMAIL PROTECTED], textarea") .filter(":enabled") .each(function() { params[ this.name || this.id || this.parentNode.name || this.parentNode.id ] = this.value; }); toggleContent('NewCommentZ');$.post(this.getAttribute("action"), params, function(text){ $("div#comments2").html(text).fadeIn("slow"); $('#hilightcomment').highlightFade({color:'yellow',speed:2000,iterator:'linear'}) //$("NewCommentZ").html(""); //$(this).find("[EMAIL PROTECTED], [EMAIL PROTECTED]'text'], [EMAIL PROTECTED]'hidden'], [EMAIL PROTECTED]'password'], [EMAIL PROTECTED], textarea").html(""); }); return false; });} ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ Bruce R MacKay College of Sciences PN 452 Massey University Private Bag 11222 Palmerston North New Zealand p ++64 6 3504423 f ++64 6 3505610 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery via NNTP @ GMANE
> Per my request, jQuery mailing list is now available via NNTP at: > > nntp://news.gmane.org/gmane.comp.lang.javascript.jquery I tried to get jQuery on GMANE back in February but they never finished setting it up... oh well, moot point now. Thanks for setting it up! --John ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery via NNTP @ GMANE
Ah thanks.On 8/21/06, John Beppu <[EMAIL PROTECTED]> wrote: On 8/20/06, Matt Stith <[EMAIL PROTECTED]> wrote:> im a noob here, how to i access that url?> > nntp://news.gmane.org/gmane.comp.lang._javascript_.jquery You could use a news reading program (google for: nntp software), oryou can go to:http://news.gmane.org/gmane.comp.lang._javascript_.jquery/ ___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery Getting Started guide
Sam Collett wrote: > Looks like it might be very useful for those who want to start working > with jQuery. > > I would suggest with each demo to have a sample page (or maybe you > could do a dynamic popup based on the code within each tag). The second paragraph on that page explains exactly why that wasn't done. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery Getting Started guide
On 21/08/06, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > Hi folks! > > I wrote a Getting Started guide for jQuery. The first version is now > available: http://fuzz.bassistance.de/jqueryDev/jquery-getting-started.html > It definitley lacks some more CSS for a nice presentation. Apart from that, > I invite you to read and try it and provide whatever comments you like. > > I hope this guide can be improved to provide a good introduction for > everyone new to jQuery. > > -- Jörn > Looks like it might be very useful for those who want to start working with jQuery. I would suggest with each demo to have a sample page (or maybe you could do a dynamic popup based on the code within each tag). ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] How to combine lt and gt?
I wouldn't call it a bug, i'd say its a non-obvious expected result. If you wanted, you could add .between(x, y) that would be a handy shortcut. John Resig wrote: >> If p < 5 and p > 3, isn't p = 4? >> >> $("p:eq(4)") :) >> >> Otherwise, Klaus's option works: >> >> $("p:lt(5)").filter(":gt(3)") > > See, there's something of an issue surrounding this, though. I haven't > decided if its a bug yet, or not. For example, assume the list: > > 1 2 3 4 5 6 7 8 > > doing :lt(5) gives you > 1 2 3 4 > then doing :gt(3) gives you > 4 > > However, doing :gt(3) first, gives you: > 4 5 6 7 8 > then doing :lt(5) gives you > 4 5 6 7 > > The order is definitely important. Every time you do a "filter" (like > eq or lt) it prunes the list down so all future operations must be > relative to the previous operations (If that makes any sense). > > Additionally, I just recently added shortcut methods for eq/lt/gt so you can > do: > > $("p").lt(5).gt(3) > > --John > > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jQuery Getting Started guide
Hi folks! I wrote a Getting Started guide for jQuery. The first version is now available: http://fuzz.bassistance.de/jqueryDev/jquery-getting-started.html It definitley lacks some more CSS for a nice presentation. Apart from that, I invite you to read and try it and provide whatever comments you like. I hope this guide can be improved to provide a good introduction for everyone new to jQuery. -- Jörn ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] New Plugin: jQEm - Interact with the base 'em' unit.
Hello there, folks. While working on the next release of jQMinMax[1] (coming soon) it became apparent that I'd need to be notified when the user increased or decreased the font size. I can imagine there are a number of situations where this might come in handy, thus I give you jQEM. The short version: it creates a 'jqem' event that is triggered globally whenever a change in the value of 1em in the is detected. This way, you can use jQuery's built in event (bind/unbind) functions. There are a few more features than that, so you may want to read the rather hideous docs at the url below. [1] http://davecardwell.co.uk/geekery/javascript/jquery/jqminmax/ [2] http://davecardwell.co.uk/geekery/javascript/jquery/jqem/0.1/ Any feedback, requests or suggestions would be fantastic. Best wishes, Dave Cardwell ~ http://davecardwell.co.uk/ P.S. Mr Edwards - I know you read this list, and just wanted to say a quick thank you for 'packer'. It's a fantastic little tool. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery via NNTP @ GMANE
On 8/20/06, Matt Stith <[EMAIL PROTECTED]> wrote: > im a noob here, how to i access that url? > > nntp://news.gmane.org/gmane.comp.lang.javascript.jquery You could use a news reading program (google for: nntp software), or you can go to: http://news.gmane.org/gmane.comp.lang.javascript.jquery/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery and openjsan.org
I know you wanted to hear from non-Perl programmers, but I thought I'd throw this in, as I've suggested on the jQuery list in the past that people submit their jQuery work to JSAN (I have a couple of pre-jQuery items on JSAN myself) The killer I think for JSAN is the infrastructure's immaturity. At least for a time, Casey seemed to be running the uploads for JSAN manually, so you never knew when your code would hit the repository. Another thing I think needs improving is a browseable interface to the repository. I think this is one of cpan.org's strengths that is missing from openjsan. In addition to the search box (search.cpan.org), CPAN has browseable categories for modules. No such interface seems to exist for JSAN. People from other language backgrounds may have different objections, but those are what seem to be standing in the way from my point of view. -Stephen John Beppu wrote: > to John Resig: > > Have you considered uploading jQuery to openjsan.org? > > I ask, becuase I feel the Perl guys could use a decent foundation to > do their work on, and jQuery might fit the bill. > > > > to everyone else: > > I'm a little concerned about JSAN, because it started out as a > promising project to bring something CPAN-like for all Javascript > programmers, but it's kinda fizzled out after the initial excitement. > One serious problem in my mind is that it's mainly Perl people who > seem to care about it right now while people from other language > communities (like Ruby, Python, PHP, Java, etc.) seem to ignore it. > In the very beginning, this wasn't the case, because the guy who wrote > Prototype was willing to work with the JSAN group, and the guy who > wrote MochiKit (a python guy) actually has uploaded a few versions to > openjsan.org (although it seems like he hasn't uploaded the latest > versions). There was an initial willingness by a diverse group to > work together, but this doesn't seem to be the case anymore, and > that's sad. > > My hunch is that aspects of openjsan.org take a bit too much from the > Perl community, and for whatever reason, this is a turn-off to > non-Perl programmers. (I think using POD for Javascript documentation > may be one of these things but it's hard for me to say) > > > > Anyway, I'd like to hear from non-Perl programmers what they think of > openjsan.org and especially what they DO NOT like about openjsan.org > (so we'll know what to fix). > > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] AJAXGrid plugin - text version
yeah, I forgot to warn you. I did a mistake in the database with the encoding and some characters are messed up so that's why on Internet Explorer it is possible not to load the entire data. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] slideDown/Up from/to settings
Sorry forgot the page http://stilbuero.de/jquery/tabs/On 21/08/06, Giuliano Marcangelo < [EMAIL PROTECTED]> wrote:Peter,try out Klaus's revised tabs..think that it will do the trick :)On 21/08/06, Peter Lambert < [EMAIL PROTECTED]> wrote:Hi,I am trying to create a set of tabbed panels. Whenever a tab is clicked instead of simply hiding one div and showing another I want the existingtab panel to grow or shrink to the size of the next tab panel. To dothis I have been looking at jQuery's slideDown and slideUp methods however they do not facilitate a *from *or *to *setting. Has anyonehacked a solution to this? Or created anything similar?Thx in advance,Peter(p.s Sorry for the resend)___ jQuery mailing listdiscuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] AJAXGrid plugin - text version
Looks impressive. It needs a fix to support special characters like é and ç On 8/21/06, Stefan Petre <[EMAIL PROTECTED]> wrote: > Maybe this time the text gets right: > > This is a plugin I worked on a lot. Has a lot of features: > > * in place edit: the cells converts into text field, textarea or select > * resizeable columns > * keyboard navigation > * live scrolling > * triggers events on select and onsort , based on those you can link > two grids or interact with other JavaScript function of your own > * AJAX driven data loading based on a simple XML format > * buffers data > * basic API to interact with the grid from outside > * the possibility to filter on server side the data inserted by user > > I'm working on: > > * on a reasonable date picker to edit date fields > * freezed columns on horizontal scroll > * resizeable grid > > demo at http://interface.eyecon.ro/demos/grid.html > > NOTE: don;t jump to use this plugin because: > >1. is a very alpha >2. I haven't decide under which license will be released > > > > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] slideDown/Up from/to settings
Peter,try out Klaus's revised tabs..think that it will do the trick:)On 21/08/06, Peter Lambert < [EMAIL PROTECTED]> wrote:Hi,I am trying to create a set of tabbed panels. Whenever a tab is clicked instead of simply hiding one div and showing another I want the existingtab panel to grow or shrink to the size of the next tab panel. To dothis I have been looking at jQuery's slideDown and slideUp methods however they do not facilitate a *from *or *to *setting. Has anyonehacked a solution to this? Or created anything similar?Thx in advance,Peter(p.s Sorry for the resend)___ jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jQuery and openjsan.org
to John Resig: Have you considered uploading jQuery to openjsan.org? I ask, becuase I feel the Perl guys could use a decent foundation to do their work on, and jQuery might fit the bill. to everyone else: I'm a little concerned about JSAN, because it started out as a promising project to bring something CPAN-like for all Javascript programmers, but it's kinda fizzled out after the initial excitement. One serious problem in my mind is that it's mainly Perl people who seem to care about it right now while people from other language communities (like Ruby, Python, PHP, Java, etc.) seem to ignore it. In the very beginning, this wasn't the case, because the guy who wrote Prototype was willing to work with the JSAN group, and the guy who wrote MochiKit (a python guy) actually has uploaded a few versions to openjsan.org (although it seems like he hasn't uploaded the latest versions). There was an initial willingness by a diverse group to work together, but this doesn't seem to be the case anymore, and that's sad. My hunch is that aspects of openjsan.org take a bit too much from the Perl community, and for whatever reason, this is a turn-off to non-Perl programmers. (I think using POD for Javascript documentation may be one of these things but it's hard for me to say) Anyway, I'd like to hear from non-Perl programmers what they think of openjsan.org and especially what they DO NOT like about openjsan.org (so we'll know what to fix). ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] How to combine lt and gt?
> If p < 5 and p > 3, isn't p = 4? > > $("p:eq(4)") :) > > Otherwise, Klaus's option works: > > $("p:lt(5)").filter(":gt(3)") See, there's something of an issue surrounding this, though. I haven't decided if its a bug yet, or not. For example, assume the list: 1 2 3 4 5 6 7 8 doing :lt(5) gives you 1 2 3 4 then doing :gt(3) gives you 4 However, doing :gt(3) first, gives you: 4 5 6 7 8 then doing :lt(5) gives you 4 5 6 7 The order is definitely important. Every time you do a "filter" (like eq or lt) it prunes the list down so all future operations must be relative to the previous operations (If that makes any sense). Additionally, I just recently added shortcut methods for eq/lt/gt so you can do: $("p").lt(5).gt(3) --John ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] AJAXGrid plugin - text version
Maybe this time the text gets right: This is a plugin I worked on a lot. Has a lot of features: * in place edit: the cells converts into text field, textarea or select * resizeable columns * keyboard navigation * live scrolling * triggers events on select and onsort , based on those you can link two grids or interact with other JavaScript function of your own * AJAX driven data loading based on a simple XML format * buffers data * basic API to interact with the grid from outside * the possibility to filter on server side the data inserted by user I'm working on: * on a reasonable date picker to edit date fields * freezed columns on horizontal scroll * resizeable grid demo at http://interface.eyecon.ro/demos/grid.html NOTE: don;t jump to use this plugin because: 1. is a very alpha 2. I haven't decide under which license will be released ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] AJAXGrid plugin
This is a plugin I worked on a lot. Has a lot of features: in place edit: the cells converts into text field, textarea or select resizeable columns keyboard navigation live scrolling triggers events on select and onsort , based on those you can link two grids or interact with other _javascript_ function of your own AJAX driven data loading based on a simple XML format buffers data basic API to interact with the grid from outside the possibility to filter on server side the data inserted by user I'm working on: on a reasonable date picker to edit date fields freezed columns on horizontal scroll resizeable grid demo at http://interface.eyecon.ro/demos/grid.html NOTE: don;t jump to use this plugin because: is a very alpha I haven't decide under which license will be released ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] TableSorter 1.0.3 plugin for jQuery released
Sam Collett wrote: > It just keeps getting better with each release... Thanks! > > Perhaps you could add GMT/UTC as well: > > Regular Expression = > [A-Za-z]{3},\s[0-3]?[0-9]\s[A-Za-z]{3}\s[0-9]{4}\s[0-1]?[0-9]:[0-5][0-9]:[0-9]?[0-9]\sGMT > > Will match > Mon, 21 Aug 2006 15:54:16 GMT Sure thing, will be adding it shortly. > Does anyone know of any sites that list the types of dates the > JavaScript Date object accepts? This page has a lot of information regarding dates in javascript: http://www.merlyn.demon.co.uk/js-dates.htm > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] TableSorter 1.0.3 plugin for jQuery released
Cheers.It seems to have cleared up now! :)On 21/08/06, Christian Bach <[EMAIL PROTECTED] > wrote:Sorry,I moved around the examples before the release and forgot to change the script-path.The examples should be working now :)/christianDan Atkinson wrote:> Hey!>> Great stuff Christian!>> I'm having a problem looking at your examples. >> It's telling me that $ is not defined. I'm not sure if you've put the js> file in the right place or not, but this happens in all my browsers.>> Cheers___ jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] How to combine lt and gt?
Hi Michael, If p < 5 and p > 3, isn't p = 4? $("p:eq(4)") :) Otherwise, Klaus's option works: $("p:lt(5)").filter(":gt(3)") ___ Karl Swedberg www.englishrules.com On Aug 21, 2006, at 9:41 AM, Michael Fuerst wrote: > Hi, > > how do I combine lt and gt? > > $("p:lt(5):gt(3)") or $("p:lt(5) gt(3)") doesn't seem to work... > > michael > > > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] TableSorter 1.0.3 plugin for jQuery released
The only stuff I know about is from w3schools: http://www.w3schools.com/jsref/jsref_obj_date.asp Sam Collett wrote: > > On 21/08/06, Christian Bach <[EMAIL PROTECTED]> wrote: >> ChangeLog >> -- >> * Renamed tablesorter.js > jquery.tablesorter.js >> * Bugfix: Now possible to have to instaces of tableSorter with diffrent >> defaults. >> * Bugfix: sortColumn would not work with value 0. >> * Added: Support for John's soon to be released pager plugin. >> * Added: Support for US long date with format: Jul 6, 2006 8:14 AM >> * Added: New parameter columnParser. See: example/columnparser.html >> * Added: New parameter minRowsForWaitingMsg. See: example/minrows.html >> * Added: Support for building tableSorter with Ant. See the ANT-README >> file. >> * Added: Small documentation (docs/index.html) >> >> Examples and downloads can be found here: >> http://motherrussia.polyester.se/jquery-plugins/tablesorter/ >> >> Enjoy! >> /christian >> > > It just keeps getting better with each release... > > Perhaps you could add GMT/UTC as well: > > Regular Expression = > [A-Za-z]{3},\s[0-3]?[0-9]\s[A-Za-z]{3}\s[0-9]{4}\s[0-1]?[0-9]:[0-5][0-9]:[0-9]?[0-9]\sGMT > > Will match > Mon, 21 Aug 2006 15:54:16 GMT > > Does anyone know of any sites that list the types of dates the > JavaScript Date object accepts? > > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > > -- View this message in context: http://www.nabble.com/TableSorter-1.0.3-plugin-for-jQuery-released-tf2140872.html#a5909972 Sent from the JQuery forum at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] TableSorter 1.0.3 plugin for jQuery released
Sorry, I moved around the examples before the release and forgot to change the script-path. The examples should be working now :) /christian Dan Atkinson wrote: > Hey! > > Great stuff Christian! > > I'm having a problem looking at your examples. > > It's telling me that $ is not defined. I'm not sure if you've put the js > file in the right place or not, but this happens in all my browsers. > > Cheers ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] TableSorter 1.0.3 plugin for jQuery released
On 21/08/06, Christian Bach <[EMAIL PROTECTED]> wrote: > ChangeLog > -- > * Renamed tablesorter.js > jquery.tablesorter.js > * Bugfix: Now possible to have to instaces of tableSorter with diffrent > defaults. > * Bugfix: sortColumn would not work with value 0. > * Added: Support for John's soon to be released pager plugin. > * Added: Support for US long date with format: Jul 6, 2006 8:14 AM > * Added: New parameter columnParser. See: example/columnparser.html > * Added: New parameter minRowsForWaitingMsg. See: example/minrows.html > * Added: Support for building tableSorter with Ant. See the ANT-README file. > * Added: Small documentation (docs/index.html) > > Examples and downloads can be found here: > http://motherrussia.polyester.se/jquery-plugins/tablesorter/ > > Enjoy! > /christian > It just keeps getting better with each release... Perhaps you could add GMT/UTC as well: Regular Expression = [A-Za-z]{3},\s[0-3]?[0-9]\s[A-Za-z]{3}\s[0-9]{4}\s[0-1]?[0-9]:[0-5][0-9]:[0-9]?[0-9]\sGMT Will match Mon, 21 Aug 2006 15:54:16 GMT Does anyone know of any sites that list the types of dates the JavaScript Date object accepts? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] TableSorter 1.0.3 plugin for jQuery released
Hey! Great stuff Christian! I'm having a problem looking at your examples. It's telling me that $ is not defined. I'm not sure if you've put the js file in the right place or not, but this happens in all my browsers. Cheers Christian Bach wrote: > > ChangeLog > -- > * Renamed tablesorter.js > jquery.tablesorter.js > * Bugfix: Now possible to have to instaces of tableSorter with diffrent > defaults. > * Bugfix: sortColumn would not work with value 0. > * Added: Support for John's soon to be released pager plugin. > * Added: Support for US long date with format: Jul 6, 2006 8:14 AM > * Added: New parameter columnParser. See: example/columnparser.html > * Added: New parameter minRowsForWaitingMsg. See: example/minrows.html > * Added: Support for building tableSorter with Ant. See the ANT-README > file. > * Added: Small documentation (docs/index.html) > > Examples and downloads can be found here: > http://motherrussia.polyester.se/jquery-plugins/tablesorter/ > > Enjoy! > /christian > > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > > -- View this message in context: http://www.nabble.com/TableSorter-1.0.3-plugin-for-jQuery-released-tf2140872.html#a5909037 Sent from the JQuery forum at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] TableSorter 1.0.3 plugin for jQuery released
ChangeLog -- * Renamed tablesorter.js > jquery.tablesorter.js * Bugfix: Now possible to have to instaces of tableSorter with diffrent defaults. * Bugfix: sortColumn would not work with value 0. * Added: Support for John's soon to be released pager plugin. * Added: Support for US long date with format: Jul 6, 2006 8:14 AM * Added: New parameter columnParser. See: example/columnparser.html * Added: New parameter minRowsForWaitingMsg. See: example/minrows.html * Added: Support for building tableSorter with Ant. See the ANT-README file. * Added: Small documentation (docs/index.html) Examples and downloads can be found here: http://motherrussia.polyester.se/jquery-plugins/tablesorter/ Enjoy! /christian ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] slideDown/Up from/to settings
Hi, I am trying to create a set of tabbed panels. Whenever a tab is clicked instead of simply hiding one div and showing another I want the existing tab panel to grow or shrink to the size of the next tab panel. To do this I have been looking at jQuery's slideDown and slideUp methods however they do not facilitate a *from *or *to *setting. Has anyone hacked a solution to this? Or created anything similar? Thx in advance, Peter (p.s Sorry for the resend) ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] How to combine lt and gt?
Michael Fuerst schrieb: > Hi, > > how do I combine lt and gt? > > $("p:lt(5):gt(3)") or $("p:lt(5) gt(3)") doesn't seem to work... > > michael I think I made it once like this (cannot find it anymore): $("p:lt(5)").filter("p:gt(3)")... ; Maybe this is enough: $("p:lt(5)").filter(":gt(3)")... ; -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] How to combine lt and gt?
Hi, how do I combine lt and gt? $("p:lt(5):gt(3)") or $("p:lt(5) gt(3)") doesn't seem to work... michael ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Event does not always bind to object
Hi, I have a pretty strange problem with one of my scripts. I am working on a little CRM and the customer overview page has six blocks looking something like this: the title familiy name first name When a user clicks on the image/link the following script runs: $(document).ready(function(){ $("a#general_opener").click(function(){ if ( $("div#general div.block").is(":hidden") ) { $("div#general div.block").slideDown("slow"); } else { $("div#general div.block").slideUp("slow"); } return false; }); ... ( For each of the six blocks I have one $("a#something_opener") ) }); And now the strange part. The whole thing works for almost all customers except for about 5%. And it is based on the customer I open up. With those 5% only the first 3 blocks work and not the last three ones. With the last three ones it just jumps to the top again. When I look in the JavaScript Console (Firefox) I get the following messages: once --- Warning: variable h hides argument Source File: http://URL/js/jquery.js Line: 14, Column: 101 Source Code: or==Function){f=o;o=null}if(o!=null){o=$.param(o);t="POST"}var self=this;$.xml(t,a,o,function(h){var h=h.responseText;self.html(h).find("script").each(function(){try{eval(this.text||this.textContent||this.innerHTML)}catch(e){}});if(f)f(h)});return this}; three times Warning: reference to undefined property ret[0] Source File: http://URL/js/jquery.js Line: 14 I looked around in the DOM Inspector (under JavaScript Object) as well and I found out that the events for those three blocks are not bound to the object (e.g a#general_opener). But I have no idea why this could happen. Because the only thing that are changing from a customer to the other are the things inside a Does anyone have an idea or a hint what I could check? Thanks Raffael ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] selector help
Thanks that worked perfectly -- View this message in context: http://www.nabble.com/selector-help-tf2137367.html#a5905882 Sent from the JQuery forum at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] html() + firebug = funky
> But for some reason they have been closed (even though it still occurs > in the latest SVN). yeah, it's rather annoying ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Setting AJAX headers, and selecting namespaced nodes
malsup wrote: > >> That would be a nice addition. Has there been any discussion of having >> jQuery automatically use: >> >> X-Requested-With: XMLHttpRequest > > > It already does. > Excellent! One more reason to keep using it. -- View this message in context: http://www.nabble.com/Setting-AJAX-headers%2C-and-selecting-namespaced-nodes-tf2124789.html#a5905881 Sent from the JQuery forum at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] slideDown/Up from/to settings
Hi, I am trying to create a set of tabbed panels. Whenever a tab is clicked instead of simply hiding one div and showing another I want the existing tab panel to grow or shrink to the size of the next tab panel. To do this I have been looking at jQuery's slideDown and slideUp methods however they do not facilitate a from or to setting. Has anyone hacked a solution to this? Or created anything similar? Thx in advance, Peter ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] $(this).getAttribute("href") Doesn't work
Or $('a').attr('href'); 2006/8/21, Smith, George <[EMAIL PROTECTED]>: > why wouldn't you just do > > this.href > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Behalf Of Nilesh Patel > Sent: 16 August 2006 22:22 > To: discuss@jquery.com > Subject: [jQuery] $(this).getAttribute("href") Doesn't work > > > hey , > > I found a solution that works correctly. > > try this.. > $.attr($('a').get(0),'href') > > 100% works > its called by first value is object, then 2nd value is attribute > > > > -- > Nilesh B. Patel > Contact: 704.723.6427 website: www.n-bp.com > > > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > > > This e-mail is confidential to the addressee and may contain privileged > information. > > If you are not the addressee you are not permitted to use or copy this > e-mail or its attachments nor disclose same to any third party. > > If this has been sent to you in error please notify us as soon as possible. > > > We reserve the right to intercept and read e-mails sent or received by our > employees. > > If you do not wish for your communications to be subjected to such scrutiny, > you should not communicate via this e-mail system. > > We endeavour to exclude viruses from our data but it is the responsibility > of the recipient to check any attachments for viruses. > > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Setting AJAX headers, and selecting namespaced nodes
> That would be a nice addition. Has there been any discussion of having > jQuery automatically use: > > X-Requested-With: XMLHttpRequest It already does. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Oddness with jq-corner plugin. [solved]
Jason Huck wrote: > > If I open the test page directly (as in file://...), it works fine. > However, if I *serve* the exact same page via my local copy of Apache > (1.3.x on OS X), the corners don't work. > It turned out to be file permissions on the jq-corner.js script. Apache runs under a different user account which did not have permission to use that file for some reason. -- View this message in context: http://www.nabble.com/Oddness-with-jq-corner-plugin.-tf2138354.html#a5904599 Sent from the JQuery forum at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Serializable Form Upload Element
HiI was looking around for a neat and generic way to handle file uploads. I found several different approaches, and it seems like this is a classic case for using ajax in any case ( http://www.codeandcoffee.com/2006/08/02/too-much-ajax/). Some of the references I found:- Asynchronous file upload with AJAX progress bar in PHP (http://tomas.epineer.se/archives/3 )- AJAX File upload Progress ( http://blog.joshuaeichorn.com/archives/2005/05/01/ajax-file-upload-progress/)- Rails Upload Progress ( http://sean.treadway.info/demo/upload/) etc.From what I saw, it seems inevitable that one needs to use an iframe to submit the upload because the browser will not allow you to access the file from the local system due to security issues. However, most of the solutions I've seen seem to be obsessed with showing the progress of the upload. I'm not so concerned about the progress. My logic is this - I look at forms as a mechanism of data entry. I want to be able to use the data entered by a user in the form in any way that is required by the application, with client-side and server-side logic by using a combination of _javascript_(+jquery), json and ajax. To this extent, the form serializer (part of the jquery svn) and deserializer(part of jquery plugins) do the jobs of extracting and inserting data from HTML forms respectively. However, the file input is the only form element that breaks this model. I want to find a way of serializing the file upload element.To achieve this, here is the approach I thought of - Convert all file upload elements into text elements! The text/hidden element will contain the uploaded path of the file.So suppose we were to make a plugin for this, let's say we call it serializeuploads. This is how I see it working:1. Start with a form, say MYFORM where some elements maybe file upload elements 2. The serializeuploads plugin initializer will convert each file upload element into a separate form by wrapping a form around it. 3. It will also create a hidden iframe for each file upload element to which the form can be submitted.4. When you want to serialize the form, you first call the serializeuploads plugin. This will submit each of the file upload elements' forms to the respective iframes. 5. The server side script which accepts the upload can be anything... it is expected to save the file on the server and return the server path of the file.6. On completion of each submit, the plugin will insert a hidden/text element to MYFORM, whose value will be the server path of the uploaded file. 7. On completion of the submits, one can specify a callback function which is called. At this time, the normal form serializer can be used to get the path of the uploaded file.8. The plugin can also accept a max timeout, so that it will abort all uploads which do not complete in the given time, and intimate the result to the callback function. Whoosh! Guys, is there a simpler way of doing this?RegardsAshutosh-- Reach1to1 Communications http://www.reach1to1.com [EMAIL PROTECTED]98201-94408 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] $(this).getAttribute("href") Doesn't work
why wouldn't you just do this.href -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Nilesh Patel Sent: 16 August 2006 22:22 To: discuss@jquery.com Subject: [jQuery] $(this).getAttribute("href") Doesn't work hey , I found a solution that works correctly. try this.. $.attr($('a').get(0),'href') 100% works its called by first value is object, then 2nd value is attribute -- Nilesh B. Patel Contact: 704.723.6427 website: www.n-bp.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ This e-mail is confidential to the addressee and may contain privileged information. If you are not the addressee you are not permitted to use or copy this e-mail or its attachments nor disclose same to any third party. If this has been sent to you in error please notify us as soon as possible. We reserve the right to intercept and read e-mails sent or received by our employees. If you do not wish for your communications to be subjected to such scrutiny, you should not communicate via this e-mail system. We endeavour to exclude viruses from our data but it is the responsibility of the recipient to check any attachments for viruses. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] html() + firebug = funky
On 21/08/06, Matt Stith <[EMAIL PROTECTED]> wrote: > Yeah i noticed that too, its really akward having forms in the middle of > firebug when im trying to do something.. > > > On 8/20/06, Francisco Brito < [EMAIL PROTECTED]> wrote: > > > > the html() function calls: > > this.set ( "innerHTML", h ); > > which makes it set the innerHTML attribute, not property. If you inspect the > markup with firebug, you'll see that firebug will actually render html in > its pane. Very funky. > > May I suggest that it's done via: > > this.each(function(){this.innerHTML = h;}); > > Thoughts? > > > happy coding. > -Brito > There are two bug filed for this: http://proj.jquery.com/dev/bugs/bug/22/ http://proj.jquery.com/dev/bugs/bug/60/ But for some reason they have been closed (even though it still occurs in the latest SVN). Simple test: http://jquery.com/src/jquery-svn.js";> Hello The DIV 'foo' ends up as html You don't notice any difference in how it looks but you never know if it may cause issues in the future - plus it makes debugging with Firebug a bit harder (using the inspector). ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] The format of xml response
> The following is the handling file. The above form posts to this file to > handle. >$name=$_POST['name']; > $address=$_POST['address']; > $returnXML = " > Sachin > Sagar > "; > echo $returnXML; > ?> > > But when the alert is shown, its blank. I couldn't figure out wats > hapenning. I think the problem is reading back the in the XML format > or the > alert( $("name",xml).text() ); syntax. > Is the returning XML is in the correct format? > Is the $("name",xml).text() syntax correct? > Help me out plz. > Thanks You have to set the correct mime type for your xml response...: Sachin Sagar "; echo $returnXML; ?> -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] The format of xml response
You are not sending down a Content-type: text/xml header, so the browser is interpreting your XML as plain text. To confirm this suspicion, change your alert to: alert( xml ); You want the alert to display something like [object XMLwhatever]. Instead, it will probably display the actual XML text. This indicates that it was interpreted as plain text. Adding the header will fix that. -Mike > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of millisami > Sent: Monday, August 21, 2006 12:28 AM > To: discuss@jquery.com > Subject: [jQuery] The format of xml response > > > The following is the interface file: > > $(document).ready(function(){ > $("a").click(function(){ > $.post("ajax-post-handler.php",{ > name: "John", > address: "123 Main St." > }, function(xml){ > alert( $("name",xml).text() ); > } > ); > return(false); > }); > }); > > > > > jQuery > > > > The following is the handling file. The above form posts to > this file to handle. >$name=$_POST['name']; > $address=$_POST['address']; > $returnXML = " > Sachin > Sagar > "; > echo $returnXML; > ?> > > But when the alert is shown, its blank. I couldn't figure out > wats hapenning. I think the problem is reading back the > in the XML format or the alert( $("name",xml).text() ); syntax. > Is the returning XML is in the correct format? > Is the $("name",xml).text() syntax correct? > Help me out plz. > Thanks > -- > View this message in context: > http://www.nabble.com/The-format-of-xml-response-tf2138761.htm > l#a5902309 > 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] date picker plugin update
Hi Choan, Good suggestion - I'll put it on my to do list and will add it in to the date picker when I next have time to work on it, Cheers, Kelvin :) Choan C. Gálvez wrote: > Hi Kelvin, > > As you've already made the calendar language configurable, it'd be > nice to be able to choose the start day for the weeks (nobody in Spain > would understand a Sunday based calendar). > > Cheers. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] The format of xml response
The following is the interface file: $(document).ready(function(){ $("a").click(function(){ $.post("ajax-post-handler.php",{ name: "John", address: "123 Main St." }, function(xml){ alert( $("name",xml).text() ); } ); return(false); }); }); jQuery The following is the handling file. The above form posts to this file to handle. Sachin Sagar "; echo $returnXML; ?> But when the alert is shown, its blank. I couldn't figure out wats hapenning. I think the problem is reading back the in the XML format or the alert( $("name",xml).text() ); syntax. Is the returning XML is in the correct format? Is the $("name",xml).text() syntax correct? Help me out plz. Thanks -- View this message in context: http://www.nabble.com/The-format-of-xml-response-tf2138761.html#a5902309 Sent from the JQuery forum at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/