how to access a freestanding jquery plugin as an asset |
[eluser]bill19[/eluser]
Hi everyone, I have been trying to get https://github.com/blueimp/jQuery-File-U...gniter-2.1 going , but have run into problems with the file paths. I am trying a different approach . I was able to download and setup the https://github.com/blueimp/jQuery-File-Upload upload widget on my server, and it works fine out of the box by following the basic directions! Now I'd like to integrate it into a CI 2.10 project. I have a directory structure like this: Quote:application Now I am need to call the BLUEIMP index.html file from a controller. Its basically a view but obviously I can't call it as such because of it being in a different folder. Can anyone give me some advice on how to proceed. Thank you, Bill
[eluser]weboap[/eluser]
move the index.html to the views folder, and call it from your controller as such (you can change the file name) then update the jquery libs links to match the new location eg: Code: <skript type="text/javaskript" src="<?= base_url()?>BLUEIMP/..........js"></skript> or move this calls to your view where you have <head></head> ....
[eluser]bill19[/eluser]
Thanks weboap, Can a view be a .html file or do I need to change the extension to .php? Bill
[eluser]CroNiX[/eluser]
php, or the loader won't be able to find it (since you leave the file extension off and it automatically appends ".php" when looking for the files)
[eluser]bill19[/eluser]
I am having some problem getting the asset paths straightened out. As recommended I have moved the index.html to the views folder, and renamed it 'newform.php'. when I load I get the following errors: Quote:"NetworkError: 404 Not Found - http://localhost/upload1/index.php/css/style.css" The code is: Code: <!DOCTYPE HTML> Any advice? Bill
[eluser]weboap[/eluser]
bill19 you have an open thread for the same subject http://ellislab.com/forums/viewthread/217980/ its not gonna take you anywhere to open multiple threads like this follow on the 1st read my answer there.
[eluser]bill19[/eluser]
Sorry for the confusion Weboap, I had considered this thread to be a continuation of the other 1 ( I don't know how to close a thread ). That's why I said: Quote:I have been trying to get https://github.com/blueimp/jQuery-File-U...gniter-2.1 going , but have run into problems with the file paths. Anyway, you are right about my having the same issue with the file paths. This is the first time I've dealt with JS and CSS files and I'm clearly having some trouble with it. I'll take a look at the links you provided, and try to regroup. Thanks for looking at this, Bill
[eluser]skull[/eluser]
I have some problems, too. Please read this here http://stackoverflow.com/questions/13179...gniter-2-1 I cant post more words.. forum admins not allow. |
Welcome Guest, Not a member yet? Register Sign In |