0

I am using jQuery, jQuery UI and other jQuery plugins like dialog or time picker.

Only in IE (all version) jQuery is not working at all. Once I use ctrl + F5, the dialog, date picker are working fine.

Other browsers are working without ctrl + F5.

Are there any fixes available ?

Aravinthan
  • 487
  • 1
  • 4
  • 7
  • 2
    Sounds like caching, and the fix is to hit CTRL-F5 – adeneo Jan 07 '14 at 03:27
  • 1
    **Ctrl + F5** Mystry solved for you here `:))` :P http://stackoverflow.com/questions/385367/what-requests-do-browsers-f5-and-ctrl-f5-refreshes-generate `CTRL-F5 is used to force an update, disregarding any cache. IE7 adds an "Cache-Control: no-cache", as does FF, which also adds "Pragma: no-cache". Chrome does a normal "If-modified-since" and Opera ignores the key.` – Tats_innit Jan 07 '14 at 03:28

1 Answers1

0

Try calling your code in $(window).load.

$(window).load(function () {
   // run code
});

This will ensure that the DOM is ready and after that will run your code.

IE is a weird beast...

Thanos
  • 3,039
  • 2
  • 14
  • 28
  • Hi Thanos, Still it is not working Forgot to mention that I am using smarty template and the jquery is included like the below code inside the .tpl (View file) `{literal} – Aravinthan Jan 07 '14 at 03:47