views:

3185

answers:

1

Hi,

I've got this pretty simple HTML page with a jQuery datepicker:

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
<html xmlns="http://www.w3.org/1999/xhtml"&gt;
<head>
    <title>jQuery Datepicker</title>
    <link rel="stylesheet" href="../App_Themes/Default/ui.datepicker.css" type="text/css"
        media="screen" title="Smoothness" />

    <script src="../Shared/Scripts/jquery-1.2.6.min.js" type="text/javascript"></script>

    <script src="../Shared/Scripts/jquery-ui-1.5.3.min.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript">
        $(document).ready(PageLoad);

        function PageLoad() {
            $('#textBox').datepicker();
        }
    </script>

</head>
<body>
    <input type="text" id="textBox" />
</body>
</html>

The datepicker itself seems to work perfectly but I can't apply my theme. Am I missing something really stupid here?

Thanks !!!!

+2  A: 

Hi everyone,

My problem wasn't about the CSS validity or relative paths .... I was just referencing the wrong version of CSS files for my jQuery-ui version. To all of you that had a similar problem make sure you download the correct theme's version for your jQuery-ui scripts.

Thanks.

afgallo
Its a great/terrible feeling when you realize that you knew what you were doing all along but failed somewhere in the execution :)
Birk