[HTML_AJAX-devel] Using Replace Node and Actions

Joshua Eichorn josh at bluga.net
Mon Dec 11 16:04:06 PST 2006


But if you have data it belongs in a table, though what id really like 
to see is a nice fancy grid class not a table hacking api

but maybe we need both
-josh
David Coallier wrote:
> I'm actually up for your way with php5. But as I am thinking of it, do 
> we really want to encourage people using table/tr/td designs ? Perhaps 
> this could be something that we could just toss away.. I know it does 
> sound very arsh but personally everytime I make a new website nowadays 
> I try to make all divs and no table. But well, that's just a thought
>
> On 12/11/06, *Joshua Eichorn* <josh at bluga.net <mailto:josh at bluga.net>> 
> wrote:
>
>     Well API wise it matters more on the PHP side then the js side.
>
>     Though i guess on the js util class you could have a method that
>     takes a
>     hash and does all the updates for you.
>
>     On the PHP side maybe:
>
>     $haa->updateTr($id,$haa->newTd('content',array('class'=>'boo'),$haa->newTd('blah'));
>
>     or you could do a fluent api though things wouldn't be too great for
>     php4 users
>
>     $haa->updateTable('css selector')->updateTr('css
>     selector')->td('content')->td('content',array('class'=>'blah'));
>
>
> thumbs up or +1
>
>     better names might make the the fluent api a bit more readable but i
>     don't think thats horrible
>     -josh
>
>     David Coallier wrote:
>     > I would personally set that in the util class although, I wouldn't
>     > have a problem seeing it into the Compat class. Perhaps a new
>     > CompatUtil class but that would defenatly become overhead. I go
>     for util
>     >
>     > On 12/11/06, *Elizabeth Smith* <emsmith at elizabethmariesmith.com
>     <mailto:emsmith at elizabethmariesmith.com>
>     > <mailto:emsmith at elizabethmariesmith.com
>     <mailto:emsmith at elizabethmariesmith.com>>> wrote:
>     >
>     >     Joshua Eichorn wrote:
>     >     > maho wrote:
>     >     >> Joshua Eichorn napisa?(a):
>     >     >>> You can't use innerHTML with tr's, you have to do it against
>     >     >>> specific td's
>     >     >>> -josh
>     >     >>
>     >     >> But why? Is it somehow documented, or it's hidden
>     "feature" of
>     >     >> Firefox? (AFAIK under IE it works well)
>     >     >>
>     >     >> p. m.
>     >     >> _______________________________________________
>     >     >> Html_ajax-devel mailing list
>     >     >> Html_ajax-devel at lists.bluga.net
>     <mailto:Html_ajax-devel at lists.bluga.net>
>     >     <mailto:Html_ajax-devel at lists.bluga.net
>     <mailto:Html_ajax-devel at lists.bluga.net>>
>     >     >> http://lists.bluga.net/mailman/listinfo/html_ajax-devel
>     >     < http://lists.bluga.net/mailman/listinfo/html_ajax-devel>
>     >     > I've had problems with setting the innerHTML of tr's in
>     both IE and
>     >     > firefox. In a perfect world things should just work, but
>     its not a
>     >     > perfect world its web development :-)
>     >     >
>     >     > -josh
>     >     > _______________________________________________
>     >     > Html_ajax-devel mailing list
>     >     > Html_ajax-devel at lists.bluga.net
>     <mailto:Html_ajax-devel at lists.bluga.net>
>     >     <mailto:Html_ajax-devel at lists.bluga.net
>     <mailto:Html_ajax-devel at lists.bluga.net>>
>     >     > http://lists.bluga.net/mailman/listinfo/html_ajax-devel
>     >     There are table specific javascript methods which should
>     probably be
>     >     used for adding/replacing table rows and cells that I'd like to
>     >     implement. However, I need some API ideas, because I don't
>     want to
>     >     unnecessarily bloat the code. So anybody have any ideas for how
>     >     the api
>     >     would work? Would table specific inserting be only for the
>     haa class
>     >     stuff or would methods in the util javascript class be more
>     useful.
>     >     _______________________________________________
>     >     Html_ajax-devel mailing list
>     >     Html_ajax-devel at lists.bluga.net
>     <mailto:Html_ajax-devel at lists.bluga.net>
>     >     <mailto: Html_ajax-devel at lists.bluga.net
>     <mailto:Html_ajax-devel at lists.bluga.net>>
>     >     http://lists.bluga.net/mailman/listinfo/html_ajax-devel
>     <http://lists.bluga.net/mailman/listinfo/html_ajax-devel>
>     >
>     >
>     >
>     >
>     > --
>     > David Coallier,
>     > Founder & Software Architect,
>     > Agora Production ( http://agoraproduction.com)
>     > 51.42.06.70.18
>
>
>
>
> -- 
> David Coallier,
> Founder & Software Architect,
> Agora Production (http://agoraproduction.com)
> 51.42.06.70.18 



More information about the Html_ajax-devel mailing list