Hi,
I want to use jQuery UI. I have tried a lot of things during the last two
days, but nothing worked.
I have read http://jqueryui.com/docs/Getting_Started and I have done the
following steps:

(1) Download jquery-ui-1.8.7.custom.zip from http://jqueryui.com/download

(2) Unzip this file

(3) Copy download\...\js\jquery_ui_1.8.7.custom.min.js to
     web2py: js/jquery_ui_1.8.7.custom.min.js

(4) Copy download\...\css\smoothness\jquery_ui_1.8.7.custom.css to
     web2py: css/smoothness/jquery_ui_1.8.7.custom.css

(5) Add the following lines in web2py_ajax.html after
response.files.insert(2,URL('static','js/calendar.js'))


response.files.insert(3,URL('static','css/smoothness/jquery-ui-1.8.7.custom.css'))
response.files.insert(4,URL('static','js/jquery-ui-1.8.7.custom.min.js'))

(6) Change default/index.html to:

{{extend 'layout.html'}}
Date: <input type="text" name="date" id="date">
<div class="one" id="a">Hello</div>
<div class="two" id="b">World</div>


<script>
  jQuery('.one').click(function(){jQuery('.two').slideToggle()});
  jQuery('#date').datepicker();
</script>


(7) This is the new website:

Date:
 Hello
World


A click on Hello makes World disappear, so this jQuery function works. But
the other jQueery-function datepicker does not show any reaction. I have
tried some other functions: neither of these functions did work.

Maybe there is only a very small error - but I cannot find it.
Any ideas?

Regards, Martin

Reply via email to