CodeIgniter Forums
error: Do not recognize Prototype.js library, or any othr .js file - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: error: Do not recognize Prototype.js library, or any othr .js file (/showthread.php?tid=2738)



error: Do not recognize Prototype.js library, or any othr .js file - El Forum - 08-21-2007

[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.


error: Do not recognize Prototype.js library, or any othr .js file - El Forum - 08-21-2007

[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.


error: Do not recognize Prototype.js library, or any othr .js file - El Forum - 08-22-2007

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


error: Do not recognize Prototype.js library, or any othr .js file - El Forum - 08-22-2007

[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