On Jan 18, 2006, at 6:08 AM, ssteiner wrote:

TABLE( ...
   TD( IMG( {'src':'someimage.jpg', 'alt':'Product Image'},null ));

That choked when used inside a table declaration.

Was that exactly it? Because the first argument is the attributes, but you gave an IMG tag as the first argument to the TD. There is also no reason to pass null as a second argument to IMG, but that doesn't do anything one way or the other.

I made it into:

image = IMG( {'src':'someimage.jpg', 'alt':'Product Image'},null );
TABLE( ...
  TD(null, image);

And the problem went away.  IOW, trying to manipulate the attributes
when the IMG was already in the TD didn't work, pre-building it allowed
me to use the pre-built IMG in the table just fine.

Those two statements are equivalent in every way except for the mistake that I pointed out above... even the evaluation order is the same.

-bob

Reply via email to