[jQuery] click function populating value in a hidden field

2009-10-01 Thread Chuk
Hi. I have a table set up with a .click() function on each row so that if it is clicked on, a class is added to the row thus changing the background, etc. I was wondering if there was is a way to take the id of the row that was clicked and populate a hidden field with it. What would I need to i

[jQuery] Re: click function populating value in a hidden field

2009-10-01 Thread Chuk
Works like a charm! Thanks so much! :)

[jQuery] Re: click function populating value in a hidden field

2009-10-01 Thread Chuk
Works like a charm! Thanks so much! :)

[jQuery] Re: click function populating value in a hidden field

2009-10-01 Thread Chuk
Works like a charm! Thanks so much! :)

[jQuery] retrieve tr id

2009-10-09 Thread Chuk
Hi. I have a table set up with multiple rows. Once a row is selected, the class of the row changes to "clicked". The id of the row is the "sequence number", and each td within that row has an id of the "sequence number" plus a title, such as "account". So, the id of the first td in the first

[jQuery] Re: retrieve tr id

2009-10-09 Thread Chuk
Okay. So I'll tack the digits onto the end. So that it will be Account1, etc. The main thing I think I need is how to retrieve the id of an element once I know its class. Thanks.

[jQuery] Re: retrieve tr id

2009-10-09 Thread Chuk
Okay. So I'll tack the digits onto the end. So that it will be Account1, etc. The main thing I think I need is how to retrieve the id of an element once I know its class. Thanks.

[jQuery] Re: retrieve tr id

2009-10-09 Thread Chuk
Okay. So I'll tack the digits onto the end. So that it will be Account1, etc. The main thing I think I need is how to retrieve the id of an element once I know its class. Thanks.

[jQuery] Re: retrieve tr id

2009-10-09 Thread Chuk
I have changed things a little now. Here is an example of my current code: $('#edit').click(function() { var clickedID = $('.clicked').id; transNo = ?; //This is where I need to retrieve the row's id window.location = "GL0002T?action=R&transBatchNo=&transNo="+transNo; }); 1 400-04

[jQuery] Re: retrieve tr id

2009-10-09 Thread Chuk
So, I should probably populate the name or title of the tr with the sequence number, which is currently the id. You're right about getting rid of the class "row." I'll take care of that. Perhaps there is a better way than what I've been trying. Each row has a distinct sequence number that I've

[jQuery] Generated id seems not to trigger click event

2008-12-30 Thread Chuk
Hi. I'm using CGIDEV2 with AJAX, JQuery, and JSON to page through search results (showing 100 at a time). For the paging, I have a beginning arrow, page left arrow, page right arrow, and an end arrow. When I am on the first page of results, the beginning and page left arrows have an id of "begin

[jQuery] if statement testing for null value

2009-01-08 Thread Chuk
Hi. I have a form with a disabled submit button when the page is loaded. I'm trying to activate that submit button only when two text fields(ids="equipmentNumber" and "description") and three select boxes (ids="type","department"," and "location") contain a value. Here is my current code: if (

[jQuery] Re: if statement testing for null value

2009-01-09 Thread Chuk
Thanks for your suggestions, guys. I tried replacing != with !==, and nothing changed. Mike, concerning your suggestions, I'm really not sure what's going on. Is the first one testing to see if each of the fields contains a value...and then enabling the submit button? When I try that approach a

[jQuery] Re: if statement testing for null value

2009-01-09 Thread Chuk
Awesome! Thanks for the suggestion that I probably should have assumed to be true, JQuery Lover. I just have one more question concerning this. Currently, I have the following code: $('#equipmentNumber').keyup(function() { $('#submit').attr('disabled', !($('#equipmentNumber').val() && $ ('#

[jQuery] $().jqGrid is not a function

2009-02-06 Thread Chuk
Hi. I'm making my first attempt at utilizing JQGrid with a CGIDEV2 application. When loading the page, I keep getting an error that says $("#results').jqGrid is not a function. Here's my JS: $(document).ready(function() { var columnNames = ['Product Group','Description','Turnover Rate','G

[jQuery] Re: $().jqGrid is not a function

2009-02-06 Thread Chuk
I had been messing around with the paths but couldn't seem to get it to work. However, when you open JQuery.JQGrid.js, you see that one of the first lines is var pathtojsfiles = "js/"; // need to be adjusted When I changed "js/" to point to all of the other Javascript files associated with JQGr

[jQuery] Re: $().jqGrid is not a function

2009-02-06 Thread Chuk
I had been messing around with the paths but couldn't seem to get it to work. However, when you open JQuery.JQGrid.js, you see that one of the first lines is var pathtojsfiles = "js/"; // need to be adjusted When I changed "js/" to point to all of the other Javascript files associated with JQGr

[jQuery] JQGrid Grid as subgrid not calling server-side program

2009-03-04 Thread Chuk
I have been trying to get a grid as a subgrid to work for about a week now. When I click the plus sign in a row, I can see (via firebug) that the code relative to the subgrid gets run, but the server program doesn't. It's like it never calls the server-side program. If someone could take a look

[jQuery] Re: JQGrid Grid as subgrid not calling server-side program

2009-03-05 Thread Chuk
I'm thinking that the problem might be in what external scripts I'm linking to. When I'm utilizing grid as subgrid, should I include anything other than JQGrid/js/grid.subgrid.js?

[jQuery] Re: JQGrid Grid as subgrid not calling server-side program

2009-03-05 Thread Chuk
I'm thinking that the problem might be in what external scripts I'm linking to. When I'm utilizing grid as subgrid, should I include anything other than JQGrid/js/grid.subgrid.js?

[jQuery] retrieve value with JQuery

2009-03-11 Thread Chuk
Hi. In one of my functions, I would like to test the value of a certain field with an id="zipCode". Here is my current code: function retrieveCityState() { if ($('#zipCode').value.length > 4) { ... } } This test doesn't seem to work. How do I correctly handle this using JQuery? Tha

[jQuery] JQGrid .setGridParam() causing error

2009-04-10 Thread Chuk
Hi. I'm relatively new to JQGrid, and I'm trying to create my first grid that is loaded based on what the user chooses in a select box. I've gotten it working for the first option that they choose. However, after the grid is populated, I cannot get the data to change by selecting a different opti