>
> Thank you, for your time and support. I have a couple of final
> questions and I should be finished.


No problem.


>
>
> 1.     In Dreamweaver, 'datepicker' appears as several files
> 'jquery-1.2.6.js', 'ui.datepicker.js', where do I save this new
> script? and do I give it the extension .js?
>

Yes, save it in a new script file with .js extension, e.g., global.js


>
> 2.     and for the script I would type
>
> $('#datepicker').datepicker({
>  dateFormat: '09-08-22',
>  onSelect: function(datestr, inst){
>    window.open(09-08-22.html');
>  }
>
> });
>

No, the above will not work. The code I pasted in a previous response should
be used as is. It should work if you copy and paste my code. Here it is
again:

$('#datepicker').datepicker({
  dateFormat: 'yy-mm-dd',
  onSelect: function(datestr, inst){
    window.open(datestr + '.html');
  }
});

dateFormat accepts a date representation format not an actual date, much
like the PHP date() function but simpler.

Good luck! :)

-- 
Ca-Phun Ung
+ http://yelotofu.com
+ css, django, hongkong, html, javascript, php

Reply via email to