Welcome Guest, Not a member yet? Register   Sign In
Error loading css when i go from a page to others
#1

[eluser]GabrieleMartino[/eluser]
Hello,

when i load this page

http://localhost/safememoirs/chat/enter/826/false

It is ok!

just console bug report me

Resource interpreted as Script but transferred with MIME type text/x-js: "http://localhost/safememoirs/public/tiny_mce/jscripts/tiny_mce/themes/advanced/editor_template.js".

But when i enter from another controller the console told me

"NetworkError: 404 Not Found - http://localhost/safememoirs/chat/css/main.css"

But i didn't change the <link> tag in the header. It seems it takes the path from the controller chat

to be more precise the link tag is

<link rel="stylesheet" href="<?php echo base_url();?>css/jqwidgets/jqx.ui-sunny.css" type="text/css"/>
<link href="<?php echo base_url();?>css/main.css" rel="stylesheet" />
but the first link is correct and it take it correctly.


#2

[eluser]TheFuzzy0ne[/eluser]
Have you set your base_url in your config file?
#3

[eluser]GabrieleMartino[/eluser]
I have set the

$config['base_url'] = 'http://localhost/safememoirs/';

And indeed in the source doesn't appear mistakes about the link, but in the console of firebug and chrome yes.
#4

[eluser]GabrieleMartino[/eluser]
I solved it was a call inside a property of tiny_mce editor that conflicts with the css url. I had just to define better the url.

Thanks




Theme © iAndrew 2016 - Forum software by © MyBB