Built-in browser fails to format HTML page with CSS

For technical support for all editions of CSE HTML Validator. Includes bug reports.

Built-in browser fails to format HTML page with CSS

Postby anv2010 » Wed May 05, 2010 4:49 pm

Hello,

The CSE HTML Validator built-in browser fails to apply CSS styles to any page on one of my web site.

The CSS style sheet files linked using:
Code: Select all
<link rel="stylesheet" href="css/css.php" type="text/css" />


Where, the css.php file includes the individual CSS style sheet files, compresses, i.e. gzip the contents, and serves it to the user agent.

Anyway, the built-in browser displays the page as no CSS style is loaded.

Did anyone run into the same problem?

Thank you.
anv2010
Rank I - Novice
Rank I - Novice
 
Posts: 16
Joined: Wed May 05, 2010 4:41 pm

Re: Built-in browser fails to format HTML page with CSS

Postby Albert Wiersch » Thu May 06, 2010 9:39 am

Are you previewing your document? If so, then it is being accessed directly by file and not running through your web server. That's probably why it's not working. If you switch to browse mode and type in a URL that will run it through your server, then it should work.

In the future, CSE HTML Validator may support "server mapping" for previewing so it would change the "css/css.php" link to an absolute link that will run it through the server so that the php script is run.

I hope this helps & makes sense.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: Built-in browser fails to format HTML page with CSS

Postby anv2010 » Thu May 06, 2010 6:58 pm

Hi Albert,

Thank you for your response.

I did type in a URL for my alive public site via the "File" -> "Open from the Web" option.
anv2010
Rank I - Novice
Rank I - Novice
 
Posts: 16
Joined: Wed May 05, 2010 4:41 pm

Re: Built-in browser fails to format HTML page with CSS

Postby Albert Wiersch » Fri May 07, 2010 2:48 pm

anv2010 wrote:I did type in a URL for my alive public site via the "File" -> "Open from the Web" option.


Yes, that may be why it didn't work properly. When you do that and preview the document, it saves it to a temp file first... so relative paths typically won't work nor will links that require server processing.

If you go to the integrated web browser, put it in browse mode, then type the URL in the browser, then it should work because it should act like a normal web browser.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: Built-in browser fails to format HTML page with CSS

Postby anv2010 » Fri May 07, 2010 4:05 pm

Hi Albert,

I've been using your product for a few days only and was not aware about the "integrated web browser" feature.

I'm sure there are great many other features I'm not aware still. Live and learn.

Thank you for this great product! I wish I was aware of the product awhile ago. It would have saved me a lot of time and aggravation.

Best.
anv2010
Rank I - Novice
Rank I - Novice
 
Posts: 16
Joined: Wed May 05, 2010 4:41 pm

Re: Built-in browser fails to format HTML page with CSS

Postby Albert Wiersch » Fri May 14, 2010 11:08 pm

Albert Wiersch wrote:In the future, CSE HTML Validator may support "server mapping" for previewing so it would change the "css/css.php" link to an absolute link that will run it through the server so that the php script is run.


I wasn't originally planning to have a "path mapping" feature in v10 but I was able to add one in the last few days. This should be in the next BETA. If you can access your "local" documents (like c:\web\index.php) over a web server (like if you are running one on your machine), then you should be able to preview your documents (using the integrated web browser in CSE HTML Validator) through the web server using the new path mapping feature.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: Built-in browser fails to format HTML page with CSS

Postby anv2010 » Fri May 21, 2010 2:31 am

I'm looking forward for V10. Thanks!
anv2010
Rank I - Novice
Rank I - Novice
 
Posts: 16
Joined: Wed May 05, 2010 4:41 pm

Re: Built-in browser fails to format HTML page with CSS

Postby Albert Wiersch » Fri May 21, 2010 8:43 am

anv2010 wrote:I'm looking forward for V10. Thanks!


Great! You can download the latest BETA with the new path mapping in the integrated web browser here:
http://download8.htmlvalidator.com/cse- ... -setup.exe

Registration info is here:
http://www.htmlvalidator.com/beta

I will probably be releasing a final BETA next week.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX


Return to CSE Tech Support

Who is online

Users browsing this forum: No registered users and 1 guest