Hi everyone,
I'm trying to implement weinre with my phonegap project. If I write the <script> tag with the URL to my weinre server it works great, my problem is when I wan´t to inject the target code with a click on an element <a>.
I put the code to inject on a <a> element like this:
<a href='javascript:(function(e){e.setAttribute("src","
http://localhost: 8989 /target/target-script-min.js#test");document.getElementsByTagName("body")[0].appendChild(e);})(document.createElement("script"));void(0);' class="ui-link">DEBUG</a>
But everytime I click on that element it gives me the error :
Uncaught Error: Syntax error, unrecognized expression: #test");document.getElementsByTagName("body")[0].appendChild(e);})(document.createElement("script"));void(0);
I think it may be linked to jquery because the error is on jquery.js in line 4679
There are any way to resolve that ?
Thanks in advice