jquery/js |
Post Reply |
Author | |
Gorksmash
Senior Member Joined: Jan 09 2014 Location: Lansing, MI Status: Offline Points: 133 |
Post Options
Thanks(0)
Posted: Mar 06 2014 at 4:25pm |
I am having trouble getting my javascript to run when I preview my site in OElement
I have it working here on a jsfiddle : http://jsfiddle.net/gorksmash/3RwpH/ I have placed a visual code block with the html content from the jsfiddle as well as a source code block with the javascript in it. I also added a source html code block containing the javascript reference in it to the start of the document. If I add
|
|
Gorksmash
Senior Member Joined: Jan 09 2014 Location: Lansing, MI Status: Offline Points: 133 |
Post Options
Thanks(0)
|
Upon further research (I always seem to find answers to stuff right after I ask for help) I found that if I wrap all of my functions in a document ready function then everything runs. I needed a listener, I just didn't understand the difference between the jsfiddle part and the OElement.
|
|
Dmit OE
Admin Group Joined: May 31 2012 Status: Offline Points: 5283 |
Post Options
Thanks(0)
|
Edited by Dmit OE - Mar 06 2014 at 4:42pm |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |