Streaming live at 10am (PST)

How to add specific Javascript code in exported webflow page


#1

Hi there …
I created very simple Page with 1 element inside it which is a Heading Text and under it i inserted a botton …
now i exported the page and i tried to insert a javescript onclick event action on the button to change the Heading text but it didnt work with a repeated errors …

jquery-3.3.1.min.js:2 Uncaught TypeError: $(…).awwCanvas is not a function
at HTMLDocument. (index.html:33)
at l (jquery-3.3.1.min.js:2)
at c (jquery-3.3.1.min.js:2)
(anonymous) @ index.html:33
l @ jquery-3.3.1.min.js:2
c @ jquery-3.3.1.min.js:2
setTimeout (async)
w.readyException @ jquery-3.3.1.min.js:2
(anonymous) @ jquery-3.3.1.min.js:2
l @ jquery-3.3.1.min.js:2
c @ jquery-3.3.1.min.js:2
setTimeout (async)
(anonymous) @ jquery-3.3.1.min.js:2
u @ jquery-3.3.1.min.js:2
fireWith @ jquery-3.3.1.min.js:2
fire @ jquery-3.3.1.min.js:2
u @ jquery-3.3.1.min.js:2
fireWith @ jquery-3.3.1.min.js:2
c @ jquery-3.3.1.min.js:2
setTimeout (async)
(anonymous) @ jquery-3.3.1.min.js:2
u @ jquery-3.3.1.min.js:2
fireWith @ jquery-3.3.1.min.js:2
fire @ jquery-3.3.1.min.js:2
u @ jquery-3.3.1.min.js:2
fireWith @ jquery-3.3.1.min.js:2
ready @ jquery-3.3.1.min.js:2
_ @ jquery-3.3.1.min.js:2
index.html:26 Uncaught ReferenceError: showmsg is not defined
at HTMLButtonElement.onclick (index.html:26)
onclick @ index.html:26

May someone please help me is there any specific thing i can do !?
Note : i have tried my code in local Html file and it’s works 100% … :frowning_face:


#2

You can’t include jQuery a second time and all custom code must be placed in the footer unless you know what you’re doing.