Issue with Internet Explorer

Discussion in 'Javascript' started by Mtek, Jun 4, 2008.

  1. Mtek

    Mtek Guest

    Hi,

    I know this is about IE, but it really has to do with programming, so
    I'm hoping someone can help.

    I have a question regarding Internet Exlporer and Firefox. We have a
    set of screens that were written in PHP/HTML and obviously have some
    javascript in them. The scripts fine in Firefox. However, Internet
    Explorer is really rendering some weird results. Sometimes it works,
    sometimes it does not, sometimes I have to delete the temporary files,
    other times I do not.......really a pain in the ass.......

    In fact, the form works once, then does not work again until you clear
    the temp files.......

    Is there any way to make sure this works every time? Like always
    sending a complete refresh each time and not using the temporary
    files??? Is there a work around??

    Thank you!

    John
     
    Mtek, Jun 4, 2008
    #1
    1. Advertisements

  2. Mtek schrieb am 04.06.2008 06:28:
    solution for developing:
    there is an option in the internet settings to recheck the page every time.

    dirty solution for all:

    var DatePreventsCaching = new Date();
    and add the String '?preventCaching='+DatePreventsCaching.getTime() to
    your destination.
     
    Holger Jeromin, Jun 5, 2008
    #2
    1. Advertisements

  3. or:

    var DatePreventsCaching = + new Date();
    and add the String '?preventCaching='+DatePreventsCaching to your
    destination.

    or:

    '?preventCaching=' + +new Date()
     
    Dr J R Stockton, Jun 5, 2008
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.