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 - Fr

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] 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, de

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." Sent: Wednesday, December 27, 2006 8:45 PM Subject:

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: $("ButtonText") .click(function() { $(this).parents("form")[0].submit(); return false; }) .insertAfter('input:submit'); --John On 12/27/06, Yehuda Katz <[EMAIL PROTECTED]>

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] unhover (again)

2006-12-27 Thread Yehuda Katz
unbind("mouseover") should work :) -- Yehuda On 12/27/06, Jonathan Sharp <[EMAIL PROTECTED]> wrote: 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

Re: [jQuery] Create text submit buttons?

2006-12-27 Thread Yehuda Katz
John's solution and mine assume that your link is a direct child of the form. Is it? -- Yehuda On 12/27/06, Phil Oye <[EMAIL PROTECTED]> wrote: None of the proposed solutions are working for me. Now I'm wondering if it is a markup problem, or something. Bander's solution: > I'll bet it'll wor

Re: [jQuery] Create text submit buttons?

2006-12-27 Thread Phil Oye
None of the proposed solutions are working for me. Now I'm wondering if it is a markup problem, or something. Bander's solution: > I'll bet it'll work with $(this).prev().click(). Nothing happens. Presumably, because it attempts to go the original href ("#"), not the newly created onclick eve

Re: [jQuery] .load() not executing javascript code in IE

2006-12-27 Thread Mike Alsup
> Internet Explorer wont execute dynamic code in that manner. Sure it will, with the help of jQuery. $().load has logic to find and eval script in the returned text. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Run a list of functions sequentially

2006-12-27 Thread Mike Alsup
> This will allow $.sequence.runNTimes(5, function() { console.log(this), > function() { console.log("Done") }; which will print 0, 1, 2, 3, 4 and then > "Done" Cool stuff, Yehuda! ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] .load() not executing javascript code in IE

2006-12-27 Thread Kevin Pirkl
Internet Explorer wont execute dynamic code in that manner. You have two options... (I like the second one better.) I tested through the second solution and it appears to work fine... 1> Dynamic script head tag creation // Thanks to http://www.bluishcoder.co.nz/2006/12/cross-domain-json-with

[jQuery] Localization tool mashup for jQuery

2006-12-27 Thread Kevin Pirkl
Localization and language translation services in web pages are sorely under-represented so I've been working on a Translator mashup with Google Translator web page. I have a working demo up but I need some eyes to look at it and give me feedback. I am not any kind of JavaScript guru and this is

Re: [jQuery] Run a list of functions sequentially

2006-12-27 Thread Yehuda Katz
Awesome, Quick update, add the following into jQuery.sequence: runNTimes: function(times, fn, whenDone, i) { n = n || 0; if(times > 0) fn.call(n); if(times > 1) jQuery.sequence.setTimeoutH(arguments.callee, 1, times - 1, fn, whenDone, n + 1) else if(whenDone) whenDone(); } This wi

Re: [jQuery] Create text submit buttons?

2006-12-27 Thread John Resig
Or, a similar, but different, way: $("ButtonText") .click(function() { this.parentNode.submit(); return false; }) .insertAfter('input:submit'); --John On 12/27/06, Yehuda Katz <[EMAIL PROTECTED]> wrote: > $('[EMAIL PROTECTED]').after(" class='button'>ButtonText").next().click(function() { >

Re: [jQuery] Run a list of functions sequentially

2006-12-27 Thread Alex Cook
This I'll be playing with ASAP, thanks Yehuda!! -ALEX From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Yehuda Katz Sent: Wednesday, December 27, 2006 4:04 PM To: jQuery Discussion. Subject: [jQuery] Run a list of functions sequentially I f

Re: [jQuery] Create text submit buttons?

2006-12-27 Thread Yehuda Katz
$('[EMAIL PROTECTED]').after("ButtonText").next().click(function() { this.parentNode.submit(); }) assuming the button and link are directly under the form. -- Yehuda On 12/27/06, Mike Alsup <[EMAIL PROTECTED]> wrote: > Can you give me a pointer to fix this? $(':submit').each(function() {

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 = $('Button Text"); $(this).after(b).hide(); b.click(function() { form.submit(); return false; }); }); ___ jQuery mai

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 cod

[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)

[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

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 ($Rev

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: $('#new

[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 sente

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: http://www.nabble.com/-ifxhighlight--inline-vs.-applied-style-detection-

[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?

[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 v

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: > > (fu

Re: [jQuery] jQuery mouseenter & mouseleave support?

2006-12-27 Thread Jonathan Sharp
Thank you! I'm embarassed to say that I missed that... I had always assumed that hover was just a shortcut for mouseover / mouseout and didn't take into account when a child element was entered. Thanks, -Jonathan On 12/27/06, Paul Bakaus <[EMAIL PROTECTED]> wrote: Hi there! Use $(expr).hover

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 w

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

2006-12-27 Thread Andy Matthews
Gotcha...thanks for clarifying. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mike Alsup Sent: Wednesday, December 27, 2006 12:47 PM To: jQuery Discussion. Subject: Re: [jQuery] Plugin for UI blocking - an alternative to sync ajax > I don't think that's

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] 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 > , sta

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 the

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 up

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 tha

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: http://developer.yahoo.com/yu

[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] 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 f

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 browse

Re: [jQuery] tableSorter prevent a 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 won

Re: [jQuery] tableSorter prevent a 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 tablesorte

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 exp

Re: [jQuery] tableSorter prevent a 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 on the head when i c

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] > > wrote: > > This is a

[jQuery] tableSorter prevent a to active the sorting

2006-12-27 Thread Rafael Santos
hey, How could I disable one or more 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 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, C

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

[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] 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: >

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: 1 2 1 2 products found: #que.recordCount# When i tr

[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: 1 2 1 2 products found: #que.recordCount# When i try to sort it, firebug tells me: tbl.sorter.js (line 292) : o has no properties return o.innerHTML; I realise that if i remove the colspan it works fine..

[jQuery] Ensure that one object is at least as tall as another.

2006-12-27 Thread Daniel Pittman
G'day. I have written a jQuery style method to solve a specific UI issue for which I have yet to see another solution. What I want to do, essentially, is to have a block element grow so that it is at least as tall as another element -- a sidebar that can be taller than the content block (of varia

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 maili

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() { do

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: > > http://www.malsup.com/jque

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.