[jQuery] Re: Can datepicker do individual linking?
Thank you, for your time and support. I have a couple of final questions and I should be finished. 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? 2. and for the script I would type $('#datepicker').datepicker({ dateFormat: '09-08-22', onSelect: function(datestr, inst){ window.open(09-08-22.html'); } }); and when someone picked 09-08-22 they would be taken to the webpage for that date? On Dec 23, 6:07 pm, "Ca-Phun Ung" wrote: > Well then my original suggestion should work. e.g. > > $('#datepicker').datepicker({ > dateFormat: 'yy-mm-dd', > onSelect: function(datestr, inst){ > window.open(datestr + '.html'); > } > > }); > > The above assumes you name the individual pages like "yy-mm-dd.html", e.g. > today would be 08-12-23.html. Obviously you could be more creative than me > here but that's the basic idea. > > You could get all this info from the documentation aswell. It's pretty > complete: > > http://docs.jquery.com/UI/Datepicker > > Good luck! > > On Tue, Dec 23, 2008 at 11:31 PM, sabastian wrote: > > > > > > > No, what I needed is one link for one day. For instance a person > > selects a date, date 'x', they are then taken to a webpage dedicated > > to that day. We will manually update each webpage to indicate the > > availability of each trip. (365 webpages) > > > If this is not possible I would settle for select anydate and get > > taken directed to a single webpage. > > > Thank you for all your help and patience. > > > On Dec 23, 2:59 pm, "Ca-Phun Ung" wrote: > > > 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. Seehttp:// > > jqueryui.pbwiki.com/DatePickerCalendarfor more information on the > > > direction datepicker is headed. > > > > On Tue, Dec 23, 2008 at 10:50 PM, sabastian > >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 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" wrote: > > > > > > > > For instance $('#datepicker').datepicker({onSelect: > > > > function(datestr, > > > > > > > inst) {"GetUrl(this.value)">http://google.com > > ">Get > > > > > > > Google}}); > > > > > > > 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 > > -- > Ca-Phun Ung > +http://yelotofu.com > + css, django, hongkong, html, javascript, php
[jQuery] Re: Can datepicker do individual linking?
No, what I needed is one link for one day. For instance a person selects a date, date 'x', they are then taken to a webpage dedicated to that day. We will manually update each webpage to indicate the availability of each trip. (365 webpages) If this is not possible I would settle for select anydate and get taken directed to a single webpage. Thank you for all your help and patience. On Dec 23, 2:59 pm, "Ca-Phun Ung" wrote: > 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. > Seehttp://jqueryui.pbwiki.com/DatePickerCalendarfor more information on the > direction datepicker is headed. > > On Tue, Dec 23, 2008 at 10:50 PM, sabastian 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 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" wrote: > > > > > > For instance $('#datepicker').datepicker({onSelect: > > function(datestr, > > > > > inst) {"GetUrl(this.value)">http://google.com";>Get > > > > > Google}}); > > > > > 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
[jQuery] Re: Can datepicker do individual linking?
No, what I needed is one link for one day. For instance a person selects a date, date 'x', they are then taken to a webpage dedicated to that day. We will manually update each webpage to indicate the availability of each trip. (365 webpages) If this is not possible I would settle for select anydate and get taken directed to a single webpage. Thank you for all your help and patience. On Dec 23, 2:59 pm, "Ca-Phun Ung" wrote: > 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. > Seehttp://jqueryui.pbwiki.com/DatePickerCalendarfor more information on the > direction datepicker is headed. > > On Tue, Dec 23, 2008 at 10:50 PM, sabastian 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 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" wrote: > > > > > > For instance $('#datepicker').datepicker({onSelect: > > function(datestr, > > > > > inst) {"GetUrl(this.value)">http://google.com";>Get > > > > > Google}}); > > > > > 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
[jQuery] Re: Can datepicker do individual linking?
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 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" wrote: > > > > For instance $('#datepicker').datepicker({onSelect: function(datestr, > > > inst) {"GetUrl(this.value)">http://google.com";>Get > > > Google}}); > > > 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
[jQuery] Re: Can datepicker do individual linking?
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 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" wrote: > > > > For instance $('#datepicker').datepicker({onSelect: function(datestr, > > > inst) {"GetUrl(this.value)">http://google.com";>Get > > > Google}}); > > > 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
[jQuery] Re: Can datepicker do individual linking?
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" wrote: > > For instance $('#datepicker').datepicker({onSelect: function(datestr, > > inst) {"GetUrl(this.value)">http://google.com";>Get > > Google}}); > > 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
[jQuery] Re: Can datepicker do individual linking?
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" wrote: > > For instance $('#datepicker').datepicker({onSelect: function(datestr, > > inst) {"GetUrl(this.value)">http://google.com";>Get > > Google}}); > > 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
[jQuery] Re: Can datepicker do individual linking?
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" wrote: > > For instance $('#datepicker').datepicker({onSelect: function(datestr, > > inst) {"GetUrl(this.value)">http://google.com";>Get > > Google}}); > > 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
[jQuery] Re: Can datepicker do individual linking?
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" wrote: > > For instance $('#datepicker').datepicker({onSelect: function(datestr, > > inst) {"GetUrl(this.value)">http://google.com";>Get > > Google}}); > > 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
[jQuery] Re: Can datepicker do individual linking?
For instance $('#datepicker').datepicker({onSelect: function(datestr, inst) {"GetUrl(this.value)">http://google.com";>Get Google}}); where would this code go? Does it matter where in the ui.datepicker.js file it goes? On Dec 23, 2:13 pm, "Ca-Phun Ung" wrote: > You don't. onSelect is a callback. The documentation states: > > "onSelect is a callback function when a date is selected. The function > receives the date text and date picker instance as parameters." > > So in your code you could do something like this: > > $('#datepicker').datepicker({onSelect: function(datestr, inst) { > > // Your code goes here. > > }}); > > On Tue, Dec 23, 2008 at 9:31 PM, sabastian wrote: > > > > > > > Ok, on line 109 in uidatepicker.js I have onSelect: null. > > > How can I change this? > > > On Dec 23, 1:20 pm, sabastian wrote: > > > could you please write an example for me and show me where it needs to > > > go and in which file. > > > > On Dec 23, 12:56 pm, "Ca-Phun Ung" wrote: > > > > > Sorry, yes this should be possible with the onSelect option. See: > >http://docs.jquery.com/UI/Datepicker/datepicker#options > > > > > On Tue, Dec 23, 2008 at 3:47 PM, sabastian > >wrote: > > > > > > Please, can someone inform me if it is possible to have individual > > > > > html links for each date in datepicker. > > > > > > On Dec 22, 7:42 pm, sabastian wrote: > > > > > > For instance if someone chooses 5/5/09 in datepicker I would like > > them > > > > > > to be linked to one html page. In contrast, if someone chooses > > 4/2/09 > > > > > > I would like them linked to another html page. Each day will have > > it's > > > > > > own individual html page. Is this possible in datepicker? > > > > > -- > > > > Ca-Phun Ung > > > > +http://yelotofu.com > > > > + css, django, hongkong, html, javascript, php > > -- > Ca-Phun Ung > +http://yelotofu.com > + css, django, hongkong, html, javascript, php
[jQuery] Re: Can datepicker do individual linking?
Ok, on line 109 in uidatepicker.js I have onSelect: null. How can I change this? On Dec 23, 1:20 pm, sabastian wrote: > could you please write an example for me and show me where it needs to > go and in which file. > > On Dec 23, 12:56 pm, "Ca-Phun Ung" wrote: > > > Sorry, yes this should be possible with the onSelect option. > > See:http://docs.jquery.com/UI/Datepicker/datepicker#options > > > On Tue, Dec 23, 2008 at 3:47 PM, sabastian > > wrote: > > > > Please, can someone inform me if it is possible to have individual > > > html links for each date in datepicker. > > > > On Dec 22, 7:42 pm, sabastian wrote: > > > > For instance if someone chooses 5/5/09 in datepicker I would like them > > > > to be linked to one html page. In contrast, if someone chooses 4/2/09 > > > > I would like them linked to another html page. Each day will have it's > > > > own individual html page. Is this possible in datepicker? > > > -- > > Ca-Phun Ung > > +http://yelotofu.com > > + css, django, hongkong, html, javascript, php
[jQuery] Re: Can datepicker do individual linking?
could you please write an example for me and show me where it needs to go and in which file. On Dec 23, 12:56 pm, "Ca-Phun Ung" wrote: > Sorry, yes this should be possible with the onSelect option. > See:http://docs.jquery.com/UI/Datepicker/datepicker#options > > On Tue, Dec 23, 2008 at 3:47 PM, sabastian wrote: > > > > > Please, can someone inform me if it is possible to have individual > > html links for each date in datepicker. > > > On Dec 22, 7:42 pm, sabastian wrote: > > > For instance if someone chooses 5/5/09 in datepicker I would like them > > > to be linked to one html page. In contrast, if someone chooses 4/2/09 > > > I would like them linked to another html page. Each day will have it's > > > own individual html page. Is this possible in datepicker? > > -- > Ca-Phun Ung > +http://yelotofu.com > + css, django, hongkong, html, javascript, php
[jQuery] Re: Can datepicker do individual linking?
Please, can someone inform me if it is possible to have individual html links for each date in datepicker. On Dec 22, 7:42 pm, sabastian wrote: > For instance if someone chooses 5/5/09 in datepicker I would like them > to be linked to one html page. In contrast, if someone chooses 4/2/09 > I would like them linked to another html page. Each day will have it's > own individual html page. Is this possible in datepicker?
[jQuery] Can datepicker do individual linking?
For instance if someone chooses 5/5/09 in datepicker I would like them to be linked to one html page. In contrast, if someone chooses 4/2/09 I would like them linked to another html page. Each day will have it's own individual html page. Is this possible in datepicker?