Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript jquery .upload() and IE

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #29582
    bigjamdonut
    Participant

    Hi there,

    Tested the below code with FF, Safary and chrome and all works ok. But with IE… not so
    When the button "viewEditButID’" is click the div "customerDetailsDivClass" is hiden. When it’s click again the
    div reapears but before it dose so it download the data is going to display

    Code:
    $(document).ready( function() {
    $(‘#viewEditButID’).click( function()
    {
    if ($(‘div.customerDetailsDivClass’).is(‘:visible’))
    {
    $(‘div.customerDetailsDivClass’).toggle(“slow”);
    }
    else
    {
    //Will make the box visible so update the date before this is done
    $(“div.customerDetailsDivClass”).load(“/Admin/UpdateCustomerList”);
    $(‘div.customerDetailsDivClass’).toggle(“slow”);
    }
    });
    });

    html

    Code:
    Customer Name Customer Code
    Customer 1 SADFHS12345
    Customer 2 SADFHS67891

    From there a servlet is called and redirects the request to a .jsp which response with only the following:

    Code:
    Customer Name Customer Code
    Customer 2 SADFHS12345
    Customer 2 SADFHS67891

    So like i mention in FF the table is updated with Customer 2, but with IE the old data is presented back again.

    Any help, hints to toubleshoot would be great!

    Thanks
    Alexis

    #79457
    bigjamdonut
    Participant

    manage to resolve this…

    after a day of wasted time and swearing at the IE developers..

    there was a blank line "n" in my .jsp file which (only) IE interprets this as end of file rather then looking at the byte count in the http header..

    anyway i learn allot about js debugging at least

    alexis

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.