Atozed Forums
IW15.1.5 Button and JS onclick - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (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: IW15.1.5 Button and JS onclick (/thread-1275.html)



IW15.1.5 Button and JS onclick - matija - 09-30-2019

Button open/close accordion (section1, section2) .

IWButton property set Script Events -> onClick ->  $("#section1").collapse("hide"); $("#section2").collapse("show");  -> OK

IWButton Events OnAsyncClick set  
WebApplication.CallBackResponse.AddJavaScriptToExecute('$("#IWButton").click(function(e) { $("#section1").collapse("hide"); $("#section2").collapse("show");  '); -> NOT WORK


RE: IW15.1.5 Button and JS onclick - kudzu - 09-30-2019

In the browser press ctrl-shift-j - are there any errors listed?


RE: IW15.1.5 Button and JS onclick - MJS@mjs.us - 09-30-2019

I believe $("#IWButton") should be $("#IWBUTTON").