[jQuery] paging with jquery
> But wait, I extended the DOM creation plugin with the following:
[jQuery] Signals and slots (was: attaching an onload to things...)
Hi Remko, I started to play with this concept and the script you linked to (one should read the events doc of dojo too)... ... and, well, I now have a brand new (but basic) "signals and slots for jQuery"! (actually, it just uses the namespace $) It's not fully tested but seems to work for me: http://fmarcia.info/jquery/chain.js Cheers, Franck. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] toggleSlide and toggleFade
I've done two functions to slideUp/slideDown or fadeIn/fadeOut depending on whether the element is visible. $.fn.toggleSlide = function(s) { return this.each(function(){ var d = $.getCSS(this,"display"); if ( d == "none" || d == '' ) $(this).slideDown(s); else $(this).slideUp(s); }); } $.fn.toggleFade = function(s) { return this.each(function(){ var d = $.getCSS(this,"display"); if ( d == "none" || d == '' ) $(this).fadeIn(s); else $(this).fadeOut(s); }); } However, toggleFade does not quite work
[jQuery] Collapsing margins vs. slideDown/slideUp
Hi jQuerians, just wanted to let you know that if you want to use slideUp/slideDown on an element, you have to avoid collapsing margins in some cases, otherwise the effect will let the element jump on start/end. Say you have two elements and you want to let the second element slideUp/slideDown: ... <ul> <li>...</li> </ul> In my case the margin-bottom of collapsed with margin-top of the <li>. If you let the entire <ul> slideUp/slideDown the <li> elements will jump... I assume that it is because some
[jQuery] JavaScript selectors
Looks like jQuery is far ahead...: http://web-graphics.com/2006/05/12/javascript-and-selectors/ Regards, Klaus -- Klaus _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] How to get specific attribute of element?
Hi, I'm pretty new to jQuery and I'm loving it! it's fantastic. I know to set the attributes using the set() function, but how I can get the attributes? or better yet, how to incrementally add a value to existent attribute? Thanks _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Draggables and Droppables plugin with images
I fixed that bug. I had to add Microsoft proprietary event trigger 'ondragstart' to return false. Thanks for pointing this. I updated the file drag.js and the problem is fixed. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] How to get specific attribute of element?
try $.attr(element, attribute) _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Draggables and Droppables plugin with images
The drag.js had an error. I fixed that and the file is updated. I also made a demo for you http://eyecon.ro/interface/cart.html _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Fix removeClass toggleClass
G'day, I've just been doing some cross browser testing of Jquery...and the removeClass and toggleClass aren't working on IE6. Not sure exactly why but it is related to having multiple spaces in className I had a look at the original RegExp and may I humbly suggest new RegExp('((^\\s*)|\\s*([^-]))\\b' + c + '(\\b(?=[^-])\\s*(?=\\3)|(\\s*$))','g'),''); And might I say RexExp is utterly confusing.... Kent _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] panView plugin for jQuery.
Hi! Just made a plugin called panView, that a thought a would share. It ideal for showing big images (like maps) in a small amount of space. Examples and code can be found here: http://motherrussia.polyester.se/jquery/panview/ (The image that is loaded is about 300 Kb so it can be a bit of a wait.) Best regards Christian Bach _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] serialize method
If anyone is looking for a serialize method, the following works with the latest dev code (http://jquery.com/src/dev/sane/). $.fn.serialize = function(ret) { var f = this.get(0); $.xml( f.method || "GET", f.action || "", $.param(this.formValues()), function(r) { if (ret) ret($.httpData(r)); }); } usage: $('#myForm').serialize(myCallback); _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] JSLint and AJAX Updates
> I see you, Sam Stephenson, an arena, and a caged pool with mud.
[jQuery] serialize() missing submit and password
$.fn.serialize() is missing an option to return any submit buttons and passwords... currently it's... .find("input[@checked], input[@type='hidden'], input[@type='text'], option[@selected], textarea") These should be added... input[@type='password'], input[@type="submit"], However, when submit is added it returns all submit tags regardless of whether it was the one actually clicked or not. The regular behavior of a submitted form is that only the submit button that was clicked is returned, regardless
[jQuery] JSLint and AJAX Updates
> I'll chime in and say that Prototype offers nothing jQuery
[jQuery] Draggables and Droppables plugin with images
Hi, I'm trying port shopping cart samples of <a href="http://script.aculo.us">script.aculo.us</a> using only jquery and the Stefan's plugins but when I drop the image, this image is freeze in the screen since I start drag another image. How I can hidden the image dropped? Drag&Drop <a href="http://Script.aculo.us">Script.aculo.us</a> in jQuery: <a href="http://www.sevir.org/~sevir/jQueryD&DSample/d&dsample.html">http://www.sevir.org/~sevir/jQueryD&DSample/d&dsample.html </a> Shopping Cart sample:
[jQuery] Google Web Toolkit - Build AJAX apps in the Java language
Hi everyone, just stumbled across this one: http://code.google.com/webtoolkit/ What do you think, will this new concept replace the need for libraries like Prototype or JQuery entirely? It looks promising, though I haven't tried it yet (but later today I will)... Greetings, Arash _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Find first focusable element
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> <font size="-1"><font face="Tahoma">Anybody got an idea how to find the first focusable element in a form? The find() function returns the elements in no particular order... Right now i have something like this: </font></font><font size="-1"><font face="Tahoma">$('#formid').find("button,select,textarea,input").not("input[@type='hidden']")</font></font><font
[jQuery] Google Web Toolkit - Build AJAX apps in theJavalanguage
Kool, thanks, I hope to look into it soon, I recognized the name. -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of Dean Edwards Sent: Wednesday, May 17, 2006 12:01 PM To: jQuery Discussion. Subject: Re: [jQuery] Google Web Toolkit - Build AJAX apps in theJavalanguage
[jQuery] Google Web Toolkit - Build AJAX apps in the Javalanguage
Oh Lordy.. What Microsoft teams of the past won't do with excess money... -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of Mike Alsup Sent: Wednesday, May 17, 2006 11:59 AM To: jQuery Discussion. Subject: Re: [jQuery] Google Web Toolkit - Build AJAX apps in the Javalanguage
[jQuery] Google Web Toolkit - Build AJAX apps in the Javalanguage
Hi Dean, are you the same guy who does cssQuery() ? -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of Dean Edwards Sent: Wednesday, May 17, 2006 11:54 AM To: jQuery Discussion. Subject: Re: [jQuery] Google Web Toolkit - Build AJAX apps in the Javalanguage
[jQuery] JSLint and AJAX Updates
> - Changing the global namespace of jQuery from $ to 'jQuery'.
[jQuery] browser sniff?
Oh sorry. Did you have any success with a jQueryish browser sniffer? I just noticed Mike's code - is that what you ended up using? Thanks Rob. Matthew -----Original Message----- From: Robb Irrgang [mailto:robb@subdue.com] Sent: Wednesday, 17 May 2006 8:46 a.m. To: matthewd@dbc.co.nz; jQuery Discussion. Subject: Re: [jQuery] browser sniff? get on where exactly? i'm not sure which part you're referring to..
[jQuery] browser sniff?
How did you get on here Robb? I am interested in something along these lines as well... Matthew -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of Robb Irrgang Sent: Thursday, 20 April 2006 9:20 a.m. To: jQuery Discussion. Subject: Re: [jQuery] browser sniff? you could probably catch any browser that doesn't support regexps with a simple test and then automatically lock them out of things... since they'd automatically wouldn't meet your criteria.
[jQuery] Corner plugin problem
> 2006/5/16, Mike Alsup > By the way, if this is similar to the problem that you're having the > fix is simply to nest another div inside the cornered div and put your > padding there. In "spare time" I am rewriting the corner adorner so that it can handle bordered elements, but may need to completely redo the way I position the divs that create the rounding effect. IE7 beta, Firefox, and Opera actually work pretty well already and I've had positive Safari reports, but I can't get IE6 to behave--big
[jQuery] Can we get a wiki?
With the increasing amount of discussion on the list, and the increasing number of developers creating plugins, it seems like a Wiki wouldn't suck to help centralize all the knowledge floating about. --------------------------------------------- Jack Shedd, Senior Developer PJ Doland Web Design, Inc. 11591 Maple Ridge Rd. Reston, VA 20190 (202) 265-1664 --------------------------------------------- _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] bit of topic maybe - looking for script
Hi been working on a new site using jquery. But I need to have a scrolling horizontal image display < img img img img img > If you hover over the > the images scroll untill there are no more images. Anyone have such a script or now one preferably jquery ofcourse. If not i need to do myself but no need to reinvent the wheel. thanks Armand _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Corner plugin problem
When i use the corner plugin in combination with .show("slow") this the corners are broken? Does anyone know why this is hapening? the code i use is as follow: <style type="text/css"> body { margin: 0; padding: 0; background: #F0F5E3;font: Verdana,Arial,sans-serif; } #wrapper { margin: 0 auto; height: 100%; width: 40em; padding: 10px; background:
[jQuery] jQuery "Light"?
I agree there is a lot of code for parsing Xpath expressions. I don't use them much myself yet, but that's mainly because I haven't studied them. Xpath can do a lot more than CSS selectors. If it becomes an optional part of JQuery I suspect that many people might then want chainable methods for the same thing that Xpath could do. Then there will be two ways to do things depending on whether you have Xpath there or not. There's nothing inherently wrong with TMTOWTDI, but it would probably make JQuery
[jQuery] Corner plugin problem
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <META content="MSHTML 6.00.2900.2873" name=GENERATOR></HEAD> <BODY> <DIV dir=ltr align=left><SPAN class=489483521-15052006><FONT face=Arial color=#0000ff size=2><FONT face="Times New Roman" color=#000000 size=3>> When i use the corner plugin in combination with .show("slow") this the</FONT></FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN class=489483521-15052006><FONT
[jQuery] Question about specific $() queries
If I do that I still get ALL of the uls nested under the ul#id I only want the first level of uls inside of the ul#id, if those ul's have ul's within them I do NOT want to select those. [ul id ="myid"] [li][ul = "myid2"] [li]One[/li] [li][ul = "myid3"] [li]Two[/li] [/li] [/ul] [/li] [/ul] For example, using "myid" as the hook I want to select the ul "myid2" but not select "myid3". Note : the interior UL's dont have actual id values associated with them. Abba Message: 1 Date: Sun, 14 May 2006 12:04:39
[jQuery] Selectables
With this small plugin you can select elements buy drawing a rectacle (every item that intersects this rectacle get selected). demo: http://www.eyecon.ro/test/jquery/selectables.html docs: http://www.eyecon.ro/test/jquery/ at the end of the page _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] to John: SVN access?
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> <font size="-1"><font face="Tahoma">Hello John, Since you don't read your e-mail or you have a lot of mails to process i am trying it via this way; Can you send me the details for SVN access so i can implement my ajax fixxes we talked about? Regards, Gilles</font></font> </body> </html> _______________________________________________
[jQuery] Selectables
Yes, was not working on IE. Now it is fixed and also updated to autoscroll. <a class="moz-txt-link-freetext" href="http://www.eyecon.ro/test/jquery/selectables.html">http://www.eyecon.ro/test/jquery/selectables.html</a> _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] AJAX Form submission
I understand that there have been a number of posts about serializing forms for submission via AJAX. However I haven't seen a response that helps me understand this fully. I understand that there is now a serialize method added to jQuery, this can be called to serialize all from elements for the purpose. However I am having some trouble understanding how to make this work. What I am trying to do: - I have a FORM. I don't know how many FORM elements are in that FORM, or what they are. I want to be
[jQuery] AJAX Form submission
This is serialize function I am referring to: - <a href="http://jquery.com/dev/svn/diff.php?repname=jQuery&path=%2Fjquery%2Fajax%2Fajax.js&rev=0&sc=0">http://jquery.com/dev/svn/diff.php?repname=jQuery&path=%2Fjquery%2Fajax%2Fajax.js&rev=0&sc=0 </a> _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Offline Version of Documentation
May be useful to have. If the site goes offline, or you have to develop with jQuery with no internet access. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] selecting sibling nodes
<div>Hmm.... the xpath documentation for jquery uses:</div> <div> </div> <div> $("//div/preceding-sibling::form")</div> <div> </div> <div>as an example selector. This does not seem to work for me with:</div> <div> </div> <div>$("//ul/preceding-sibling::li").addClass("collapse")</div> <div> </div> <div>I went into the source and in the $.g function there was no "preceding-sibling". For that matter there was no "following-sibling" (which is what I actually want). I tried adding these in myself,
[jQuery] Question about specific $() queries
If I do $('ul#id ul) I can get all the nested lists in another list. How can I specify the depth of the returned results? I want to select all the ul's in another ul by depth. I figured filter or not would work for me but If I do two queries q1 = $("ul#id ul"); q2 = $("ul", q1); I get two results, q1 = the whole set of nested child ul's q2 the whole set of nested child ul's in q1. Why cant I do this to get just the difference between q1 and q2 q3 = q1.not(q2); This doesnt seem to work at all. Does
[jQuery] Draggables, Droppables and Sortables update
Another update. Now all bugs pointed by John are fixed. http://www.eyecon.ro/test/jquery/ _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Next Page