tags:

views:

36

answers:

5

I have a page that had the doctype:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 

I need to add the URL to the end, or jQuery's datepicker does not display correctly. When I make the doctype say:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;

The page begins to refresh it self over and over. I can't put up the code here because of NDA, but I am hoping that someone may know what would cause this to happen.

UPDATE: It looks like this doctype has problems with EasyListBox, which seems to be my problem.

A: 

The doctype has nothing to do with that so it must be elsewhere.

Rob
A: 

The Doctype declaration shouldn't be causing the infinite refresh. It is most likely a bug in your code.

Kranu
I understand that the doctype isn't the problem, it just made the problem show it self. This is a massive page that includes a lot of different scripts, most of which I did not write, so finding that problem is not going to be easy. I was just hoping there was a common mistake that setting the doctype reveals that would cause the refresh
Barlow Tucker
Try setting up an event handler when the page refreshes (onbeforeunload). Then, you could possibly use a javascript debugger to find what caused the page to refresh.
Kranu
Now there is a good idea! I will try that out and let you know.
Barlow Tucker
The onbeforeload did help debug, good call on that one. It seems that my problem may be tied to EasyListBox. I am going to remove it and see if that fixes my problem.
Barlow Tucker
A: 

Try to pare down the page so that it still replicates the error, but no longer exposes anything that might be under NDA. If you still haven't found the bug by this process of elimination, then you'll be able to post the page for us to see :)

Rob Fonseca-Ensor
A: 

Just try the simplest doctype ever,

<!doctype html>

the html5 doctype. It should work fine with the JQ date picker and pretty much everything else.

Mark Snidovich
Worth a try, I will post results
Barlow Tucker
This doctype still causes the refresh, even without the URL added.
Barlow Tucker
It really must be something else. Sounds like you're on to it.
Mark Snidovich
A: 

Doc-type and Jquery datepicker don't have a direct relationship, your problem for the refreshing loop on your page is without any doubt on your code...

Post your code or provide some link to it to allow us to help you correctly!

Ps: Doc-type does influence the way your browser reads and interpreters your page...

Zuul