Re: [jQuery] extending functions?

2006-10-03 Thread Franck Marcia
2006/10/4, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > Is it possible to extend this accordion such that I maintain its > features and can then extend it with new features? > The code of accordion (dian?) is pretty locked... means, no way to extend it. But I could integrate your new features if you

[jQuery] jq corner.js

2006-10-03 Thread TJ
Hi I am using the jq-corner.js written by Dave Methvin. I was wondering how I could add a option for color when calling the corner. $("#content").corner("round tl 10px color"); Heres the script // // jq-corner.js - JQuery method for creating corner effects // // If this works, it was written b

Re: [jQuery] JCarousel + ajax + Safari = trouble!

2006-10-03 Thread Ⓙⓐⓚⓔ
no comments? did you even like my puppy? did any versions work in IE? No safari gurus out there? does Jan Sorgalla have any idea? On 10/2/06, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote: > My first jquery page was to celebrate my new puppy, I had a few > pictures, and I read about JCarousel, so it was simple

Re: [jQuery] jQuery + Atlas (ASP.NET AJAX) or $ conflict

2006-10-03 Thread Dave Methvin
I rooted around in some Atlas stuff I found on the web and saw some uses, but not a definition, of their $() function. Do you know where it is defined? > I'd love to talk our developers out of using Atlas altogether, > but as a designer I lack the appropriate credentials in > this department. ...

Re: [jQuery] NEWS: JQuery being used for Bookmarklets

2006-10-03 Thread Jason Levine
>That's cool. How does this get around the "no opening content from >other domains" restriction? >-pat I think that the bookmarklet is running locally so it gets around the domain restrictions. This is kind of like something I was considering. I used to write occasional HTA files to complete t

Re: [jQuery] NEWS: JQuery being used for Bookmarklets

2006-10-03 Thread Patrick Hall
Anyone else use Jesse Ruderman's js shell? http://www.squarefree.com/categories/javascript-shell/ I love that thing, use it every day. Using this

Re: [jQuery] Full featured form validation library in jQuery?

2006-10-03 Thread Yehuda Katz
I'm in the process of compiling a jQuery widget pack for forms. I will probably release it together with the second issue of the Visual jQuery Magazine. I've posted about this before, so if you want to bring a widget to my attention, please post about it here or email me at [EMAIL PROTECTED] offli

Re: [jQuery] Getting the element inside a jQuery function call

2006-10-03 Thread Yehuda Katz
Klaus,Thanks. I discovered that solution on my own, but right on the money. Re: the bad XHTML, you're correct. I was trying to come up with an example for the question, and I guess I failed. Still, thanks!-- Yehuda On 10/3/06, Klaus Hartl <[EMAIL PROTECTED]> wrote: Yehuda Katz schrieb:> Say I have

Re: [jQuery] NEWS: JQuery being used for Bookmarklets

2006-10-03 Thread John Resig
> However, relying on this behavior may be risky - > the Douglas Crockford quote on the > following page comes to mind: In fact, it is the complete opposite of 'risky' - it is very safe. It's not going to change anytime in the foreseeable future (considering that it would require every single bro

Re: [jQuery] NEWS: JQuery being used for Bookmarklets

2006-10-03 Thread Dave Benjamin
On Tue, 3 Oct 2006, Patrick Hall wrote: >> On 10/3/06, Rey Bango <[EMAIL PROTECTED]> wrote: >> Another mention of JQuery, this time in a bookmarklet. >> >> http://blogs.pathf.com/agileajax/2006/10/using_bookmarkl.html > > That's cool. How does this get around the "no opening content from > other d

Re: [jQuery] NEWS: JQuery being used for Bookmarklets

2006-10-03 Thread Patrick Hall
On 10/3/06, Rey Bango <[EMAIL PROTECTED]> wrote: > Another mention of JQuery, this time in a bookmarklet. > > http://blogs.pathf.com/agileajax/2006/10/using_bookmarkl.html That's cool. How does this get around the "no opening content from other domains" restriction? -pat -- ᗷɭoℊẚᗰսɳᑯѲ⁈⁈⁈ __

Re: [jQuery] unhover and untoggle

2006-10-03 Thread Brandon Aaron
This does limit the $().hover and $().toggle to once per an element. Multiple uses will overwrite the pervious handler. Any tips on how to manage this along with keeping the un version would be greatly appreciated. -- Brandon Aaron On 10/3/06, Brandon Aaron <[EMAIL PROTECTED]> wrote: > Well I've

