|
<< Click to Display Table of Contents >> Navigation: Telegram > 2021 > 08 > 07 > Telegram_2021-08-07T18 |
2021-08-07T18:27:28
I'm trying to open a modal on my template with no success.
2021-08-07T18:27:44
WebApplication.CallBackResponse.AddJavaScriptToExecuteAsCDATA(
'(function(){'+
' $('' type: hashtag #myModal '').modal(''show'');'+
' });');
2021-08-07T18:28:35
Any ideas on where I'm going wrong
2021-08-07T18:36:55
type: pre WebApplication.CallBackResponse.AddJavaScriptToExecute(
'$(\#myModal\).modal(\show\);'
); language:
2021-08-07T18:40:11
Tried this and get Error in processAjaxExecute when evaluating: $(\ type: hashtag #myModal \).modal(\show\);
$(...).modal is not a function
2021-08-07T18:40:56
When use Modal need to load JQuery.
2021-08-07T18:41:34
type: pre
language:
2021-08-07T18:49:51
Yes I have jquery 3.5.1 loaded, and I am able to open the modal with a button element
2021-08-07T18:51:02
I would like to open the modal on an if statement placed in an event of the button instead
2021-08-07T18:51:35
Modal only show in an Async Click
2021-08-07T18:51:51
try open in browser console
2021-08-07T18:51:55
type: code $(\#myModal\).modal(\show\);