Re: [jQuery] $.fn.height in dimensions.js

2006-10-06 Thread Paul Bakaus
HiWell, it was actually build to override the default function, yes, but I see your problem. It's not really backwards friendly like this. Probably I'll update these functions so they will not interfere anymore with the default ones. 2006/10/6, Pascal [EMAIL PROTECTED]: I added the dimensions.js

Re: [jQuery] ScrollTo Functionality

2006-10-06 Thread Klaus Hartl
Ⓙⓐⓚⓔ schrieb: I looked at that page... wouldn't it be cooler to just say a href=#place and have it scroll to a name=place ? and let JQ do it all behind the scenes? Is there a more experienced JQ person out there to tackle this? That is to me also the desired way to do it. It would be

Re: [jQuery] jQuery Map solution

2006-10-06 Thread Dylan Verheul
The Google Map plugins does something like that with the geo microformat. http://www.dyve.net/jquery?googlemaps On 10/5/06, alfdesign.sk [EMAIL PROTECTED] wrote: Hi, I want to know, if anyone have any interactive map solution in jQuery, like this at

Re: [jQuery] Autocomplete Plugin: iframe visible in IE6.

2006-10-06 Thread Dylan Verheul
Thanks, that would have been it then. On 10/5/06, Jason Huck [EMAIL PROTECTED] wrote: FWIW, I killed the parts of the CSS that were hacks for IE5 support (we haven't supported IE5 in a while), and it seems to be fine now. - jason Dylan Verheul wrote: I've had the same experience

Re: [jQuery] New plugin: toXML (XML serializer)

2006-10-06 Thread Mathias Bank
The project has moved to sourceforge: http://innerdom.sourceforge.net/ I think, this work can improve your plugin. Mathias 2006/10/5, Mathias Bank [EMAIL PROTECTED]: Oh, that's interesting. Perhaps this page will help you: http://simon-kuehn.de/projekte_innerdom.html (via

Re: [jQuery] jQuery Map solution

2006-10-06 Thread Klaus Hartl
Dylan Verheul schrieb: The Google Map plugins does something like that with the geo microformat. http://www.dyve.net/jquery?googlemaps (Offtopic) Sidenote about the mentioned Alistapart article: I like the whole idea, but I do not agree with using the map's images as CSS background

Re: [jQuery] Slider plugin (pre-alpha): HELP NEEDED

2006-10-06 Thread Klaus Hartl
Jörn Zaefferer schrieb: Yehuda Katz schrieb: I've developed (or partially developed) a new plugin that implements webform2's slider. Specifically, you can do stuff like input type=range step=1 min=1 max=10 value=1 id=a / and jQuery will automatically convert it into a stylable range

Re: [jQuery] Plugin Update: numeric

2006-10-06 Thread Sam Collett
On 05/10/06, Rafael Santos [EMAIL PROTECTED] wrote: Sam, doesn't it should accept Paste cmd? Pasting should only work on the 1st and third input boxes and the textarea. I have only tested on Windows and needs more work - you can still paste with Shift-Ins (that should be easy to fix) and

[jQuery] Add to attr() before using

2006-10-06 Thread Mark Harwood
Hey all, Ive got a simple bit of jQuery that takes the href from an ancor tag and passes it on: $(.jShow a img).hide().attr({src: $(this).attr(href), title: $(this).attr(title)}); How do i go about adding to the $(this).attr(href) part, i wish to add -large to it before the file extension

Re: [jQuery] Add to attr() before using

2006-10-06 Thread Jörn Zaefferer
Hi Mark! Ive got a simple bit of jQuery that takes the href from an ancor tag and passes it on: $(.jShow a img).hide().attr({src: $(this).attr(href), title: $(this).attr(title)}); How do i go about adding to the $(this).attr(href) part, i wish to add -large to it before the file

Re: [jQuery] Add to attr() before using

2006-10-06 Thread Mark Harwood
Thanks i shall give that a go now, didnt know about replace() :D Many thanks Jörn Zaefferer wrote: Hi Mark! Ive got a simple bit of jQuery that takes the href from an ancor tag and passes it on: $(.jShow a img).hide().attr({src: $(this).attr(href), title: $(this).attr(title)}); How do

Re: [jQuery] Plugin Update: numeric

2006-10-06 Thread Sam Collett
On 06/10/06, Sam Collett [EMAIL PROTECTED] wrote: On 05/10/06, Rafael Santos [EMAIL PROTECTED] wrote: Sam, doesn't it should accept Paste cmd? Pasting should only work on the 1st and third input boxes and the textarea. I have only tested on Windows and needs more work - you can still paste

Re: [jQuery] Slider plugin (pre-alpha): HELP NEEDED

2006-10-06 Thread Yehuda Katz
Klaus,Practically speaking, what you're saying isn't true. I'm able to set type=range, and jQueyr's able to detect that attribute on document.ready (in all browsers). It doesn't automatically fall back, before I have a chance to do something about it. -- YehudaOn 10/6/06, Klaus Hartl [EMAIL

Re: [jQuery] Slider plugin (pre-alpha): HELP NEEDED

2006-10-06 Thread Klaus Hartl
Yehuda Katz schrieb: Klaus, Practically speaking, what you're saying isn't true. I'm able to set type=range, and jQueyr's able to detect that attribute on document.ready (in all browsers). It doesn't automatically fall back, before I have a chance to do something about it. -- Yehuda

Re: [jQuery] Plugin Update: numeric

2006-10-06 Thread Yehuda Katz
Why not allow pasting, but remote non-numbers from pasted text via regex?-- YehudaOn 10/6/06, Sam Collett [EMAIL PROTECTED] wrote:On 06/10/06, Sam Collett [EMAIL PROTECTED] wrote: On 05/10/06, Rafael Santos [EMAIL PROTECTED] wrote: Sam, doesn't it should accept Paste cmd? Pasting should only

Re: [jQuery] Add to attr() before using

2006-10-06 Thread Karl Swedberg
On Oct 6, 2006, at 7:12 AM, Jörn Zaefferer wrote: Try this: $(.jShow a img).hide().attr({src: $(this).attr(href).replace(/ \.(.+)$/, -large.$1), title: $(this).attr(title)}); Tested with javascript.txt as href value, works fine. -- Jörn I'm a little confused about this. Doesn't src:

Re: [jQuery] Plugin Update: numeric

2006-10-06 Thread Sam Collett
On 06/10/06, Yehuda Katz [EMAIL PROTECTED] wrote: Why not allow pasting, but remote non-numbers from pasted text via regex? -- Yehuda The problem is that I am not sure how to intercept pastes (except in IE). I don't know if any events are fired whenever you paste something (and how to capture

Re: [jQuery] Plugin Update: numeric

2006-10-06 Thread Yehuda Katz
They keyup event comes to mind. You might need to bind the click event too (in case they paste via the mouse).-- YehudaOn 10/6/06, Sam Collett [EMAIL PROTECTED] wrote:On 06/10/06, Yehuda Katz [EMAIL PROTECTED] wrote: Why not allow pasting, but remote non-numbers from pasted text via regex? --

[jQuery] jQuery and Prototype

2006-10-06 Thread Laurent Yaish
Hi Folks, First of all thank you John for writing jQuery. I've read the wiki page regarding using jQuery and prototype together and couldn't get it to work reliably. I did load prototype first but ended up going through the jQuery source code and renamed $() to JQ(). It would be kind of cool if

Re: [jQuery] jQuery and Prototype

2006-10-06 Thread Jörn Zaefferer
Original-Nachricht Datum: Fri, 6 Oct 2006 08:12:51 -0700 Von: Laurent Yaish [EMAIL PROTECTED] An: discuss@jquery.com Betreff: [jQuery] jQuery and Prototype Hi Folks, First of all thank you John for writing jQuery. I've read the wiki page regarding using jQuery and

Re: [jQuery] jQuery and Prototype

2006-10-06 Thread Laurent Yaish
The jQuery code itself uses $ toggle: function(){ $(this)[ $(this).is(:hidden) ? show : hide ].apply( $(this), arguments ); }, The $ is great for the end user, but it is a very generic alias. I don't think it is a good idea for jQuery or

Re: [jQuery] jQuery and Prototype

2006-10-06 Thread Brandon Aaron
I think it would be worth it to change all internals of jQuery to not use $. Essentially it is just a find and replace ... the issue is getting plugins to do it. I think the next release should force the issue. -- Brandon Aaron On 10/6/06, Laurent Yaish [EMAIL PROTECTED] wrote: The jQuery code

Re: [jQuery] jQuery and Prototype

2006-10-06 Thread Laurent Yaish
Yes it is a simple search and replace, that's what I just did to get prototype and jQuery to work together. Even for plugin authors this should be a very simple change. When is the next release due? On 10/6/06, Brandon Aaron [EMAIL PROTECTED] wrote: I think it would be worth it to change all

Re: [jQuery] jQuery and Prototype

2006-10-06 Thread Rey Bango
So you think JQuery should change the $ to another identifier or you feel JQuery should implement namespaces? If its the latter, I'm not keen on that. I like the shorter code approach the JQuery and Prototype use but if there's a way to keep that (eg: JQ()), then I'd go for something like

[jQuery] Using $ to insert HTML into the page

2006-10-06 Thread Matthew Pennell
Jörn Zaefferer schrieb: In the documentation (visualjquery.com http://visualjquery.com version), it says that the $ function, when passed some HTML as a string, will create the DOM elements representing that HTML string, on the fly. Looking at the code though (the clean function), it appears

Re: [jQuery] check all functions

2006-10-06 Thread Charles Peterson
Sam Collett wrote: On 05/10/06, Charles Peterson [EMAIL PROTECTED] wrote: Note sure where to post this so heres some code. This allows you to have a set of check all check boxes that check another set of check boxes. Example

Re: [jQuery] jQuery and Prototype

2006-10-06 Thread John Resig
I think 'jQuery(...)' should still be used internally and by plugin authors for the foreseeable future. If file size is an issue, the code could always be compressed/packed. Yep, totally agree - the internal uses of $() instead of jQuery() are definitely a mistake - just me lapsing back into

Re: [jQuery] jQuery and Prototype

2006-10-06 Thread Klaus Hartl
Mike Alsup schrieb: I agree completely. I'll update my plugins today. Mike Me too! Ok, maybe not today, but then tomorrow :-) -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Forms and the fx module

2006-10-06 Thread Brandon Aaron
The opacity stuff in jQuery is currently broken for IE. This bug will shed some light on your situation and provide a patch for it: http://jquery.com/dev/bugs/bug/204/ I'm currently using it successfully but beware if you are using other filters as this patch (in its current form) will overwrite

Re: [jQuery] Forms and the fx module

2006-10-06 Thread Brandon Aaron
Oh and if you use this patch ... please let me know if it works, doesn't work, etc... Thanks! -- Brandon Aaron On 10/6/06, Brandon Aaron [EMAIL PROTECTED] wrote: The opacity stuff in jQuery is currently broken for IE. This bug will shed some light on your situation and provide a patch for it:

Re: [jQuery] check all functions

2006-10-06 Thread Sam Collett
On 05/10/06, Charles Peterson [EMAIL PROTECTED] wrote: Ya, you inspired my improvement on the functions. basically you are checking or unchecking ALL but ignored checkboxes on the page/form (useful, but not what I wanted) I wanted to specify which ones to check,

[jQuery] SlideDown Height Problem

2006-10-06 Thread Glen Lipka
I am working on a redesign of payroll.com which leverages jQuery a bunch.I am having one bug that I can't seem to fix.Sample: http://glenlipka.kokopop.com/jQuery/payroll/PayrollIntroduction.htmIn Firefox, Click on the last link and then scroll down.When I use show(0), the height works fine. When I

Re: [jQuery] SlideDown Height Problem

2006-10-06 Thread Tombo
the third link doesn't expand big enough for me to read all the content. i'm using IE7 Glen Lipka wrote: I am working on a redesign of payroll.com which leverages jQuery a bunch. I am having one bug that I can't seem to fix. Sample:

Re: [jQuery] jQuery and Prototype

2006-10-06 Thread Rey Bango
Thanks Brandon. Thats what I wanted to understand. Rey... Brandon Aaron wrote: Removing the alias throughout the core and the plugins will make it easier for those who need to integrate with Atlas and prototype. Just making it a one line fix to change the alias to something else. The '$'

[jQuery] 'fast' serialize and 'semantic' serialize method

2006-10-06 Thread Mike Alsup
Below is a consolidated serialize method to accommodate the optimized vs. semantic issue we've been pursuing recently. Essentially, this is Matt Grimm's fastSerialize method with conditional behavior to drive the semantic logic. I like how Matt wrote that method and the semantic stuff drops

Re: [jQuery] ScrollTo Functionality

2006-10-06 Thread Wil Stuckey
I've implemented a technique similar to this. here is the code i used:$.fn.scrollInterface = function(s) { var $handles = $('a', this).add('a.top'), s = s || 300; $handles.click(function(){ this._href = (!this._href) ? # + this.href.split('#')[1] : this._href; $(this._href).ScrollTo(s); return

Re: [jQuery] SlideDown Height Problem

2006-10-06 Thread Glen Lipka
I put that in, but unfortunately, it didn't help. See same url, updatedI tried about 3 dozen different variations too.The content is variable, so I don't know what the height is in advance to put that in.Glen On 10/6/06, John Resig [EMAIL PROTECTED] wrote: Glen -Currently, jQuery requires that

[jQuery] search for id with '/' character

2006-10-06 Thread
Hi, if I have a form like form input type=text value=test id=content/mytest/ /form How can I get the value for the input text field using jquery? I tried script type=text/javascript $(document).ready(function(){ var a = $([EMAIL PROTECTED]'content/mytest']); alert(a.val());

Re: [jQuery] search for id with '/' character

2006-10-06 Thread Olivier Percebois-Garve
I guess $('input').attr('id'); [EMAIL PROTECTED] wrote: Hi, if I have a form like form input type=text value=test id=content/mytest/ /form How can I get the value for the input text field using jquery? I tried script type=text/javascript $(document).ready(function(){

[jQuery] Load, then Toggle Problem

2006-10-06 Thread Glen Lipka
Sample URL:http://glenlipka.kokopop.com/jQuery/slideMenu.htm#I am trying to make the header totally loaded through jQuery.So my steps are: 1. Insert DIV right after body2. $Load html for DIV and anchor link3. set toggle function on anchor linkAlmost everything seems to work, but the toggle is not

Re: [jQuery] Load, then Toggle Problem

2006-10-06 Thread Olivier Percebois-Garve
why not try append() instead of prepend() ? in $("body").prepend("div id='intuitHeader'/div"); olivvv Glen Lipka wrote: Sample URL: http://glenlipka.kokopop.com/jQuery/slideMenu.htm# I am trying to make the header totally loaded through jQuery. So my steps are: 1. Insert DIV right

Re: [jQuery] search for id with '/' character

2006-10-06 Thread Matt Grimm
Your problem is that you prefixed the input selector with #. This works: $('[EMAIL PROTECTED]/bar]').val(); On Fri, 2006-10-06 at 15:00 -0400, [EMAIL PROTECTED] wrote: Hi, if I have a form like form input type=text value=test id=content/mytest/ /form How can I get the

Re: [jQuery] Using $ to insert HTML into the page

2006-10-06 Thread Blair Mitchelmore
I'm pretty sure If I recall correctly, jQuery's element creation technique is to create a temporary div (var div = document.createElement('div')) then add the html you provided to that elements innerHTML value (div.innerHTML = html) and then extracting the div's children (using the appropriate

Re: [jQuery] 'fast' serialize and 'semantic' serialize method

2006-10-06 Thread Matt Grimm
Nice. Another optimization just came to me, after seeing you filter out the 'option' elements in the semantic selector... you can filter them before they are returned, which speeds it up considerably: $('*:not(option)', this) As a side question, what advantage is there to calling the jQuery

Re: [jQuery] jQuery and Prototype

2006-10-06 Thread Klaus Hartl
Klaus Hartl schrieb: Mike Alsup schrieb: I agree completely. I'll update my plugins today. Mike Me too! Ok, maybe not today, but then tomorrow :-) Thank you Jörn! :-) -- Klaus ___ jQuery mailing list discuss@jquery.com

Re: [jQuery] 'fast' serialize and 'semantic' serialize method

2006-10-06 Thread Mike Alsup
$('*:not(option)', this) Thanks, Matt. That's even better! As a side question, what advantage is there to calling the jQuery function by name instead of by the $ alias? See other thread on this topic (jQuery and Prototype). Mike ___ jQuery

Re: [jQuery] SlideDown Height Problem

2006-10-06 Thread Geoff Knutzen
Glen, You might have just found the same bug that I found the other day. Luckily, Klaus has already fixed the problem. Check for a message from yesterday titled (so descriptively) Bug? It may give you a clue as to your problems. Quickly looking at your CSS, it looks similar to mine.

Re: [jQuery] Load, then Toggle Problem

2006-10-06 Thread Glen Lipka
prepend() puts it right after the body.append() puts it at the end before the /bodyGlen.On 10/6/06, Olivier Percebois-Garve [EMAIL PROTECTED] wrote: why not try append() instead of prepend() ? in $(body).prepend(div id='intuitHeader'/div);olivvv Glen Lipka wrote: Sample URL:

[jQuery] Forms and the fx module

2006-10-06 Thread Kolak Roy M.
Brandon, I applied your patch to the uncompressed jquery.js file. I added the appropriate lines and removed the marked lines. I only applied the top patch (the patch in the yellow box) to the jquery.js file. For each situation, I used the .show and .hide functions of the fx module. The

Re: [jQuery] 'fast' serialize and 'semantic' serialize method

2006-10-06 Thread Mike Alsup
I uploaded forms.js to my test page. The test page now has the side-by-side forms with one using the 'fast' method and one using the 'semantic' method. http://www.malsup.com/jquery/form/ Mike On 10/6/06, Mike Alsup [EMAIL PROTECTED] wrote: $('*:not(option)', this) Thanks, Matt. That's

Re: [jQuery] SlideDown Height Problem

2006-10-06 Thread Glen Lipka
Ok, so I will wait for 1.0.2 official release to use this effect in this case.(Anyone have an ETA on 1.0.2?)In the meantime I will iuse show(0), which doesn't have the issue. Thanks Geoff! Thanks Klaus!GlenOn 10/6/06, Geoff Knutzen [EMAIL PROTECTED] wrote: Glen, You might have

Re: [jQuery] Forms and the fx module

2006-10-06 Thread Brandon Aaron
Please use the patch in the comments as it will work. The first patch (in the yellow) is the first but doesn't patch everything. The second patch will fix what you need. I'm actually working on a better one right now and might have something ready within the hour. -- Brandon Aaron On 10/6/06,

Re: [jQuery] search for id with '/' character

2006-10-06 Thread Wil Stuckey
couldn't you just do:$('#foo/bar').val();?-wilOn 10/6/06, Matt Grimm [EMAIL PROTECTED] wrote: Your problem is that you prefixed the input selector with #. Thisworks: $('[EMAIL PROTECTED]/bar]').val();On Fri, 2006-10-06 at 15:00 -0400, [EMAIL PROTECTED] wrote: Hi, if I have a form like form input

Re: [jQuery] search for id with '/' character

2006-10-06 Thread Matt Grimm
No, that doesn't work, and I'm assuming it has something to do with the forward slash being an XPath selector. m. On Fri, 2006-10-06 at 17:21 -0400, Wil Stuckey wrote: couldn't you just do: $('#foo/bar').val(); ? -wil On 10/6/06, Matt Grimm [EMAIL PROTECTED] wrote: Your

Re: [jQuery] search for id with '/' character

2006-10-06 Thread Klaus Hartl
Wil Stuckey schrieb: couldn't you just do: $('#foo/bar').val(); No, the slash is an XPath selector. That expression translates to All items named bar which are a direct child of #foo, or as a CSS selector: #foobar. -- Klaus ___ jQuery mailing

Re: [jQuery] Load, then Toggle Problem

2006-10-06 Thread Glen Lipka
AHA!The anchor link was not showing up until after the load(), so the toggle() function couldn't find it. But lo and behold, the load function has a callback function!! So I could bind the toggle AFTER the html came in Ba Bam! jQuery is the best!code snippet:$(body).prepend(div

[jQuery] .each backwards ?

2006-10-06 Thread kenton.simpson
Is there a way to make .each walk backwards threw the element collection? -- View this message in context: http://www.nabble.com/.each-backwards---tf2399145.html#a6690114 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing

Re: [jQuery] .each backwards ?

2006-10-06 Thread Blair Mitchelmore
I propose hcae: jQuery.fn.hcae = function( fn, args ) { return jQuery.hcae( this, fn, args ); }; jQuery.hcae = function( obj, fn, args ) { if ( obj.length == undefined ) for ( var i in obj ) fn.apply( obj[i], args || [i, obj[i]] );

Re: [jQuery] .each backwards ?

2006-10-06 Thread Ⓙⓐⓚⓔ
interesting! When would length be undefined on an JQ object? When I first saw the question, I thought of tail recursion, does JS deal well (optimize) tail recursion? On 10/6/06, Blair Mitchelmore [EMAIL PROTECTED] wrote: I propose hcae: jQuery.fn.hcae = function( fn, args ) { return

Re: [jQuery] .each backwards ?

2006-10-06 Thread Matt Stith
i know js 1.2 does, but i think its only supported in ff 2.0 currently... but dont quote me on that. On 10/6/06, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote: interesting! When would length be undefined on an JQ object? When I first saw the question, I thought of tail recursion, does JS deal well

Re: [jQuery] .each backwards ?

2006-10-06 Thread Dossy Shiobara
On 2006.10.06, Blair Mitchelmore [EMAIL PROTECTED] wrote: I propose hcae: Oh, god no. I see the smiley so I'm guessing you're only kidding, but before someone goes yeah, that's a good idea ... kenton.simpson wrote: Is there a way to make .each walk backwards threw the element collection?

[jQuery] Cheat Sheet?

2006-10-06 Thread Rey Bango
I recall a JQuery cheat sheet floating around. Anyone have the link to that? Rey ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] .each backwards ?

2006-10-06 Thread Ⓙⓐⓚⓔ
ff2,0 is up to js1.7 On 10/6/06, Matt Stith [EMAIL PROTECTED] wrote: i know js 1.2 does, but i think its only supported in ff 2.0 currently... but dont quote me on that. On 10/6/06, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote: interesting! When would length be undefined on an JQ object? When I