Re: [jQuery] Parsing XML responses from AJAX calls

2006-10-03 Thread Ⓙⓐⓚⓔ
yeah... it hurt for a while because I used to overridemimetype for my htmls and JQ doesn't. On 10/3/06, Matt Grimm <[EMAIL PROTECTED]> wrote: > Thanks, Jake, that was the problem exactly. My PHP script was sending > the XML string with a Content-Type of text/html. Once I changed it to > text/xml,

Re: [jQuery] Chainable if/else - hot or not?

2006-10-03 Thread Ⓙⓐⓚⓔ
1 more vote for John's approach the documention can explain that these functions can be run destructively or non-destructively. It's a beauty! On 10/3/06, Blair McKenzie <[EMAIL PROTECTED]> wrote: > Just to adding my vote. > > I like Johns approach because it fits in with the style of other jQ

[jQuery] unhover and untoggle

2006-10-03 Thread Brandon Aaron
Well I've gone ahead and done it. I've added an unhover and untoggle method. Here is the example/test page: http://brandonaaron.net/jquery/unevents/unevents.html Here is the patch: http://brandonaaron.net/jquery/unevents/unevents.diff -- Brandon Aaron On 10/3/06, Brandon Aaron <[EMAIL PROTECTED]

[jQuery] NEWS: JQuery being used for Bookmarklets

2006-10-03 Thread Rey Bango
Another mention of JQuery, this time in a bookmarklet. http://blogs.pathf.com/agileajax/2006/10/using_bookmarkl.html Rey... ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Getting x- and y-positions of elements

2006-10-03 Thread Brandon Aaron
Okay so I've modified the offset plugin to take an optional param called referenceElement. If passed in, then it will be used to get the relative offset. Now here is the situation. If the referenceElement is a parent, then the number is positive. If the referenceElement is a child, then the number

Re: [jQuery] FastSerialize plugin posted in wiki

2006-10-03 Thread Mike Alsup
> Thought it would be more useful on the website until it was decided > whether it might be included with the form plugin. Mike (Alsup), is it > ultimately your call how this gets incorporated? I liked Brian's idea to > use a boolean argument for semantic order, and it should be trivial to > add th

[jQuery] FastSerialize plugin posted in wiki

2006-10-03 Thread Matt Grimm
FYI, I posted the FastSerialize plugin in the jQuery wiki: http://jquery.com/docs/Plugins/FastSerialize/ Thought it would be more useful on the website until it was decided whether it might be included with the form plugin. Mike (Alsup), is it ultimately your call how this gets incorporated? I li

Re: [jQuery] Sortable Puzzle?

2006-10-03 Thread Blair McKenzie
http://interface.eyecon.ro/demos/sort_floats.htmlBlairOn 10/3/06, Dominik Hahn < [EMAIL PROTECTED]> wrote:Hello, Is it possible to create a Sortable Puzzle with jQuery (probably using Interface) to create something like this:  http://wiki.script.aculo.us/scriptaculous/page/print/SortableFloatsDemot

Re: [jQuery] A few questions (bugs?)

2006-10-03 Thread John Resig
> So... is there any chance, to use an ajax-call in the unload-function? Or is > this simply not possible? Most likely not possible - all in-progress AJAX requests are canceled whenever you leave a page. Doing the image src trick is probably your best bet. --John ___

Re: [jQuery] Chainable if/else - hot or not?

2006-10-03 Thread Blair McKenzie
Just to adding my vote.I like Johns approach because it fits in with the style of other jQuery methods. All the event and attribute methods have two sided functionality (bind/unbind, set/get), so it makes sense that the filtering methods would also have two sided functionality (persistent filter/no

Re: [jQuery] Parsing XML responses from AJAX calls

2006-10-03 Thread Matt Grimm
Thanks, Jake, that was the problem exactly. My PHP script was sending the XML string with a Content-Type of text/html. Once I changed it to text/xml, jQuery was all sexy again. m. On Tue, 2006-10-03 at 14:06 -0700, Ⓙⓐⓚⓔ wrote: > Since I can't see what your script is or how your server is serving

Re: [jQuery] A few questions (bugs?)

2006-10-03 Thread Hermann-Marcus Behrens
Hello John, thanks for the answer. The bind("unload") is working right now. One further question: I would like finaly to log-off the user from the AjaxChat, if he leaves the page. So I tried this: $(window).bind("unload", function() { $.load("logoff.html"); }); This does not work. This work

Re: [jQuery] Parsing XML responses from AJAX calls

2006-10-03 Thread Ⓙⓐⓚⓔ
Since I can't see what your script is or how your server is serving it.. I'll share my experience when you get a pure xml file or a cgi created xml file with the correct headers the parameter 'xml' is actually a dom tree. If it is a "text/whateveelse" mimetype, you get text only! no dom! Down ins

[jQuery] extending functions?

2006-10-03 Thread sivy
Hi all, Glaring newbie here, please be gentle. I'm working on some UI widgets built using jQuery. I started by extending the simple accordion code found on the plugins page (http://fmarcia.info/jquery/accordion.html), and so far I've got this: http://redmonk.net/files/tmp/js/accordion2.html I've

Re: [jQuery] [PATCH] use datePicker without IDs

2006-10-03 Thread Kelvin Luck
Hi Matt, Thanks again for the patch. I just found the time to test it out and it seems to work nicely so I have integrated it into the date picker plugin, Cheers, Kelvin :) > > On Thu, September 28, 2006 5:06 am, Matt Good wrote: >> The datePicker plugin[1] won't work for multiple date inputs

