1508
Views
6
Comments
Solved
Adding Script tag to reactive web app
Question
Greetings,
i want to add the script tag to my reactive web app
<script src="https://js.pusher.com/7.0/pusher.min.js"></script>
thank in advance
UserImage.jpg
anand kumar
Solution

Lenon Manhães wrote:

anand kumar wrote:

Lenon Manhães wrote:

Hi, friend.

You can also use javascript at the onready event with create Element script and then append to the head element of the screen. Putting that in the source layout block will apply to all screens. Follow:

x


 I am very sorry, I did't get any thing . can you plz share screen shots
Regards

 

 I was editing, sorry. Take a look above.

if i use  

document.getElementsByTagName('head').appendChild(scriptNode); 

insted of jquery will their be any problem

 

2026-02-05 15-36-36
Lenon Manhães Villeth
Champion

Hi, friend.

You can use javascript to create the Element script and then append to the head element of the screens. Putting that inside the onready of the source layout block will apply to all screens. Follow:


UserImage.jpg
anand kumar

Lenon Manhães wrote:

Hi, friend.

You can also use javascript at the onready event with create Element script and then append to the head element of the screen. Putting that in the source layout block will apply to all screens. Follow:

x


 I am very sorry, I did't get any thing . can you plz share screen shots
Regards

 

2026-02-05 15-36-36
Lenon Manhães Villeth
Champion

anand kumar wrote:

Lenon Manhães wrote:

Hi, friend.

You can also use javascript at the onready event with create Element script and then append to the head element of the screen. Putting that in the source layout block will apply to all screens. Follow:

x


 I am very sorry, I did't get any thing . can you plz share screen shots
Regards

 

 I was editing, sorry. Take a look above.

UserImage.jpg
anand kumar
Solution

Lenon Manhães wrote:

anand kumar wrote:

Lenon Manhães wrote:

Hi, friend.

You can also use javascript at the onready event with create Element script and then append to the head element of the screen. Putting that in the source layout block will apply to all screens. Follow:

x


 I am very sorry, I did't get any thing . can you plz share screen shots
Regards

 

 I was editing, sorry. Take a look above.

if i use  

document.getElementsByTagName('head').appendChild(scriptNode); 

insted of jquery will their be any problem

 

2026-02-05 15-36-36
Lenon Manhães Villeth
Champion

anand kumar wrote:

Lenon Manhães wrote:

anand kumar wrote:

Lenon Manhães wrote:

Hi, friend.

You can also use javascript at the onready event with create Element script and then append to the head element of the screen. Putting that in the source layout block will apply to all screens. Follow:

x


 I am very sorry, I did't get any thing . can you plz share screen shots
Regards

 

 I was editing, sorry. Take a look above.

if i use  

document.getElementsByTagName('head').appendChild(scriptNode); 

insted of jquery will their be any problem

 

'getElementsByTagName' returns an object with many elements as it finds in the screen. It do not supports appendChild.

Use 'document.querySelector' instead. This method will return the first element founded in the screen. As we need to append in the head element, won't be a problem.

If the issue is solved, please mark as solution or let me know how I can help.


Best regards!

UserImage.jpg
anand kumar

Lenon Manhães wrote:

anand kumar wrote:

Lenon Manhães wrote:

anand kumar wrote:

Lenon Manhães wrote:

Hi, friend.

You can also use javascript at the onready event with create Element script and then append to the head element of the screen. Putting that in the source layout block will apply to all screens. Follow:

x


 I am very sorry, I did't get any thing . can you plz share screen shots
Regards

 

 I was editing, sorry. Take a look above.

if i use  

document.getElementsByTagName('head').appendChild(scriptNode); 

insted of jquery will their be any problem

 

'getElementsByTagName' returns an object with many elements as it find in the screen. It not supports appendChild.

Use 'document.querySelector' instead. This method will return the first element founded in the screen. As we need to append in the head element, won't be a problem.

 thank u very much  

 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.