[jQuery] Re: Finding the element which has focus

2008-07-22 Thread Joel Newkirk
I don't think that'll work out as you expect... $(selector).focus() GIVES $(selector) the focus, it doesn't test whether it already HAS focus. Ideally there would be a selector such as :focus, fitting in with :enabled, :selected, :hidden, and others. j On Mon, Jul 21, 2008 at 5:27 PM, jquertil <

[jQuery] Re: Finding the element which has focus

2008-07-21 Thread Joel Newkirk
Try stuffing values into a variable from the onFocus() event of each of the tables. Or add/remove an additional class when a table gets/loses focus. You can find the focused table quickly that way, and apply different styling if desired based on the class 'focused' or whatever. j On Sun, Jul 20

[jQuery] Re: jQuery Validation Question - remote Rule

2008-07-21 Thread Joel Newkirk
That should work, though you should probably use something like encodeURIComponent($('#AssignedTo').val()) to ensure legal characters. You probably could have just tried it and found out faster than posting here... ;) j On Mon, Jul 21, 2008 at 9:52 AM, Nimrod <[EMAIL PROTECTED]> wrote: > > Hi

[jQuery] Re: How do I find and replace HTML comments?

2008-06-26 Thread Joel Newkirk
Or, if you're writing straight HTML without PHP, you could try Server-Side Includes. http://httpd.apache.org/docs/1.3/howto/ssi.html#today'sdate j On Wed, Jun 25, 2008 at 5:59 AM, M. <[EMAIL PROTECTED]> wrote: > > Hello, > > I have a HTML page and I've included a HTML comment above my > tag w

[jQuery] Re: Fade in an Image by replacing the src

2008-06-24 Thread Joel Newkirk
; same src switching method, but they chose > not to use any dissolve at all. > > On Jun 23, 9:18 pm, "Joel Newkirk" <[EMAIL PROTECTED]> wrote: > > Take a look at the Cycle plugin.http://www.malsup.com/jquery/cycle/Its > > primary intent is to cycle through each

[jQuery] Re: Fade in an Image by replacing the src

2008-06-23 Thread Joel Newkirk
Take a look at the Cycle plugin. http://www.malsup.com/jquery/cycle/ Its primary intent is to cycle through each child of a container, IE a div containing some images. It includes a whole host of transition choices (including crossfade), and also can be utilized as part of a 'pager' instead of aut

[jQuery] Re: Selecting an element using parent than filter

2008-06-22 Thread Joel Newkirk
$(this).parent().filter(".1") will do the following: Take 'this' element (the one being hovered over in this case) and find its parent (singular - one parent, in the example HTML you posted this is ), then filter the results (a single element) looking for one with class='1', of which there are non

[jQuery] Re: Setting/removing CSS classes

2008-06-13 Thread Joel Newkirk
Sounds to me like you have some CSS issues. If there's any other class assigned to those elements, or even any other style being applied to them, try disabling it to test. For example, try disabling everything that could be applied to these elements (particularly if you've set some style attribut

[jQuery] Re: click / dblclick Problem

2008-06-11 Thread Joel Newkirk
Richard: Your example (utilizing event detail - useful info, that) will still perform the 'click' action when double-clicked, just does it once instead of twice. I believe the OP ("I wanted to execute dblclick or click, not both.") was asking "How do I prevent the click() event from firing when th

[jQuery] Re: target ajax tab from an external page

2008-06-11 Thread Joel Newkirk
Take a look at the history plugin. Among other things, it takes the URL fragment and uses it to perform the needed ajax query (or what-have-you) on pageload. For example, you could link to "newpage.html#tab2" and the ajax tab referred to by '#tab2' would be opened on pageload. (this presumes tha

[jQuery] Re: Plugin to open a "sub-window" on a page

2008-05-31 Thread Joel Newkirk
http://docs.jquery.com/UI/Dialog - the basic UI Dialog element from the jQuery UI supports draggable and resizable. j On Fri, May 30, 2008 at 11:44 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I need to be able to open new "sub-windows" on a page : divs that can > be moved, re-sized, clo

[jQuery] Re: problem with tablesorter plugin

2008-03-02 Thread Joel Newkirk
I recently addressed the same need with the following code: $(".listtable").tablesorter(); $(".listtable").bind("sortStart",function() { $("#busybar").fadeIn(400); }).bind("sortEnd",function() { $(".listtable tr:odd").removeClass("alterow"); $(".listtable tr:even").addClass("alterow");