IE compatibility ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pankajit09
    Contributor
    • Dec 2006
    • 296

    IE compatibility ?

    The following function attaches a file and then shows the updated page(along with the file) after 1 second -->

    Code:
    function attachFile() { 
            document.attach.act.value = "attach";
            document.attach.submit();
            pause(1000);
            var topNum = document.getElementById('toprefid').value;
            var newURL = 'taskitems.cgi?act=puchin&num='+topNum+'&numforattachment='+topNum;
            window.location = newURL;
        }
    
        function pause(numberMillis) {
            var now = new Date();
            var exitTime = now.getTime() + numberMillis;
            while (true) {
                now = new Date();
                if (now.getTime() > exitTime)
                return;
            }
        }
    The problem is that the files are getting attached in Mozilla but not in IE .

    Please help.
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Show your form code. There might be a problem there.

    Comment

    • pankajit09
      Contributor
      • Dec 2006
      • 296

      #3
      Originally posted by acoder
      Show your form code. There might be a problem there.
      The problem is solved .

      I am not redirecting from the JS but from the Perl Script.

      Comment

      Working...