jquery |
[eluser]einsteinity[/eluser]
hi, i'm newbie in codeigniter i am trying to link my page with external jquery.. i have tried to understand the tutorial about assets here. but i got stucked after this part Code: $route["asset/:any"] = "asset_controller/index"; can somebody give me an extra instruction to understand that part? what i am trying to do is to create a page with accordion effect (at this time, i haven't used that assets manager). i set my base url in config.php to Code: $config['base_url'] = 'http://localhost/ci/'; in my view file there is a piece of code like this Code: <link rel="stylesheet" type="text/css" href="<? echo base_url(); ?>css/styles.css" /> Code: <script type="text/javascript" src="<? echo base_url(); ?>javascript/jquery.js" ></script> i tried to run those page from browser and i got no problem with the css.. it's loaded properly, but the jquery file isn't loaded.. i open the "inspect element" in chrome browser, and found a message Failed to load resource: the server responded with a status of 404 (Not Found) i test to hover the css url shown in that inspect element tools, and the url is correct. but when i tried to hover the jquery url, the target url is different with the url shown in the inspect element tools it's shown like this Code: http://localhost/ci/A/javascript/jquery.js Code: http://localhost/ci/javascript/jquery.js please tell me what i have done wrong? i will send the complete code too if needed.. |
Messages In This Thread |
jquery - by El Forum - 06-07-2012, 09:14 AM
jquery - by El Forum - 06-08-2012, 06:19 AM
jquery - by El Forum - 06-08-2012, 08:09 AM
jquery - by El Forum - 06-08-2012, 08:28 AM
jquery - by El Forum - 06-08-2012, 08:29 AM
jquery - by El Forum - 06-08-2012, 08:49 AM
jquery - by El Forum - 06-08-2012, 09:00 AM
jquery - by El Forum - 06-08-2012, 09:01 AM
jquery - by El Forum - 06-08-2012, 09:03 AM
jquery - by El Forum - 06-08-2012, 09:06 AM
jquery - by El Forum - 06-08-2012, 09:07 AM
jquery - by El Forum - 06-08-2012, 10:05 AM
jquery - by El Forum - 06-08-2012, 11:40 AM
jquery - by El Forum - 06-17-2012, 12:01 AM
|