Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught SyntaxError: Failed to execute 'querySelector' on 'Document' Using ratchet js in a apache cordova example #831

Open
ricardoveramedina opened this issue Jun 2, 2016 · 1 comment
Labels

Comments

@ricardoveramedina
Copy link

Hi all

I'm following this tutorial https://ccoenraets.github.io/cordova-tutorial/hardware-acceleration.html
https://github.com/ccoenraets/cordova-tutorial/tree/master/solutions/directory-solutions/part11

and I would like to use ratchet js "slide-in" instead pageslider js. But when I try to use it I've this error

ratchet.js:37 Uncaught SyntaxError: Failed to execute 'querySelector' on 'Document': '#employees/1' is not a valid selector.

the example use ratchet css and handlebar, this is the html

<script id="employee-list-tpl" type="text/template"> <ul class="table-view"> {{#each this}} <li class="table-view-cell media"> <a href="#employees/{{ id }}"> <img class="media-object pull-left" src="assets/pics/{{pic}}"> <div class="media-body"> {{firstName}} {{lastName}} <p>{{title}}</p> </div> </a> </li> {{/each}} </ul> </script>

this call another template called "employee-tpl"

this is the list of the js (I replaced pageslider with ratchet.js)

<script src="cordova.js"></script> <script src="lib/fastclick.js"></script> <script src="lib/handlebars.js"></script> <script src="lib/jquery.js"></script> <script src="lib/router.js"></script> <script src="lib/ratchet.js"></script> <script src="js/services/memory/EmployeeService.js"></script> <script src="js/EmployeeListView.js"></script> <script src="js/HomeView.js"></script> <script src="js/EmployeeView.js"></script> <script src="js/app.js"></script>

I loved ratchet js and I don't want to use another library :( , thanks :)

@cvrebert cvrebert added the js label Jun 10, 2016
@fresh242
Copy link

what was that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants