php - JQuery script fails when URL has path after filename -


i trying incorporate javascript/jquery script php page. works fine when script called url script file, this:

www.mysite.com/index.php 

however, use url path parameters program logic , seo. when use url:

www.mysite.com/index.php/profile/edit 

the script fails with:

syntaxerror: unexpected token '<'

actually, error occurs if there trailing / @ end of url.

the script far long include here, suggestions nature of should looking appreciated.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

How can I fetch data from a web server in an android application? -

jquery - How can I dynamically add a browser tab? -