[jQuery] Re: Question on filter()

2009-06-11 Thread TimW66
Never mind, figured out the issue. the "return" statement has a call that will look for label inside of the parent, not look at the parent itself. If I want to look at the parent, I'll have to use "$(this).is ('label')". Sorry for the clutter! On Jun 11, 1

[jQuery] Question on filter()

2009-06-11 Thread TimW66
Hi all, I have the following JS code: $('table.tableView :inp...@readonly]').parent().filter(function() { return !$('label', this).length; }).addClass('readonly'); -- And the following HTML code:

[jQuery] Re: Submit not propagating.

2009-01-02 Thread TimW66
an 3, 3:17 am, TimW66 wrote: > > > Thanks for the response. I changed the name attribute to be "save", > > but that didn't work either. > > Change the name and the id, neither should have a value of "submit". > > > I think what's happeni

[jQuery] Re: Submit not propagating.

2009-01-02 Thread TimW66
er submit function fires. On Jan 2, 12:15 pm, Joe wrote: > What is the code for the context menu? I have a hunch it is somewhere > in there. > > Joe > > On Jan 2, 11:17 am, TimW66 wrote: > > > Thanks for the response. I changed the name attribute to be "save",

[jQuery] Re: How can I call a function if I have that function name stored in a string?

2009-01-02 Thread TimW66
I'm just taking a shot in the dark, but have you looked at eval()? I saw this used in a demo page, and thought it was ingenious. The text they want to execute is shown on the screen. The JS gets the text and calls eval() on it. This might get you what you want. On Jan 2, 10:57 am, yellow1912

[jQuery] Re: Submit not propagating.

2009-01-02 Thread TimW66
Thanks for the response. I changed the name attribute to be "save", but that didn't work either. I think what's happening is there are other event handlers getting executed in the for loop, and one of those is returning a value that val gets set to, such that it doesn't propagate to the next fun

[jQuery] Re: Submit not propagating.

2009-01-02 Thread TimW66
Anyone have an idea? On Dec 30 2008, 4:25 pm, TimW66 wrote: > Hi all, > > I have a submit button, and a function tied to it via $('form').submit > (function() { ... }); When the button is clicked, this function gets > executed, and the data gets sent to the server. Ho

[jQuery] Submit not propagating.

2008-12-30 Thread TimW66
Hi all, I have a submit button, and a function tied to it via $('form').submit (function() { ... }); When the button is clicked, this function gets executed, and the data gets sent to the server. However, I also call this function via a context menu option (i.e., $('form').submit()). Again, the

[jQuery] Re: How do I keep from focusing a readonly field?

2008-10-28 Thread TimW66
8, 6:26 pm, Ryura <[EMAIL PROTECTED]> wrote: > $('tbody>tr:last-child>td:not(.readonly):first- > child>input').focus().select(); > > On Oct 28, 7:07 pm, TimW66 <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > I have a table that I

[jQuery] How do I keep from focusing a readonly field?

2008-10-28 Thread TimW66
Hi all, I have a table that I will usually want to focus the first input box in the first column in the last row. Something like this: ... <-- selects this one And I use this to do that part: $('tb

[jQuery] Don't focus a readonly field

2008-10-27 Thread TimW66
Hi all, I have a table that I will usually want to focus the first input box in the first column in the last row. Something like this: ... <-- selects this one And I use this to do that part: $('tb

[jQuery] Re: dynamically generated form

2008-10-17 Thread TimW66
You could always set the ID of the cloned row: $rowToInsert = $parentRow.clone(true); newId = $parentRow.attr('id') + '_cloned'; $rowtoInsert.attr('id', newId); On Oct 16, 5:51 pm, Felix <[EMAIL PROTECTED]> wrote: > I have a form that allows user to add and delete rows as they desire, > I tried

[jQuery] Re: Rounded Corners and IE 6

2008-10-16 Thread TimW66
I've played around with this one: http://malsup.com/jquery/corner/ On Oct 16, 4:19 pm, caruso_g <[EMAIL PROTECTED]> wrote: > I searched for a plugin to round corners using jQuery. > I tried any plugin I was able to find but sadly none of them was able > to work on IE 6. > Some of them didn't even

[jQuery] Re: Odd behavior in IE with select boxes

2008-10-15 Thread TimW66
; > //No option to start with > > > javascript: > Then make your javascript add the first option. If it is the first in > the list then it will be selected by default so there is no need to > add selected="selected" > > Hope this helps, > Johnie Karr >

[jQuery] Re: Using multiple selectors

2008-10-14 Thread TimW66
The input needs to have an ID, jQuery can't reference by the name attribute using the style you specified. You might also try: $("#form input['name=Prefix']").val("Testing"); Here's more on selecting by attribute: http://docs.jquery.com/Selectors/attributeEquals#attributevalue And for more on s

[jQuery] Re: New to Jquery, have written Validation script...

2008-10-14 Thread TimW66
n Zaefferer" <[EMAIL PROTECTED]> wrote: > Forcing focus on a field is always a bad idea. Consider other means, > like disabling fields. > > Jörn > > On Tue, Oct 14, 2008 at 9:23 PM, TimW66 <[EMAIL PROTECTED]> wrote: > > > Sorry to hijack a topic, but I to

[jQuery] Re: New to Jquery, have written Validation script...

2008-10-14 Thread TimW66
Sorry to hijack a topic, but I too am writing some custom validation, and I am running into a problem. I have a table form where after data is entered in the first field on the row, a new blank row will be added to the bottom of the table. I want to keep the user from entering a duplicate value

[jQuery] Re: Odd behavior in IE with select boxes

2008-10-14 Thread TimW66
Anyone? On Oct 13, 6:08 pm, TimW66 <[EMAIL PROTECTED]> wrote: > I'm seeing some odd behavior in IE with my SELECT boxes. In the > static HTML, I have the following: > > Select Type > > --- Type --- > > > In JavaScript, I have the fo

[jQuery] Odd behavior in IE with select boxes

2008-10-13 Thread TimW66
I'm seeing some odd behavior in IE with my SELECT boxes. In the static HTML, I have the following: Select Type --- Type --- In JavaScript, I have the following: $.get("create.do", params, function(data) { if( $('option', idSel).length > 0 ) {

[jQuery] Revert focus on duplicate check error.

2008-08-20 Thread TimW66
I have a form with multiple rows. On each row, the first field is a key field; that is, it can't be duplicated on any other row. The comparison is working, as I currently have an alert() if there's a duplicate. What I want to happen is if there is a duplicate, focus the field the user just chan