... |
... |
@@ -1,4
+1,4 @@ |
1 |
|
-{{version major="6" minor="5" patch="0"/}} The feature to create schedules is subject to costs and available from {{formcycle/}} version 6.5.0 onwards. |
|
1 |
+{{version major="6" minor="5" patch="0"/}} The license module to create schedules is subject to costs and available from {{formcycle/}} version 6.5.0 onwards. |
2 |
2 |
|
3 |
3 |
{{content/}} |
4 |
4 |
|
... |
... |
@@ -69,3
+69,17 @@ |
69 |
69 |
==== Subscribe to an iCal feed (Outlook) ==== |
70 |
70 |
|
71 |
71 |
You can use the iCal link (that starts with //http//) to subscribe to an internet calendar. Once you have subscribed to the internet calendar, the calendar software will check for updates automatically in set intervals. This means that when a user books a new appointment, you will see the new appointment in you calendar software shortly afterwards. Also, if a user cancels an appointment, it will be shown as cancelled. Usually you can also adjust the refresh interval, check the documenation of your calendar software for more details. |
|
72 |
+ |
|
73 |
+=== Reading the value via JavaScript === |
|
74 |
+ |
|
75 |
+The value of an appointment finder element named {{code language="none"}}app1{{/code}} can be read as a timestamp in JavaScript using the following jQuery statement: |
|
76 |
+ |
|
77 |
+{{code language="javascript"}} |
|
78 |
+$('[xn=app1] .XAppointmentSlotId').val(); |
|
79 |
+{{/code}} |
|
80 |
+ |
|
81 |
+To get a {{code language="none"}}Date{{/code}} object from the obtained timestamp, the value must be parsed accordingly. For example, to store the value as {{code language="none"}}Date{{/code}} in a variable named {{code language="none"}}appointment{{/code}}, the following code can be used: |
|
82 |
+ |
|
83 |
+{{code language="javascript"}} |
|
84 |
+var appointment = new Date( parseInt($('[xn=app1] .XAppointmentSlotId').val(),10) ); |
|
85 |
+{{/code}} |