Re: [jQuery] NEWS: JQuery Digg Spy Updated

2006-10-03 Thread Rey Bango
Glad to see that Remy posted it here. Now, others such as myself that didn't see Remy's original posting can benefit from my follow-up email. Rey... Dan Atkinson wrote: > http://www.nabble.com/Upgraded-Plugin%3A-Spy-tf2362753.html#a6582559 ___ jQuery

Re: [jQuery] Bug?

2006-10-03 Thread Rey Bango
Jason, I had a similar problem which ended up being a problem with the way that my server-side programming language, ColdFusion, was returning the rows. There was a ton of leading and trailing spaces in the response packet so once I trimmed that, it was able to insert my rows successfully. My c

Re: [jQuery] A few questions (bugs?)

2006-10-03 Thread Klaus Hartl
> > Whenever you .load() html the incoming scripts are automatically > evaluated. To make that happen with $.ajax() you need to specify the > dataType property. If you want HTML to come back with embedded >

Re: [jQuery] A few questions (bugs?)

2006-10-03 Thread John Resig
> 1) This is never working: > $(window).unload(function() { > $.get(url); > }); > > I simply don't get it to work. How to add an unload-event for > document/window? Right now there's some ambiguity between removing a load handler and adding an unload event, I recommend that you use: $

Re: [jQuery] Parsing XML responses from AJAX calls

2006-10-03 Thread Matt Grimm
Disregard. I solved the problem. m. On Tue, 2006-10-03 at 12:56 -0800, Matt Grimm wrote: > I was under the impression that the following code should work, but I'm > having no luck at all. I have a PHP script that returns a simple XML > string and I need to get the value of the one and only elemen

Re: [jQuery] NEWS: JQuery Digg Spy Updated

2006-10-03 Thread Dan Atkinson
http://www.nabble.com/Upgraded-Plugin%3A-Spy-tf2362753.html#a6582559 -- View this message in context: http://www.nabble.com/NEWS%3A-JQuery-Digg-Spy-Updated-tf2377394.html#a6629182 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery ma

[jQuery] A few questions (bugs?)

2006-10-03 Thread Hermann-Marcus Behrens
Hello, I'm using jQuery since a few days, switched totally from prototyp.js to jQuery and there a now a few questions: 1) This is never working: $(window).unload(function() { $.get(url); }); I simply don't get it to work. How to add an unload-event for document/window? 2) I have a

Re: [jQuery] Getting x- and y-positions of elements

2006-10-03 Thread Brandon Aaron
On 10/3/06, Klaus Hartl <[EMAIL PROTECTED]> wrote: > What about using 'px' as default unit? That way you could write: > $().top(10).left(10) - and the 'px' is added automatically. In case a > string is passed you would take that value as is: > $().top('10%').left('10%'). That works for me. -- Bra

Re: [jQuery] hover, Firefox, uncaught exception

2006-10-03 Thread Brandon Aaron
Okay ... So instead of this: while ( p && p != this ) try { p = p.parentNode } catch(e) { p = null; }; I should have set p = this like this: while ( p && p != this ) try { p = p.parentNode } catch(e) { p = this; }; You can see it working here: http://brandonaaron.net/jquery/hoverbug/hover.patched

[jQuery] Parsing XML responses from AJAX calls

2006-10-03 Thread Matt Grimm
I was under the impression that the following code should work, but I'm having no luck at all. I have a PHP script that returns a simple XML string and I need to get the value of the one and only element. $.get('/path/to/script', function(xml) { // xml variable is '1' // r variable is []

