javascript - Framework7 <a href=""> not working -


i have simple <a> in page using framework7 follows:

<li><a href="https://www.google.com/"><img src="images/icons/black/users.png" alt="" title="" /><span>go google/span></a></li> 

but when click on not redirecting google page. have checked console , shows follows:

xmlhttprequest cannot load https://www.google.com/. no 'access-control-allow-origin' header present on requested resource. origin 'http://localhost:8080' therefore not allowed access. framework7.js:12307 xhr failed loading: "https://www.google.com/".$.ajax @ framework7.js:12307app.get @ framework7.js:1652app.router.load @ framework7.js:2648load @ framework7.js:636handleclicks @ framework7.js:7573handleliveevent @ framework7.js:11488 

i new framework7. have purchased template development.

you want redirect external website, add external class a href , working properly

<li><a href="https://www.google.com/" class="external"><img src="images/icons/black/users.png" alt="" title="" /><span>go google</span></a></li> 

and see have typo on write down closing span tag


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -