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

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

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -