![]() |
|
Call async on click from img - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software (https://www.atozed.com/forums/forum-1.html) +--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html) +---- Forum: English (https://www.atozed.com/forums/forum-16.html) +----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html) +----- Thread: Call async on click from img (/thread-815.html) |
Call async on click from img - odisej2 - 11-13-2018 I use Intraweb together with layout manager. When populating table with some images I do this in IWTemplateProcessorHTML1UnknownTag: VValue := '<a href="#" onclick="SubmitClickConfirm(''btnSend'',''' + 'somekey' + ''', true, '''');return false;">' + '<img src="images\send.png" />' + '</a>'; Behind btnSend I have some code. And that is full sumbit of the form which is ok in this case. But now I want to call OnAsyncClick of the button when user clicks on that img. Any ideas what to do? Regards Grega RE: Call async on click from img - Jose Nilton Pace - 11-13-2018 Hi Grega. You can call an AjaxCall of a Procedure, instead a OnAsyncClick of the button. See this demo. RE: Call async on click from img - odisej2 - 11-14-2018 Hi Big thanks, it works like a charm. |