No problem. That's what we're here for - here to help where possible. Currently the datepicker only supports choosing a date and having the value written to an input textbox. Or choosing a date and using the onSelect to do something with the selected date.
In your case I'm assuming you want multiple links per day depending on the tours available? If that's the case the datepicker doesn't support this feature but it is definitely in the works. See http://jqueryui.pbwiki.com/DatePickerCalendar for more information on the direction datepicker is headed. On Tue, Dec 23, 2008 at 10:50 PM, sabastian <sabastiangron...@yahoo.com>wrote: > > I am trying to set up a tour/ day trip company. When people visit the > website I would like them to be able to select a date for the tour and > then check availability. Thus, when people select a calendar date I > would like them to be redirected to another html page indicating > availability. Ideally, I would like a calendar like 'easyjet.co.uk' > but I don't know how to make something like this. > > On Dec 23, 2:43 pm, sabastian <sabastiangron...@yahoo.com> wrote: > > I am sorry for my incompetence. I am new to javascript. All I want to > > do is when a date is chosen in datepicker a person will be > > automatically linked to a webpage, I used google as an example. > > > > On Dec 23, 2:35 pm, "Ca-Phun Ung" <cap...@yelotofu.com> wrote: > > > > > > For instance $('#datepicker').datepicker({onSelect: > function(datestr, > > > > inst) {"GetUrl(this.value)"><option value="http://google.com">Get > > > > Google</option></select>}}); > > > > > This won't work. I'm not entirely sure what you're doing here. Could > you > > > post up a demo page? > > > > > > where would this code go? Does it matter where in the > ui.datepicker.js > > > > file it goes? > > > > > I recommend placing custom code in a separate file, not inside > > > ui.datepicker.js. > > > > > -- > > > Ca-Phun Ung > > > +http://yelotofu.com > > > + css, django, hongkong, html, javascript, php > -- Ca-Phun Ung + http://yelotofu.com + css, django, hongkong, html, javascript, php