CodeIgniter Forums
CodeIgniter and not work css and jQuery. why? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: CodeIgniter and not work css and jQuery. why? (/showthread.php?tid=37148)



CodeIgniter and not work css and jQuery. why? - El Forum - 12-29-2010

[eluser]SaSa[/eluser]
hello
i use CodeIgniter but not work css and jQuery to it. why?
jquery library is before any other jquery code
see for yourself:http://binboy.gigfa.com/ci/index.php/order


CodeIgniter and not work css and jQuery. why? - El Forum - 12-29-2010

[eluser]cideveloper[/eluser]
your jquery is loading fine on the pages. The scroll works. Where is your order.css file located? Your page is looking for it in ci/assets/css/order.css but the file is not there.
Your jquery file is located in ci/assets/js/jquery-1.4.3.min.js for example and it is found.


CodeIgniter and not work css and jQuery. why? - El Forum - 12-29-2010

[eluser]CroNiX[/eluser]
Yes, http://binboy.gigfa.com/ci/assets/css/order.css produces 404 error


CodeIgniter and not work css and jQuery. why? - El Forum - 12-30-2010

[eluser]tomcode[/eluser]
1. You might want to use Firefox with the HttpFox extension for testing, very nice in situations like Yours

2. With CodeIgniter You need to use absolute URL's for Your assets, see the URL helper method base_url()


CodeIgniter and not work css and jQuery. why? - El Forum - 12-30-2010

[eluser]danmontgomery[/eluser]
[quote author="tomcode" date="1293729161"]1. You might want to use Firefox with the HttpFox extension for testing, very nice in situations like Yours

2. With CodeIgniter You need to use absolute URL's for Your assets, see the URL helper method base_url()[/quote]

Or use the <base> tag