[jQuery] Re: reading values from HTML tables

2008-11-02 Thread GrootBaas
Hi Klaus, I decided to use the jquery-database as you suggested. Works well, I just have one issue. My fire bug does display console.log($('.users') .select('.name')); with the correct values. But hoe do I break the object up into an array. Or how do I access the objects

[jQuery] Re: reading values from HTML tables

2008-11-02 Thread GrootBaas
Shawn, Do I need to have the code inside a $(document).ready(function() { function? On Oct 31, 5:45 pm, Shawn <[EMAIL PROTECTED]> wrote: > I *think* the following will get you started: > > $("#veh_odometer").children("tr").each( function () { > //'this' refers to the current tr > var addre

[jQuery] Re: reading values from HTML tables

2008-11-02 Thread GrootBaas
Hi Shawn ... Can not get this going ... $("#veh_odometer").children("tr").each( function () { Is "tr" another id that I have to specify within my HTML table? On Oct 31, 5:45 pm, Shawn <[EMAIL PROTECTED]> wrote: > I *think* the following will get you started: > > $("#veh_odometer").children("

[jQuery] Re: reading values from HTML tables

2008-10-31 Thread Vamsee Kanakala
Klaus Hartl wrote: > Here's an awesome jQuery plugin to handle HTML tables like relational > databases: > http://github.com/nkallen/jquery-database/tree/master > > Wow. That's pretty cool. Thanks for the link. Vamsee.

[jQuery] Re: reading values from HTML tables

2008-10-31 Thread Frans Lubbe
Thanks so much mate! Will get going on it 2morrow. On Fri, Oct 31, 2008 at 5:45 PM, Shawn <[EMAIL PROTECTED]> wrote: > > I *think* the following will get you started: > > $("#veh_odometer").children("tr").each( function () { > //'this' refers to the current tr > var address = $("td:eq(2)", t

[jQuery] Re: reading values from HTML tables

2008-10-31 Thread Klaus Hartl
Here's an awesome jQuery plugin to handle HTML tables like relational databases: http://github.com/nkallen/jquery-database/tree/master --Klaus On 31 Okt., 06:29, GrootBaas <[EMAIL PROTECTED]> wrote: > Hi all, > > Any help would really be much appreciated. > > I have a table, how can I read the

[jQuery] Re: reading values from HTML tables

2008-10-30 Thread Shawn
Correction. Console.log works with FireBUG, which is a FireFOX plugin... sighs... I should just go to bed.. :) Shawn On Friday 31 October 2008 00:45:08 Shawn wrote: > I *think* the following will get you started: > > $("#veh_odometer").children("tr").each( function () { > //'this' refers to

[jQuery] Re: reading values from HTML tables

2008-10-30 Thread Shawn
I *think* the following will get you started: $("#veh_odometer").children("tr").each( function () { //'this' refers to the current tr var address = $("td:eq(2)", this).text(); console.log("VALUE: " + address); // note: console.log works in Firefox. // Substitue an alert if desired

[jQuery] Re: reading values from HTML tables

2008-10-30 Thread Thomas
It seems you not using jQuery... Give an ID for the table and use jQuery! It will be easyer! ;)