Re: [jQuery] Getting x- and y-positions of elements

2006-10-03 Thread Klaus Hartl
Brandon Aaron schrieb: > I was also thinking about taking a hash of top and left as a param. > The top and left would be numbers to relatively offset the element by. > This sounds like what you are talking about and would remove the > annoyance of the + 'px' all over the place. However, the call w

Re: [jQuery] hover, Firefox, uncaught exception

2006-10-03 Thread Brandon Aaron
Sure enough... looking into a better fix now. -- Brandon Aaron On 10/3/06, Choan C. Gálvez <[EMAIL PROTECTED]> wrote: > Hi all. > > There has been some recent posts on this mailing list about a bug in > Firefox related to jQuery`s `hover` functionality. (Subjects "Uncaught > exception (Autocomple

Re: [jQuery] Getting x- and y-positions of elements

2006-10-03 Thread Dave Benjamin
On Tue, 3 Oct 2006, Brandon Aaron wrote: > On 10/3/06, Dave Benjamin <[EMAIL PROTECTED]> wrote: >> I'm not too crazy about .top() and .left() because of the need to >> concatenate and un-concatenate 'px' everywhere. > > I can understand this and it is something I'm trying to decide how I > want to

Re: [jQuery] New JTicker version - multiple tickers on a single page

2006-10-03 Thread Klaus Hartl
Jörn Zaefferer schrieb: > Jason Levine schrieb: >> I've updated JTicker to 0.5 Beta now. I added the ability to have multiple >> tickers on a single page. This was a feature I really wanted to add and had >> to learn a lot of new JavaScript to implement it. So it was a win-win >> situation fo

Re: [jQuery] jquery is not defined error

2006-10-03 Thread John Resig
Do you have a URL that we can reference? That would help us to debug the problem. --John On 10/3/06, Glen <[EMAIL PROTECTED]> wrote: > I continue to get "jQuery is not defined" on each page load. > > According to http://jquery.com/dev/bugs/bug/64/, this is coming from > the interface plugins not

[jQuery] hover, Firefox, uncaught exception

2006-10-03 Thread Choan C. Gálvez
Hi all. There has been some recent posts on this mailing list about a bug in Firefox related to jQuery`s `hover` functionality. (Subjects "Uncaught exception (Autocomplete / jQuery 1.0.1)", "bug: hover over table cells containing form elements" and "Input text hover error".) Theoretically, this b

Re: [jQuery] Bug?

