css path problem with SRV, external IE9, and strict doctype |
Guru master
|
I just created a new project using SRV with a single index.php using a copy/paste of your HTML and a single CSS file. Everything is named exactly as you have it and the CSS contained the blank default PhpED declarations plus .titlebar which I set to white text on red background. It worked fine in external IE 9, Chrome, Firefox and Safari. The URL is http://localhost:8080/index.php and the CSS was http://localhost:8080/js-css/pipe.css
I don't know much about SRV as I prefer to use a local Apache server, but it doesn't really sound like a SRV issue. Is there some sort of browser caching issue happening, so an old CSS is cached and reloaded for localhost? I guess you've tried an F5 to force a refresh/reload of the CSS, but maybe also try clearing the IE cache and see if it then loads the correct CSS. If you have a look in the SRV logs, do you see anything useful such as the request for the CSS file? In my test I saw a GET /js-css/pipe.css HTTP/1.1 which is what is expected. |
||||||||||||
|
|
Thank you for solving my problem - well, giving me a way forward, at least.
HOWEVER, you mentioned using a local Apache for doing your work, and that reminded me I have one on my development PC that I used in the past as a "half-way-to-release" platform for testing. I put the file in the apache docroot, and it finds the css files perfectly. Very strange, but I can live with that, and will use it for all my development for now, rather than as a testing platform. Thank you so much for going to all the effort on my behalf. It is very much appreciated. Now I am running again, and have a much better understanding of where to look for a solution in the future! Regards, Jeremy |
||||||||||||||||||
|
Guru master
|
The SRV log is easy to get to. Whilst SRV is running it has an icon in the task tray, double-click that icon then in the window that pops up you can click on logs. It also shows you the headers, which is quite convenient. You might see something that will give a clue about the cause of the problem.
I must admit that problems like this do make me curious as to what's going on. Hopefully Dmitri will read and might have a useful suggestion. |
||||||||||||
|
Site Admin
|
If CSS (or JS) does not work, you may want to check for the following situation:
-you checked parse php in JS and/or CSS In this case - all the JS and CSS files processed by SRV are passed through php interpreter and this php interpreter ADDs content-type (until not issued by js or css themselves). Guess what content type is set by PHP? Right - it's text/html (and shouldn't be anything else - because it does not care if your files end up .html, .js or .css). In this case I'd recommend either uncheck "parse php" in those files (if they really don't have php parts), or add necessary header() function call specifying Content-Type with appropriate value in appropriate place -- the topmost possible, before the 1st echo. Regarding debugging html issues, I'd recommend to use live-headers (free) plugin or http-watch (commercial) They show HTTP requests and HTTP responses. In case of SRV - you can see them too btw... |
||||||||||||
_________________ The PHP IDE team |
|
Dmitri, has anyone told you that you are wonderful!? I never even knew what that setting did! Now it works. And I am "over the moon" with happiness.
Many thanks, I will get these. I am always on the lookout for useful tools for firefox to help.
Again, thanks to you both, plugnplay and dmitri. The problem is now fixed, and I have learned important things from you both, for which I am very grateful. |
||||||||||||||||||||||
|
css path problem with SRV, external IE9, and strict doctype |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by