Here is what i tried:
table = Builder.node('table',
{width:'100%',cellpadding:'2',cellspacing:'0',border:'0'});
tbody = Builder.node('tbody');
tr = Builder.node('tr', {style:'background-color:#ccc;'});
Once i tried the tbody it started to work.. I guess that was the problem. ________________________________ From: [EMAIL PROTECTED] on behalf of Gregory Hill Sent: Thu 1/26/2006 5:27 PM To: [email protected] Subject: RE: [Rails-spinoffs] Question about the Builder module Is this a response to my comment about TBODY elements? If it is, then, no it isn't specific to Prototype. Any time you do something like this: table = document.createElement('TABLE'); tr = document.createElement('TR'); table.appendChild(tr); It won't work in some browsers. I can't remember which ones, offhand, as it was a while ago I learned of the limitation. The thing is, when you write your HTML without a TBODY element, the browser creates one implicitly in its internal HTML parser. So, in reality, it is there even though you didn't write it in your code. When creating the element via javascript, it isn't necessarily created for you, so you have to explicitly create it. There may be ways around that by using innerHTML, but I couldn't vouch for that either way, as I haven't really tried it. It was just a guess, anyway, as that may not be the problem you're running into at all. I was just hoping to help. Greg ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Whitcraft, Jon Sent: Thursday, January 26, 2006 3:12 PM To: [email protected] Subject: RE: [Rails-spinoffs] Question about the Builder module OK I have ready why, but it makes no sense to me as I have a full blow table generation script that I wrote to run a Timing and Scoring Application. Is this just a problem with prototype or a real bug in general? Attached is my script that I wrote that works fine. You can see it in action here: http://209.43.92.220/html/ <http://zend.com/zce.php?c=ZEND002524&r=212822110> Jon Whitcraft Indianapolis Motor Speedway [EMAIL PROTECTED] Phone: (317) 492-8623 :: Fax: (317) 492-6419 ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Whitcraft, Jon Sent: Thursday, January 26, 2006 4:48 PM To: [email protected] Subject: [Rails-spinoffs] Question about the Builder module Hello, I want to use the builder modules for an admin tool I'm currently working on but I just all the note that I cannot create td and tr tags with it. It works fine in FF but not it IE. Can someone please explain why this is? Thanks.. <http://zend.com/zce.php?c=ZEND002524&r=212822110> Jon Whitcraft Indianapolis Motor Speedway [EMAIL PROTECTED] Phone: (317) 492-8623 :: Fax: (317) 492-6419 ******************** ******************** This E-mail (and attachments) may contain confidential/privileged information intended only for the named addressee(s). If you are not an intended recipient, do not read, copy, disseminate or take any action based on the content of this E-mail. Please notify the sender by reply E-mail and erase this E-mail from your system. Your assistance is appreciated. E-mail transmission may not be secure or error-free. The company is not responsible for any loss/damage arising from any virus transmitted. ******************** ********************
<<winmail.dat>>
_______________________________________________ Rails-spinoffs mailing list [email protected] http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
