CSS doesn't help when you have no idea how wide a cell will be until
you fill it with data


On Mar 4, 5:12 pm, donb <falconwatc...@comcast.net> wrote:
> Is thre some reason you can't do it with simple CSS directives?
> Define a Class for each <td> as appropriate and use the same class in
> the td of both tables. No jQuery or javascript needed at all.
>
> On Mar 4, 4:39 pm, MorningZ <morni...@gmail.com> wrote:
>
> > I took a shot in the dark on what your HTML is like
>
> > here's a working example
>
> >http://paste.pocoo.org/show/106506/
>
> > Note: the width's of cells are not know until the page is fully
> > loaded... hence the initial call to the function is inside "$
> > (window).load"
>
> > On Mar 4, 4:01 pm, MorningZ <morni...@gmail.com> wrote:
>
> > > without an example of your HTML, i have no idea what your problem
> > > could be
>
> > > On Mar 4, 3:35 pm, Alain Roger <raf.n...@gmail.com> wrote:
>
> > > > On Wed, Mar 4, 2009 at 3:20 PM, MorningZ <morni...@gmail.com> wrote:
>
> > > > > Some code i wrote
>
> > > > >http://paste.pocoo.org/show/106445/
>
> > > > > Call it like:
>
> > > > > Columns_Resize($("selector for tables to line up widths"))
>
> > > > Hi MorningZ,
>
> > > > i tried to adapt the code to my purpose and i'm facing an interesting
> > > > problem.
> > > > $slave_table.find("tbody tr").find("td").each(function(i)
> > > > {
> > > >  $th = $(this);
> > > >  ...
>
> > > > });
>
> > > > does not work...in fact if i do:
> > > > $slave_table.find("tbody").each(function(i){..});
> > > > it works
> > > > if i add the tr as following:
> > > > $slave_table.find("tbody tr").each(function(i){..});
> > > > or
> > > > $slave_table.find("tbody").find("tr").each(function(i){..});
> > > > it does not enter in the function "each"
> > > > whereas my tbody as <TR> and each <tr> has 3 <td>.
> > > > so where could be the problem ?
>
> > > > thanks.

Reply via email to