What am I missing?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Vanecelli
    New Member
    • Feb 2007
    • 23

    #16
    Originally posted by iam_clint
    they are different due to the way they interpret the w3c standards


    Ie was out before the standards were even in place (I think) but in any case its the way they handle the code.

    post a link to the page you are working on.

    Change the number of guests first and all looks perfect in FF, but not IE. Click Group Booking radio button, or change the number again, and another column is added. Just want it to look like when it first runs on FF, and then replace itself if it gets called again.

    Comment

    • iam_clint
      Recognized Expert Top Contributor
      • Jul 2006
      • 1207

      #17
      Code:
      function types(tip){
       var num=document.form1.rms.value
       var tmp = "<strong>Please enter all expected guests names:</strong><br />"
       for (var n=0;n<num;n++) {
       tmp += "Guest name: <input name='guest"+n+"' type='text' id='guest"+n+"' size='15' /> Service Num: <input name='guestnum"+n+"' type='text' id='guestnum"+n+"' size='15' /><br />";
       }
       if (tip=="ind"){
       document.getElementById("grpbook").style.visibility="hidden"
       document.form1.unit.style.visibility="hidden";
       document.getElementById("glist").innerHTML="";
       }
       else{
       document.getElementById("grpbook").style.visibility="visible";
       document.form1.unit.style.visibility="visible";
       var trow = document.getElementById('glist');
       removeChildren(trow);
       addcolumn('glist', '<strong>Guest List:</strong>', 'lft', 'top', 'center', '1');
       addcolumn('glist', tmp, 'lft', 'top', 'center', '3');
       }
      }
      function addcolumn(rowid, ctext, tclass, tvalign, talign, span) {
       var trow = document.getElementById(rowid);
       var tcolumn = document.createElement("td");
       tcolumn.setAttribute("class", tclass);
       tcolumn.setAttribute("valign", tvalign);
       tcolumn.setAttribute("align", talign);
       tcolumn.setAttribute("colspan", span);
       tcolumn.innerHTML = ctext;
       trow.appendChild(tcolumn);
      }
      function removeChildren(obj) {
       while (obj.hasChildNodes()) obj.removeChild(obj.firstChild);
      }
      give this a whirl

      Comment

      • Vanecelli
        New Member
        • Feb 2007
        • 23

        #18
        F MS. WTH won't rowspan work in IE? lol

        Comment

        • iam_clint
          Recognized Expert Top Contributor
          • Jul 2006
          • 1207

          #19
          but did this fix your problem? make your table bigger or width 100% the td with set attribute.



          and for a number being passed through it doesn't need to be '3' but 3

          and do it this way..
          tcolumn.colSpan = span;

          Comment

          • Vanecelli
            New Member
            • Feb 2007
            • 23

            #20
            The column gets replaced when the function is called, but IE is still messed up. rowspan seems to not work. Actually, none of the attributes are working in IE. It's ignoring the class assignment alltogether. Plus the valign, well, everything. Stupid MS.

            Comment

            • Vanecelli
              New Member
              • Feb 2007
              • 23

              #21
              Originally posted by Vanecelli
              The column gets replaced when the function is called, but IE is still messed up. rowspan seems to not work. Actually, none of the attributes are working in IE. It's ignoring the class assignment alltogether. Plus the valign, well, everything. Stupid MS.
              Ah hah!!!
              Code:
              tcolumn.className = tclass;
              instead of
              Code:
               tcolumn.setAttribute("class", tclass);
              worked!!

              Comment

              • iam_clint
                Recognized Expert Top Contributor
                • Jul 2006
                • 1207

                #22
                good good, your the first person i had to go to 3 pages of posting with :P

                by the way you have an error on line 270
                Calendar is undefined

                Comment

                • Vanecelli
                  New Member
                  • Feb 2007
                  • 23

                  #23
                  Originally posted by iam_clint
                  good good, your the first person i had to go to 3 pages of posting with :P

                  by the way you have an error on line 270
                  Calendar is undefined
                  Well, thank you very much for the help. And, I know. It's a copy of the working page and I was too lazy to add my includes. :)

                  Comment

                  Working...