Using Javascript to Trigger UDT
Posted: Fri May 12, 2023 9:13 pm
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
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