Using Javascript to Trigger UDT

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
WDJames
Forum Members
Forum Members
Posts: 64
Joined: Tue Feb 13, 2018 1:09 pm

Using Javascript to Trigger UDT

Post by WDJames »

Hi all,

I'm not sure if this is the correct board to post but it is regarding a UDT so I hope its fine.

I have a booking form that queries the database for remaining spaces. It works well enough when loading the page but I need to intermittently query the database(every 1 minute) for the remaining spaces to avoid overbooking. I have a UDT that returns a value from the database which is then displayed on the page. After the page is loaded, is there any way to intermittently run the UDT using Javascript/AJAX?

Any help is appreciated.

Thanks in advance,

James
Post Reply

Return to “CMSMS Core”