NetTalk Central

Author Topic: DatePicker not allowing options  (Read 8014 times)

lanmicro

  • Full Member
  • ***
  • Posts: 112
    • View Profile
    • Email
DatePicker not allowing options
« 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?
Gregory C. Bailey

lanmicro

  • Full Member
  • ***
  • Posts: 112
    • View Profile
    • Email
Re: DatePicker not allowing options
« Reply #1 on: July 25, 2011, 01:51:02 PM »
NetTalk 5.29
Gregory C. Bailey

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11186
    • View Profile
Re: DatePicker not allowing options
« Reply #2 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

lanmicro

  • Full Member
  • ***
  • Posts: 112
    • View Profile
    • Email
Re: DatePicker not allowing options
« Reply #3 on: July 27, 2011, 08:00:34 AM »
Hi Bruce,

Good call.  That fixed it.
Gregory C. Bailey