framework7

Open full view…

jQuery Script working only on index page

bh03ig
Wed, 13 Dec 2017 16:17:36 GMT

Hi, I have the following two web pages built in framework7: Index page: https://pastebin.com/WEBJxVDf Second page: https://pastebin.com/FvzxxiSh The jQuery Script works fine on the first page, manipulating the elements. However, I can't figure out why it doesn't work on the second page. The script and element seem identicle. Thanks :)

bh03ig
Wed, 13 Dec 2017 17:19:55 GMT

it turns out JQuery will only work for me once i refer to it through JavaScript (not sure why). Also the scripts need to be on the Index page even if the control calls the function from another page. For example: *Index page*: --- <script> function Function() { $(function(){ $.post('/CreateReview'); console.log("Attempt sent"); })}; </script> --- *GameList.html page*: --- <a href="#" onclick="Function()" id="Insert" class="button button-big button-green">Insert</a> --- Still baffled by the lack of JQuery working by itself :/.