Welcome Guest, Not a member yet? Register   Sign In
error: Do not recognize Prototype.js library, or any othr .js file
#1

[eluser]Unknown[/eluser]
Im doing an Ajax app, and Im using the Prototype library (in JavaScript) to comunicate with the server. When I include this library in my PHP pages, which are in the View folder of the framework(Codeigniter), I get a message saying that the functions in that library are not recognized, and the same happens with my custom .js libraries.
My question is, What changes do I have to do to the framework to fix this error?
Im adding my libraries in the same folder my pages are (the View folder, inside Application folder).


Plz someone cast some light on this subject. Thx.
#2

[eluser]Michael Wales[/eluser]
I place all of my javascript files in a folder named 'js' at the root, and then call them like so:

I believe your issue is simply that you are not using the correct relative URL.
#3

[eluser]coolfactor[/eluser]
Some code examples are needed to understand your problem. Please show us how you are including your javascript files.
#4

[eluser]alpar[/eluser]
i would use an absolute URL from the root, like walesmd suggested, and also, if you are rewriting URLs make sure that you exclude the folder you in which you have the js files




Theme © iAndrew 2016 - Forum software by © MyBB