abtecas — 2013-09-30T17:21:07-04:00 — #1
I'm wondering if it is because I have many different functions actually going on with call backs and such in the script. I'm not even sure where to place the "onclick" call onto which element, if at all.
How do you make the element that you want to be acted upon to call the script into action?
Thanks for your help.
chris_upjohn — 2013-09-30T19:49:03-04:00 — #2
Are you adding your script tag in the <head> or before the closing </body> tag? If you're adding it to your <head> tag move it to just before your closing </body> tag as that will ensure it waits until the DOM is ready which sounds like the issue. If you can't do this simply wrap your file in a document ready function like the below.
// Your code here
francky — 2013-09-30T23:29:20-04:00 — #3
Maybe this was it?
abtecas — 2013-10-04T18:28:52-04:00 — #4
Yes I definitely placed it like that. I don't have access to the < head > section so I had to place it right before my content begins (in an editing window in EzPublisher). I don't have access to any < body > or <head > tag.
Isn't there something that I need to place in the element that it works on though? i.e. <div onclick="some script" > to make it work?