CodeIgniter Forums
base url in and script src doesnt work - 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: base url in and script src doesnt work (/showthread.php?tid=54970)

Pages: 1 2


base url in and script src doesnt work - El Forum - 10-04-2012

[eluser]solid9[/eluser]
I think this is a jQuery-UI issue.

Can you post your jQuery codes for this.


base url in and script src doesnt work - El Forum - 10-08-2012

[eluser]london77[/eluser]
hi,

unfortunately the file is too large to copy paste here.


here is the link, if you kindly check it for me.

java code


base url in and script src doesnt work - El Forum - 10-08-2012

[eluser]LuckyFella73[/eluser]
When you have a look at the sourcecode rendered by the browser
the js file is usually linked. If you get the source of the
js file following the link the error is elsewhere.

If the link doesn't work please post the line (path/js_file.js)
rendered by your browser.


base url in and script src doesnt work - El Forum - 10-08-2012

[eluser]london77[/eluser]
hi LuckFella73

thanks for the reply, but I didnt understand what you are saying at all.
can you kindly explain it a bit clearly please.


base url in and script src doesnt work - El Forum - 10-08-2012

[eluser]PhilTem[/eluser]
Paste the source code of your rendered page by right clicking in your browser and then "view source". Copy the lines of your <head>-part or wherever you want the js file to be included at.


base url in and script src doesnt work - El Forum - 10-08-2012

[eluser]gazza7364[/eluser]
Try this it works for me:-

The s stands for script in the following:-

Code:
<s type="text/javascript" src="&lt;?=base_url()?&gt;java/jquery-ui-1.8.24.custom.min.js"></s>


Do have the correct permissions for the java folder. Also is your .htaccess file stopping you entering the folder.

Can you see the contents of the folder if you do http://localhost/java ?

These are just some of things I would check first.


base url in and script src doesnt work - El Forum - 10-08-2012

[eluser]beeLoop[/eluser]
Please check the permission of your folder.
If you are using Ubuntu, set the permissions of the folder as '777'.
Hope this helps. Smile