close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Repeat Datepicker

Thread began 10/27/2011 7:38 pm by justin.casperson417345 | Last modified 1/09/2012 11:08 am by Ian S | 1543 views | 3 replies |

justin.casperson417345

Repeat Datepicker

I have a php page in a backend website that displays orders from a database in a repeat table. The records displayed in the repeat table are individually updatable. One of the updatable fields is a "shipdate" text field that I have applied the date picker to. It functions correctly on the first displayed record however all the following record just display textboxes and when clicked the date picker doesn't display. Do I need to add some kind of a repeat function to the date picker? Any advice on this would be great. Thank yo so much.

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

paulb267017

Repeat Datepicker

I am able to get this to work on the same page if I duplicate the datepicker script at the bottom of the page for each field. HOWEVER, won't work in the real world as each date field realistically has a name like event_date[] where each field is a row of PHP records. Make sense? I don't want to have to repeat the function for each date field but would like to be able to make the function recognize the event date field based on php row number or something like that?

Sign in to reply to this post

Ian S

You can achieve this with a mixture of Javascript and PHP.

Rename the ID of your date picker so that it includes the record ID on the end (making it unique).

Then, using PHP, loop the Javascript that the date picker creates, again adding the record ID onto the end of the ID for the date picker.

Hope that helps?

Thanks
Ian

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...