NetTalk Central

NetTalk Web Server => Web Server - Share Knowledge => Topic started by: lanmicro on July 25, 2011, 01:48:48 PM

Title: DatePicker not allowing options
Post by: lanmicro on July 25, 2011, 01:48:48 PM
  ! Start of "Set jQuery Date Options"
  ! [Priority 5000]
  loc:options = choose( loc:options='', '', clip( loc:options ) & ',' ) & 'numberOfMonths: 3,changeMonth: true,changeYear: true'
  ! End of "Set jQuery Date Options"
  packet = clip(packet) & p_web.CreateDateInput ('FUSE:DateJoined',p_web.GetSessionValue('FUSE:DateJoined'),loc:fieldclass,loc:readonly,,,loc:javascript,loc:options,loc:extra,,,,,,0)
  do SendPacket

My code in red above does not change the properties of the datepicker.  What might I be doing incorrectly?
Title: Re: DatePicker not allowing options
Post by: lanmicro on July 25, 2011, 01:51:02 PM
NetTalk 5.29
Title: Re: DatePicker not allowing options
Post by: Bruce on July 25, 2011, 09:21:31 PM
All looks good to me.
Are you sure you're running this code?
Inspect the page with FireBug, and see the <script> which is setting the date picker button, and see if these options are set.

I'm guessing the most likely reason is that you're changing this in one place, but that's not the place you're testing. (I do that fairly regularly).

cheers
Bruce
Title: Re: DatePicker not allowing options
Post by: lanmicro on July 27, 2011, 08:00:34 AM
Hi Bruce,

Good call.  That fixed it.