Re: [jQuery] msie closures syntax

2006-12-27 Thread Michael Geary
Not only not related to jQuery, but not related to closures either. :-) The problem is that setTimeout doesn't accept the additional arguments you are passing it. Is there any reason you can't do this: setTimeout( function() { doStuff( stuff, 1, 2 ); }, 100 ); That would work in any browser.

Re: [jQuery] Plugin for UI blocking - an alternative to sync ajax

2006-12-27 Thread Klaus Hartl
Mike Alsup schrieb: This is a plugin for anyone who has an occasional need to simulate synchronous ajax. Sync ajax locks the entire browser which is never a good idea. This plugin can block and unblock user interaction on demand. A demo can be found here:

Re: [jQuery] msie closures syntax

2006-12-27 Thread Choan C. Gálvez
On 12/27/06, Michael Geary [EMAIL PROTECTED] wrote: Not only not related to jQuery, but not related to closures either. :-) The problem is that setTimeout doesn't accept the additional arguments you are passing it. Is there any reason you can't do this: setTimeout( function() { doStuff(

Re: [jQuery] Plugin for UI blocking - an alternative to sync ajax

2006-12-27 Thread Mike Alsup
Why not: $.blockUI()? Like that it's clearer that it is a global function, Good question. I guess I envisioned potential usage like: $('#myDiv').hide().blockUI().load('stuff.php', function() { $(this).fadeIn().unblockUI(); }); ___ jQuery mailing

[jQuery] tableSorter bug colspan in tfoot

2006-12-27 Thread Rafael Santos
hey, i'd like to know if i'm doing something wrong. Check this: table thead tr td1/td td2/td /tr /thead tbody tr td1/td td2/td /tr /tbody tfoot tr td colspan=2products found: #que.recordCount#/td /tr /tfoot /table When i try to sort it, firebug tells me: tbl.sorter.js (line 292) : o

Re: [jQuery] tableSorter bug colspan in tfoot

2006-12-27 Thread Yehuda Katz
I'm not sure if this will help, but you're supposed to use th, not td, in tfoot. -- Yehuda On 12/27/06, Rafael Santos [EMAIL PROTECTED] wrote: hey, i'd like to know if i'm doing something wrong. Check this: table thead tr td1/td td2/td /tr /thead tbody tr td1/td td2/td /tr /tbody

Re: [jQuery] tableSorter bug colspan in tfoot

2006-12-27 Thread Christian Bach
Hi, Try upgrading to the latest version, this issue should be fixed. The latest version is available here: http://jquery.com/dev/svn/trunk/plugins/tablesorter/jquery.tablesorter.js?format=raw /christian Rafael Santos wrote: hey, i'd like to know if i'm doing something wrong. Check this:

[jQuery] jQuery mouseenter mouseleave support?

2006-12-27 Thread Jonathan Sharp
Is there any support for this or a plugin that brings this functionality over to the firefox/non IE land? (Never thought I'd be saying that...) -js ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] jQuery mouseenter mouseleave support?

2006-12-27 Thread Paul Bakaus
Hi there! Use $(expr).hover() for that! Usage: $(element).hover(function() { //Mouseover }, function(){ //Mouseout }) 2006/12/27, Jonathan Sharp [EMAIL PROTECTED]: Is there any support for this or a plugin that brings this functionality over to the firefox/non IE land? (Never thought I'd be

Re: [jQuery] Plugin for UI blocking - an alternative to sync ajax

2006-12-27 Thread Christopher Jordan
I've been doing this same thing manually too. It'll be nice to have a plug-in. In a few of mine though, the message is actually a percentage counter letting the user know what portion of the page has been built. Hmm... I wonder if I can work that in some how. Good work though, Mike. Cheers,

[jQuery] tableSorter prevent a td to active the sorting

2006-12-27 Thread Rafael Santos
hey, How could I disable one or more td on the head when i click on it?? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Plugin for UI blocking - an alternative to sync ajax

2006-12-27 Thread Rey Bango
Hi Mike, I definitely like this and I can see its applicability in the use of things such as online order submissions where you want the order to complete before the user moves on. Rey... On 12/26/06, *Mike Alsup* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: This is a plugin

Re: [jQuery] tableSorter prevent a td to active the sorting

2006-12-27 Thread Yehuda Katz
What do you mean specifically? The most recent tablesorter includes a patch I wrote that allows you to pass a jQuery object, DOM node, or DOM node array to disableHeaders. -- Yehuda On 12/27/06, Rafael Santos [EMAIL PROTECTED] wrote: hey, How could I disable one or more td on the head when i

Re: [jQuery] Plugin for UI blocking - an alternative to sync ajax

2006-12-27 Thread Andy Matthews
Mike.. I don't think that it's correct to say that it's never a good idea to lock the entire browser. One of the benefits of AJAX is that the browser allows you to code an application in the browser which behaves more like a traditional app. And there are plenty of times when the user would

Re: [jQuery] tableSorter prevent a td to active the sorting

2006-12-27 Thread Rafael Santos
totally wrong question ive made , sorry.. I was wondering how how could i set the parameter sortColumn for two or more column, i have 4 columns the last one souldnt be sortable, u know... thx 2006/12/27, Yehuda Katz [EMAIL PROTECTED]: What do you mean specifically? The most recent tablesorter

Re: [jQuery] tableSorter prevent a td to active the sorting

2006-12-27 Thread Yehuda Katz
Like I said, use the disableHeader param. Pass it: * A numerical index with the col # * An id * A DOM node * A jQuery object containing DOM nodes * An array containing DOM nodes -- Yehuda On 12/27/06, Rafael Santos [EMAIL PROTECTED] wrote: totally wrong question ive made , sorry.. I was

Re: [jQuery] Plugin for UI blocking - an alternative to sync ajax

2006-12-27 Thread Aaron Heimlich
On 12/27/06, Andy Matthews [EMAIL PROTECTED] wrote: One of the benefits of AJAX is that the browser allows you to code an application in the browser which behaves more like a traditional app. I don't think that's what he was referring to. I think he was referring to the fact that the browser

Re: [jQuery] msie closures syntax

2006-12-27 Thread Yehuda Katz
Another possible improvement would be to genericize the work I did on the speed test. Specifically, to avoid browser lockup, I did the following: * I pass a list of DOM Elements to a function * That function executes something on the first item, and when it's done, passes the same list with the

[jQuery] slider

2006-12-27 Thread David Moshal
Anyone know of a jQuery slider, similar to this YUI Slider: http://developer.yahoo.com/yui/examples/slider/index.html Dave ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] slider

2006-12-27 Thread Karl Swedberg
Similar: http://interface.eyecon.ro/demos scroll down to Sliders --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Dec 27, 2006, at 1:30 PM, David Moshal wrote: Anyone know of a jQuery slider, similar to this YUI Slider:

Re: [jQuery] Plugin for UI blocking - an alternative to sync ajax

2006-12-27 Thread Mike Alsup
I don't think that's what he was referring to. I think he was referring to the fact that the browser actually *freezes* (as in it registers as Not Responding in the Windows Task Manager) during syncronous AJAX. Thanks, Aaron. Yes, that's exactly what I meant. I should have emphasized that

Re: [jQuery] Plugin for UI blocking - an alternative to sync ajax

2006-12-27 Thread Mike Alsup
I've been doing this same thing manually too. It'll be nice to have a plug-in. In a few of mine though, the message is actually a percentage counter letting the user know what portion of the page has been built. Hmm... I wonder if I can work that in some how. Hi Christopher, I have an

Re: [jQuery] msie closures syntax

2006-12-27 Thread moe
Hi Mike, On Wed, Dec 27, 2006 at 12:52:49AM -0800, Michael Geary wrote: Not only not related to jQuery, but not related to closures either. :-) hrmbl, but it was such a nice keyword... ;) The problem is that setTimeout doesn't accept the additional arguments you are passing it. Is there

Re: [jQuery] msie closures syntax

2006-12-27 Thread moe
nice, works in all browsers, solved my immediate problem. thank you! :) On Wed, Dec 27, 2006 at 01:09:33PM +0100, Choan C. Gálvez wrote: I was intrigued by the syntax used by Moe, as I had never seen it. It's documented at http://developer.mozilla.org/en/docs/DOM:window.setTimeout, stating:

Re: [jQuery] msie closures syntax

2006-12-27 Thread Michael Geary
this doesn't work like a local variable. Inside a nested function, this is not the same as in the outer function. That's what is messing things up. If I understand your code, you can write it more simply like this: (function($) { $.fn.Tooltip = function(settings) { var $all = this;

Re: [jQuery] Plugin for UI blocking - an alternative to sync ajax

2006-12-27 Thread Andy Matthews
Gotcha...thanks for clarifying. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mike

Re: [jQuery] Plugin for UI blocking - an alternative to sync ajax

2006-12-27 Thread Christopher Jordan
Cool Mike. Thanks! :o) Cheers, Chris Mike Alsup wrote: I've been doing this same thing manually too. It'll be nice to have a plug-in. In a few of mine though, the message is actually a percentage counter letting the user know what portion of the page has been built. Hmm... I wonder if I can

Re: [jQuery] msie closures syntax

2006-12-27 Thread moe
On Wed, Dec 27, 2006 at 11:25:20AM -0800, Michael Geary wrote: this doesn't work like a local variable. Inside a nested function, this is not the same as in the outer function. That's what is messing things up. If I understand your code, you can write it more simply like this: (function($)

[jQuery] [ifxhighlight] inline vs. applied style detection

2006-12-27 Thread bander
Having reported bug #552 ( http://jquery.com/dev/bugs/bug/552/ ), I'm trying to find a solution. Does anyone know how to detect whether $().css('backgroundColor') is returning an inline rule or a proper CSS styling? When it's an inline rule, the inline color needs to be set back to its original

[jQuery] unhover (again)

2006-12-27 Thread Jonathan Sharp
I found this thread from a few months ago: http://www.mail-archive.com/discuss@jquery.com/msg03955.html I have a few dom elements that are going to get updated via ajax and I need to unattach the events from them possibly (just the events I've attached). Is there an unhover method in the works?

Re: [jQuery] [ifxhighlight] inline vs. applied style detection

2006-12-27 Thread bander
I think I've figured out the inline vs. applied thing. This is what I'm using: z.el.get(0).style.backgroundColor == z.oldStyle.backgroundColor I'd still like help with the opacity, though. -- View this message in context:

[jQuery] Transmit form contents, receive response...best method?

2006-12-27 Thread Andy Matthews
I'm working on a CMS for a client. I'm building a newsletter manager where they can type in various attributes of the newsletter as a whole, then add articles on a need basis. I'm going to have the following fields: Type (select box with 4 options) Title (one sentence at most) SubTitle (one

Re: [jQuery] Transmit form contents, receive response...best method?

2006-12-27 Thread Mike Alsup
I'm going to work on this myself, but I wondered if anyone had suggestions for the best way to accomplish this. I'd use the form plugin! :-) And maybe have the server return a json object like: { title: the new title, sortOrder: 1 } The script could be something like this:

Re: [jQuery] Interface isortable onchange broken?

2006-12-27 Thread Mika Tuupola
On Dec 22, 2006, at 15:04, Mika Tuupola wrote: Latest isortables.js downloaded from http://interface.eyecon.ro/ (can not tell excact version since source code does not have revision tags) seems to have a bug. Callback defined by onchange option never gets called. Using older version

[jQuery] Create text submit buttons?

2006-12-27 Thread Phil Oye
Long time lurker, first time poster. I've searched a bit, and haven't found exactly what I need. I was wondering if someone here could help. I want to make an unobtrusive bit of Javascript that will replace all submit buttons with a text link (that I can style) that will submit the form. I

[jQuery] Run a list of functions sequentially

2006-12-27 Thread Yehuda Katz
I finally got around to building a run sequentially plugin: jQuery.sequence = { setTimeoutH: function(f, t) { var params = (arguments.length == 3 arguments[2].constructor == Array) ? arguments[2] : jQuery.merge([], arguments).slice(2); window.setTimeout(function() { f.apply(f, params) },

Re: [jQuery] Create text submit buttons?

2006-12-27 Thread bander
I'll bet it'll work with $(this).prev().click(). Phil Oye wrote: I want to make an unobtrusive bit of Javascript that will replace all submit buttons with a text link (that I can style) that will submit the form. . . . It should just submit the parent form. This is the code that

Re: [jQuery] Create text submit buttons?

2006-12-27 Thread Mike Alsup
Can you give me a pointer to fix this? $(':submit').each(function() { var form = this.form; var b = $('a href=# class=buttonButton Text/a); $(this).after(b).hide(); b.click(function() { form.submit(); return false; }); });

Re: [jQuery] Localization tool mashup for jQuery

2006-12-27 Thread Rey Bango
Very cool, Kevin. I also like that the performance is still there even though you're deriving the translation from Google. I'll play with it some more and give you some feedback. Rey Kevin Pirkl wrote: Localization and language translation services in web pages are sorely under-represented

Re: [jQuery] Create text submit buttons?

2006-12-27 Thread John Resig
Yeah, it does sound like that's the case - here's an alternate solution that does not assume that the form is the parent: $(a href='' class='button'ButtonText/a) .click(function() { $(this).parents(form)[0].submit(); return false; }) .insertAfter('input:submit'); --John On 12/27/06, Yehuda

Re: [jQuery] Localization tool mashup for jQuery

2006-12-27 Thread Bruce
This translate is awesome. I get permission denied line 1894 but it still works (tried using the demo) This is good Bruce Prochnau bkdesign solutions - Original Message - From: Rey Bango [EMAIL PROTECTED] To: jQuery Discussion. discuss@jquery.com Sent: Wednesday, December 27, 2006

Re: [jQuery] Create text submit buttons?

2006-12-27 Thread Phil Oye
Ok, now I'm perplexed. Originally, the submit button was in a fieldset. But even when I take it out, and make it a direct child of the form itself, I get an error that reads: this.parentNode.submit is not a function. or form.submit is not a function. When I click the text link,

Re: [jQuery] Create text submit buttons?

2006-12-27 Thread Yehuda Katz
If you're still around, feel free to IM me at outlookeic. -- Yehuda On 12/27/06, Phil Oye [EMAIL PROTECTED] wrote: Ok, now I'm perplexed. Originally, the submit button was in a fieldset. But even when I take it out, and make it a direct child of the form itself, I get an error that reads:

Re: [jQuery] Localization tool mashup for jQuery

2006-12-27 Thread Bruce
ummm, ok Anyone know how to remove the script error in ie? Otherwise great :) Bruce Prochnau bkdesign Previous: This translate is awesome. I get permission denied line 1894 but it still works (tried using the demo) This is good Bruce Prochnau bkdesign solutions - Original Message -