Telegram_2021-08-07T18

<< Click to Display Table of Contents >>

Navigation:  Telegram > 2021 > 08 > 07 >

Telegram_2021-08-07T18

Telegram link

 

2021-08-07T18:27:28

 

I'm trying to open a modal on my template with no success.

 


 

Telegram link

 

2021-08-07T18:27:44

 

WebApplication.CallBackResponse.AddJavaScriptToExecuteAsCDATA(

 

'(function(){'+

 

' $('' type: hashtag #myModal '').modal(''show'');'+

 

' });');

 


 

Telegram link

 

2021-08-07T18:28:35

 

Any ideas on where I'm going wrong

 


 

Telegram link

 

2021-08-07T18:36:55

 

type: pre WebApplication.CallBackResponse.AddJavaScriptToExecute(

 

'$(\#myModal\).modal(\show\);'

 

); language:

 


 

Telegram link

 

2021-08-07T18:40:11

 

Tried this and get Error in processAjaxExecute when evaluating: $(\ type: hashtag #myModal \).modal(\show\);

 

$(...).modal is not a function

 


 

Telegram link

 

2021-08-07T18:40:56

 

When use Modal need to load JQuery.

 


 

Telegram link

 

2021-08-07T18:41:34

 

type: pre

 

language:

 


 

Telegram link

 

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

 


 

Telegram link

 

2021-08-07T18:51:02

 

I would like to open the modal on an if statement placed in an event of the button instead

 


 

Telegram link

 

2021-08-07T18:51:35

 

Modal only show in an Async Click

 


 

Telegram link

 

2021-08-07T18:51:51

 

try open in browser console

 


 

Telegram link

 

2021-08-07T18:51:55

 

type: code $(\#myModal\).modal(\show\);