[SGVLUG] Problem with IE 7

Peter Fogg peter.fogg at sbcglobal.net
Fri May 30 14:17:37 PDT 2008


Thank you one and all for your suggestions!! My apologies for not  
including sufficient information.

This is an excerpt from the html that displays the table:
        .
        .
        .
         <td width="600px" valign="top">
           <table width="100%" cellpadding="0" cellspacing="0"  
border="0">
             <tr><td valign="top" align="center"  
class="label_1">select sub-categories</td></tr>
             <tr><td>&nbsp;</td></tr>
             <tr id="sub_categories_table">
               <td valign="top" align="center">

                 <table id="sub_categories" align="left" width="100%"  
cellpadding="0" cellspacing="0" border="1">
                	  <tr><td>sdffd</td></tr>
                 </table>

               </td>
             </tr>
           </table>
         </td>
        .
        .
        .

Note that the border is on on the target table and that there is a  
row with nonsense in it already in the table. This row is displayed  
on the page in all browsers. The objective is to add another row  
containing an html button via the following JavaScript excerpt:

         .
         .
         .
         var table_element = document.getElementById('sub_categories');
         .
         .
         .
         // Create a submit button td element.
         var td_element_submit = document.createElement('td');
         td_element_submit.setAttribute('colspan', 3);
         td_element_submit.setAttribute('align', 'center');

         // Create a sbumit button input element.
         var submit_element = document.createElement('input');
         submit_element.setAttribute('id', 'submit');
         submit_element.setAttribute('type', 'submit');
         submit_element.setAttribute('value', 'search');

         // Append the submit button input element to the td element.
         td_element_submit.appendChild(submit_element);

         // Create the submit button tr element.
         tr_element_submit = document.createElement('tr');

         // Append the submit td element to the tr element.
         tr_element_submit.appendChild(td_element_submit);

         // Append the tr element to the table element.
         table_element.appendChild(tr_element_submit);
         .
         .
         .

The second row created by this code appears in FF 2.0.0.14 on a Mac  
and FF 2.0.0.14 on an XP machine but does not appear in IE  
7.0.5730.11 on the XP machine.

Obviously there is much more to the page and the JavaScript; I'm  
trying to get this small test to work!

Peter -

On May 30, 2008, at 12:26 PM, Joel Witherspoon wrote:

> Peter,
>
> Any CSS involved? IE and FF render CSS quite differently. There are  
> IE bugs all around in CSS.
>
> Secondly, IE has an issue rendering certain JS code. What version  
> of the browser are you using and what's the code? Without that, I  
> don't know where to start.
>
> On Fri, May 30, 2008 at 11:46 AM, <bb.odenthal at gmail.com> wrote:
> Now for something helpful.
>
> Try httpwatch.  It's free, works with IE7 and may help debug your  
> issue.
>
> http://www.httpwatch.com.
>
> -bb
> -----Original Message-----
> From: Peter Fogg <peter.fogg at sbcglobal.net>
>
> Date: Fri, 30 May 2008 11:43:57
> To:"SGVLUG Discussion List." <sgvlug at sgvlug.net>
> Subject: Re: [SGVLUG] Problem with IE 7
>
>
> I didn't know quite where to post my question so I started here.
> Thanks for the tip about the greasemonkey forums, I'll try there.
>
> Thanks,
>
> Peter -
>
> On May 30, 2008, at 11:34 AM, Emerson, Tom (*IC) wrote:
>
> >> -----Original Message----- Of Peter Fogg
> >>
> >> There is a table visible on an html page. Via JavaScript I add a  
> row
> >> to the table. The added row appears in when the page is rendered in
> >> FireFox but does not appear when rendered in IE 7.
> >>
> >> Any thoughts?
> >
> > You're worried about problems with IE on a linux list?  [sorry,
> > just had
> > to point that out... ;) ]
> >
> > Seriously, though, perhaps "javascript" is turned off in IE?  [maybe
> > this is on a per-page basis?  i.e., your "page" isn't deemed "safe
> > enough" to allow javascript per IE's decision tree...]
> >
> > You might also ask about this in the greasemonkey forums -- true,  
> that
> > is also a firefox-oriented forum, but as this is the "type of thing"
> > greasemonkey programmers tend to do (rewrite the page via "script"),
> > they may be able to shed some light on the process, which might
> > explain
> > how/why it works differently on IE.
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.sgvlug.net/pipermail/sgvlug/attachments/20080530/b0622f76/attachment.html


More information about the SGVLUG mailing list