2006-10-03 Thread Jason Huck
I ran into this problem today, trying to replace the contents of a , but so far John's suggested workaround isn't quite doing the trick. .load() works everywhere except in IE. Using alternate code as suggested: $.get('/path/to/ajax/page/', function(thehtml){ $("tbody#foo").empty().append

Re: [jQuery] Getting the element inside a jQuery function call

2006-10-03 Thread Klaus Hartl
Yehuda Katz schrieb: > Say I have something like this: > > $("p").attr("rel", "someRel") > > But instead of setting it as static, I want to set it based upon the > attributes of the p's in question. For instance, say I want to set the > rel to be the same as the class. Is there any way to get

Re: [jQuery] Serializing XML

2006-10-03 Thread Ⓙⓐⓚⓔ
It's nice that we agree on so many levels! ! It's even good when we don't! at least we learn about other opinions! -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ ▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒ ░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░ ▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒ ░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░ ▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒ ___

Re: [jQuery] Getting x- and y-positions of elements

2006-10-03 Thread Brandon Aaron
On 10/3/06, Brandon Aaron <[EMAIL PROTECTED]> wrote: > look like this: $().offset({ top: 10, left: 10 }); I guess that is > less typing than: $().top(10+'px').left(10+'px'); I really meant to say that it isn't much of an advantage over doing it with top and left. -- Brandon Aaron ___

Re: [jQuery] Getting x- and y-positions of elements

2006-10-03 Thread Brandon Aaron
On 10/3/06, Dave Benjamin <[EMAIL PROTECTED]> wrote: > I'm not too crazy about .top() and .left() because of the need to > concatenate and un-concatenate 'px' everywhere. I can understand this and it is something I'm trying to decide how I want to handle. The offset plugin I wrote returns a unit-l

[jQuery] unhover and untoggle

2006-10-03 Thread Brandon Aaron
Is there a reason why there isn't an unhover and an untoggle? I could really use unhover in my current project and was thinking about building it and just logging it as an enhancement. Just calling .unmouseover().unmouseout() is not enough b/c I have other handlers for those as well and don't want

Re: [jQuery] Getting x- and y-positions of elements

2006-10-03 Thread Dave Benjamin
On Tue, 3 Oct 2006, Brandon Aaron wrote: > jQuery has two methods named .top() and .left() for setting the top > and left offset via css. I just wrote a plugin for getting the offset > of an element and did some pretty extensive cross-browser testing. I'm not too crazy about .top() and .left() be

Re: [jQuery] New JTicker version - multiple tickers on a single page

2006-10-03 Thread Jörn Zaefferer
Jason Levine schrieb: > I've updated JTicker to 0.5 Beta now. I added the ability to have multiple > tickers on a single page. This was a feature I really wanted to add and had > to learn a lot of new JavaScript to implement it. So it was a win-win > situation for me. ;-) I hope you like i

Re: [jQuery] Getting x- and y-positions of elements

2006-10-03 Thread Brandon Aaron
jQuery has two methods named .top() and .left() for setting the top and left offset via css. I just wrote a plugin for getting the offset of an element and did some pretty extensive cross-browser testing. Here is the blog entry: http://brandonaaron.net/articles/2006/10/02/jquery-plugin-offset -- B

[jQuery] Getting the element inside a jQuery function call

2006-10-03 Thread Yehuda Katz
Say I have something like this:$("p").attr("rel", "someRel")But instead of setting it as static, I want to set it based upon the attributes of the p's in question. For instance, say I want to set the rel to be the same as the class. Is there any way to get access to the DOM element being worked on

[jQuery] Getting x- and y-positions of elements

2006-10-03 Thread Dave Benjamin
Is there any plan to add jQuery methods to retrieve and set the coordinates of an element on the page? It seems like a good addition to dimensions.js, perhaps. Here's what I currently use: $.fn.x = function(n) { var result = null; this.each(function() { var o = this;

Re: [jQuery] Single Value Attributes

2006-10-03 Thread Dave Benjamin
On Tue, 3 Oct 2006, Michael Geary wrote: > No need to go to the extra work. jquery.js begins with this: > > window.undefined = window.undefined; > > So "undefined" exists in every browser. This is a handy line of code to put > in any JavaScript - it's completely compatible with both old and new >

[jQuery] New JTicker version - multiple tickers on a single page

2006-10-03 Thread Jason Levine
I've updated JTicker to 0.5 Beta now. I added the ability to have multiple tickers on a single page. This was a feature I really wanted to add and had to learn a lot of new JavaScript to implement it. So it was a win-win situation for me. ;-) I hope you like it too: http://www.jasons-tool

[jQuery] jquery is not defined error

2006-10-03 Thread Glen
I continue to get "jQuery is not defined" on each page load. According to http://jquery.com/dev/bugs/bug/64/, this is coming from the interface plugins not being used with the latest version of jquery. I've made sure that I have the latest stable versions of both jquery & interface, yet this

Re: [jQuery] Single Value Attributes

2006-10-03 Thread John Resig
> Also notice that .innerHTML (and thus jQuery's .html() method) doesn't > always return the live checked state. In IE it tracks any dynamic changes to > the script, but in Firefox it only reflects the initial state from the > source. You can see the form text by putting this into the URL: > > java

Re: [jQuery] Single Value Attributes

2006-10-03 Thread John Resig
Ah, this isn't a browser bug, but something of a jQuery one. removeAttr does obj.removeAttribute("checked") under the hood, which is not sufficient to remove these built-in properties. It would have to do obj.checked = undefined; or some such under the hood. --John On 10/3/06, Klaus Hartl <[EMAIL

Re: [jQuery] Single Value Attributes

2006-10-03 Thread Dave Methvin
>>> John, these are great additions, but please be advised that in some >>> browsers this.attr('checked', 'checked') won't work as expected. >> >> Do you know which browsers those are offhand? It'll help me to test >> the methods, when I make them > > I think there are overall inconstencies. I

Re: [jQuery] Rev: 259, where is now?

2006-10-03 Thread Andrea Ercolino
thanks John! That's what I was after. - Original Message From: John Resig <[EMAIL PROTECTED]>To: jQuery Discussion. Sent: Tuesday, October 3, 2006 8:27:44 PMSubject: Re: [jQuery] Rev: 259, where is now? I do have one pre-built one that I re-generate every couple days, youcan find it here:ht

Re: [jQuery] Single Value Attributes

2006-10-03 Thread Michael Geary
> > $.fn.checked = function(b) { > >if ( b || b == undefined ) > >this.attr( "checked", "checked" ); > >else > >this.removeAttr( "checked" ); > > }; > I strongly suggest you to compare if a variable is equal to > undefined using the typeof unary operator, because if you,

Re: [jQuery] Single Value Attributes

2006-10-03 Thread Klaus Hartl
John Resig schrieb: >> John, these are great additions, but please be advised that in some >> browsers this.attr('checked', 'checked') won't work as expected. > > Do you know which browsers those are offhand? It'll help me to test > the methods, when I make them I think there are overall inconst

Re: [jQuery] Serializing XML

2006-10-03 Thread Christof Donat
Hi, > I wasn't claiming that for was any less great than each! I was > complaining about looping a concat vs. doing a join at t the end... Erm, did I discuss that somewhere? You answered to my posting. The concat vs. join stuff was Sam. My point was to take the check for XMLSerializer out of th

Re: [jQuery] Single Value Attributes

2006-10-03 Thread Jörn Zaefferer
leandro nascimento camarg schrieb: > I strongly suggest you to compare if a variable is equal to undefined using > the typeof unary operator, because if you, someday, dicide to get these > things work on IE 5, you can not compare to the undefined constant (?), > after all, it doesn't exist on IE 5.

Re: [jQuery] XPath expressions not working

2006-10-03 Thread Raziel Alvarez
I sent an email yesterday, but maybe it didn't got through.   Anyway, this is it:   I have this simple markup:   componentDom.innerHTML =                            I'm executing this xpath calls with the following results:    $('form/[EMAIL PROTECTED]', componentDom).length = 3  $('form/[EMA

Re: [jQuery] Rev: 259, where is now?

2006-10-03 Thread John Resig
I do have one pre-built one that I re-generate every couple days, you can find it here: http://jquery.com/src/jquery-svn.js Having a nice historical listing would be nice too, as you suggest - but this should be good for now. --John On 10/3/06, Andrea Ercolino <[EMAIL PROTECTED]> wrote: > > ok >

Re: [jQuery] How should :nth-of-type work?

2006-10-03 Thread John Resig
I use to have all the *type selectors implemented, but after a quick survery I couldn't find anyone who actually used them (and who could've just used :nth-child() instead). Although, its' probably a good idea to have these in an external plugin, for completeness, in case anyone wants them. Good wo

Re: [jQuery] XPath expressions not working

2006-10-03 Thread Jörn Zaefferer
Raziel Alvarez schrieb: > I've been testing and I see many really simple XPath queries that just > don't work, or they even break. > > Is this broken in jQuery? Are they working for somebody? jQuery does not claim to implement the XPath standard. It just supports a small subset, and these shoul

[jQuery] XPath expressions not working

2006-10-03 Thread Raziel Alvarez
I've been testing and I see many really simple XPath queries that just don't work, or they even break.   Is this broken in jQuery? Are they working for somebody?    thanks   ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Full featured form validation library in jQuery?

2006-10-03 Thread Karl Swedberg
The jquery.com plugins page has a couple validators listed: Form Validation (no AJAX) http://fuzz.bassistance.de/jQueryFormValidation/validateTest.html Add validation rules to your markup and apply the form plugin to your form. Work is still in progress. Have a look at the different examples

Re: [jQuery] Serializing XML

2006-10-03 Thread Ⓙⓐⓚⓔ
I wasn't claiming that for was any less great than each! I was complaining about looping a concat vs. doing a join at t the end... and other micro effeciencies. I gave up tiny-tuning code when I gave up assembler. I tell this to all my programmers, You can't compare a little application code time

Re: [jQuery] Full featured form validation library in jQuery?

2006-10-03 Thread Brian Miller
That's a lot of stuff! Seriously, I think that what is being requested here, more than anything else, is organization. Can we start grouping our code into "plugin packs", or something? One for forms and friends, one for all kinds of visual effects (perhaps a package that groups the "best of the

[jQuery] Sortable Puzzle?

2006-10-03 Thread Dominik Hahn
Hello,Is it possible to create a Sortable Puzzle with jQuery (probably using Interface) to create something like this: http://wiki.script.aculo.us/scriptaculous/page/print/SortableFloatsDemothanks,Dominik___ jQuery mailing list discuss@jquery.com http://j

Re: [jQuery] Single Value Attributes

2006-10-03 Thread leandro nascimento camarg
I strongly suggest you to compare if a variable is equal to undefined using the typeof unary operator, because if you, someday, dicide to get these things work on IE 5, you can not compare to the undefined constant (?), after all, it doesn't exist on IE 5.0. Compare like this one: if(b || typeof

Re: [jQuery] Single Value Attributes

2006-10-03 Thread leandro nascimento camarg
What about you doing something like this: $.fn.checked = function(b) { b && this.attr('checked', 'checked') || this.removeAttr('checked'); } but doing this we counting on both *attr* and *removeAttr* methods return *true* on success (at least *attr* method). John Resig wrote: > > $.fn.chec

Re: [jQuery] Full featured form validation library in jQuery?

2006-10-03 Thread Andy Matthews
One thing I'd also like to request is a complete form widgets plugin. At the moment there are a plethora of form widgets, each of them single plugins. That's not very useful for someone that wants something that gets included once and called multiple times. Ideally, someone would come out with a fo

Re: [jQuery] Rev: 259, where is now?

2006-10-03 Thread Andrea Ercolino
ok   Now I understand that there is no release newer thah the 249, which is currently linked as the latest one in jquery.com   Would it be possible to post a build, once in a while? The dev page in jquery.com should be the right place for a section of this type.   < Latest Rev: 387 (to be built). P

Re: [jQuery] Full featured form validation library in jQuery?

2006-10-03 Thread Brandon Aaron
Actually I've built a library much like the one you are using for in-house at our company and was thinking about porting it to a jQuery plugin because I haven't seen one like it yet either. -- Brandon On 10/3/06, Andy Matthews <[EMAIL PROTECTED]> wrote: > So I've been using a form validation lib

[jQuery] NEWS: JQuery Digg Spy Updated

2006-10-03 Thread Rey Bango
I saw this on Ajaxian and I'm not sure if its been posted here but this JQuery Digg Spy has been updated: http://leftlogic.com/info/articles/jquery_spy2 Rey.. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

[jQuery] Full featured form validation library in jQuery?

2006-10-03 Thread Andy Matthews
So I've been using a form validation library called TMT_validator for the last year or so. It's very full-featured (probably a little too full-featured for what I need it for). But it's the best one I've found. I just checked the plugins page for form validation libraries and really only found one

Re: [jQuery] Rev: 259, where is now?

2006-10-03 Thread Franck Marcia
2006/10/3, Andrea Ercolino <[EMAIL PROTECTED]>: > > Thanks Franck, but I feel a dummy now. > Where is the link to download this 387 version? > There's currently no prebuilt jquery.js from svn. You must do it yourself using a svn client. On Windows, you can use TortoireSVN (http://tortoisesvn.net/)

Re: [jQuery] Fast form serializer function for review

2006-10-03 Thread Matt Grimm
OK, I've made several modifications thanks to your suggestions and corrections. This is publishable; should I go ahead and create a new wiki page under Plugins or maybe wait until it's decided whether this will be merged somehow with the existing form plugin? m. --- $.fn.fastSerialize = function

Re: [jQuery] Rev: 259, where is now?

2006-10-03 Thread Andrea Ercolino
Thanks Franck, but I feel a dummy now. Where is the link to download this 387 version? - Original Message From: Franck Marcia <[EMAIL PROTECTED]>To: jQuery Discussion. Sent: Tuesday, October 3, 2006 6:09:43 PMSubject: Re: [jQuery] Rev: 259, where is now? > I don't know how I got Rev: 259,

Re: [jQuery] Fast form serializer function for review

2006-10-03 Thread Matt Grimm
Good point, Jörn. Not only would you want to be able to submit an empty string value for an option, but if the "value" attribute is excluded from the option tag, this.value will return the text between the tags anyway. m. On Tue, 2006-10-03 at 11:17 +0200, Jörn Zaefferer wrote: > Matt Grimm schri

Re: [jQuery] Fast form serializer function for review

2006-10-03 Thread Matt Grimm
The "option:selected" is the only syntax that has worked for me in the past. The XPath method only gets those options that literally have an attribute of "selected" in the XHTML. I also agree with you on the matter of excluding this.id as a fallback for n. It's unnecessary and possibly confusing b

Re: [jQuery] Rev: 259, where is now?

2006-10-03 Thread Franck Marcia
> I don't know how I got Rev: 259, because current latest is 249. I wandered > around but I cannot find a link to it in jquery.com. > The last rev is #387, accessible via svn (http://jquery.com/src/) > 259 works better with IE than 249 > For example, 259 let me access tabs in a pre tag, while 249

Re: [jQuery] Fast form serializer function for review

2006-10-03 Thread Matt Grimm
Good call, I've updated it to use your syntax for "f". Added benefit: the selector reads "f this". m. On Tue, 2006-10-03 at 00:35 -0700, Michael Geary wrote: > Nice. > > You could simplify this: > > var f = ['INPUT', 'TEXTAREA', 'SELECT', 'BUTTON']; > $(f.join(','), this).each(function(

Re: [jQuery] Fast form serializer function for review

2006-10-03 Thread Matt Grimm
Thanks for catching this Klaus, I've updated the code to normalize tag names. m. On Tue, 2006-10-03 at 11:21 +0200, Klaus Hartl wrote: > > Klaus Hartl schrieb: > > Please make it XHTML as XML compatible (hm, why is it always me > > complaining about that?)...: > > > There's missing a part, I'

Re: [jQuery] Rev: 259, where is now?

2006-10-03 Thread Andrea Ercolino
thanks, but really I meant "where do I get a Rev >= 259?" - Original Message From: Webunity | Gilles van den Hoven <[EMAIL PROTECTED]>To: jQuery Discussion. Sent: Tuesday, October 3, 2006 6:06:34 PMSubject: Re: [jQuery] Rev: 259, where is now? Andrea Ercolino wrote:> I don't know how I got

[jQuery] Rev: 259, where is now?

2006-10-03 Thread Andrea Ercolino
I don't know how I got Rev: 259, because current latest is 249. I wandered around but I cannot find a link to it in jquery.com.   259 works better with IE than 249 For example, 259 let me access tabs in a pre tag, while 249 doesn't  ___ jQuery mailing lis

Re: [jQuery] Evaluating

2006-10-03 Thread Mark Gibson
Brian wrote: > Looks good, but please don't use "eval" as the function name. It's a Bad > Idea to overload reserved/predefined words, even if namespaced. Oops, sorry. I was going to rename it before submitting the suggestion. How about: evalScript() exec() execScript() a

Re: [jQuery] Evaluating

2006-10-03 Thread Webunity | Gilles van den Hoven
> any ideas? > maybe evaluate()? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Rev: 259, where is now?

2006-10-03 Thread Webunity | Gilles van den Hoven
Andrea Ercolino wrote: > I don't know how I got Rev: 259, because current latest is 249. I > wandered around but I cannot find a link to it in jquery.com. Each time someone of the developers (like me) commit something, the version number is increased. Therefore since your last download, 10 commi

Re: [jQuery] Evaluating

2006-10-03 Thread Brian
Looks good, but please don't use "eval" as the function name. It's a Bad Idea to overload reserved/predefined words, even if namespaced. - Brian > $.fn.eval = function(callback) { ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss

Re: [jQuery] Evaluating

2006-10-03 Thread Franck Marcia
2006/10/3, Mark Gibson <[EMAIL PROTECTED]>: > The solution is to wait for each script to load before executing the > next. Here's my solution as a plugin: > It reminds me of a post I made: http://jquery.com/discuss/2006-June/005496/. It was not specific to scripts loads but could be tweaked to wo

Re: [jQuery] String Parsing

2006-10-03 Thread Tombo
nice. i like that regular expression example. but i agree that the split method is probably quicker. thanks Christof Donat wrote: > > Hi, > >> i want to grab just the filename and extension from the following string: >> >> str1="F:\\Test1\\Test2\\Test3\\test.txt"; >> >> i want to grab "test

[jQuery] Started on window class for jQuery

2006-10-03 Thread Webunity | Gilles van den Hoven
Hi Guys, I have decided to share my subModal class. I started this "lightbox" of me right after i saw the first lightbox for prototype (so i have been coding on this one for almost 1 year now). It is going to have a lot of features and will off-course be shared with you guys. At the current st

Re: [jQuery] String Parsing

2006-10-03 Thread Christof Donat
Hi, > i want to grab just the filename and extension from the following string: > > str1="F:\\Test1\\Test2\\Test3\\test.txt"; > > i want to grab "test.txt" > > i use this code: > > file1=(str1.split("\\"))[(str1.split("\\")).length-1]; > > i was wondering if there is a better way to grab that part

Re: [jQuery] String Parsing

2006-10-03 Thread Tombo
yes. this was the elegance i was looking for. thx Blair Mitchelmore-2 wrote: > > To avoid running split twice, you could do it this way (removes IE5 from > compatibility however): > > var file1 = str1.split("\\").pop(); > > -blair > > Tombo wrote: >> this might not be jquery related, but

  1   2   >