Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Browser sometimes shows HTML source instead of rendering
Browser sometimes shows HTML source instead of rendering [message #467098] Tue, 24 January 2006 19:55 Go to next message
Eclipse UserFriend
Originally posted by: gary.hirschhorn.fetch.com

We are using the Browser.setText() method and find that sometimes the
browser displays the HTML source instead of rendering it. We discovered
the solution to the problem was removing the meta charset tag. (See posts
http://dev.eclipse.org/newslists/news.eclipse.platform.swt/m sg14605.html
and
http://dev.eclipse.org/newslists/news.eclipse.platform.swt/m sg15729.html.)

However, the strange thing is that we only find this behavior on one
machine. On another machine, the same HTML renders fine WITHOUT removing
the meta charset tag.

Both machines are running Windows XP and are using IE as the browser. All
IE settings seem to be the same. The only differences that we can see is
that one machine is as Service Pack 2, while the other is at Service Pack
1. Also, the SP 2 machine has hyper-threading, while the other does not.

The version of SWT we are using is 3.2.0.M3. Any thoughts on why the
difference would be appreciated.

Thank you,
Gary Hirschhorn
gary.hirschhorn@fetch.com
Re: Browser sometimes shows HTML source instead of rendering [message #467101 is a reply to message #467098] Wed, 25 January 2006 01:01 Go to previous message
Alex Blewitt is currently offline Alex BlewittFriend
Messages: 946
Registered: July 2009
Senior Member
The SWT browser widget (on Windows) is a light wrapper around the IE libraries. It's quite likely that the difference you're seeing is a bug that got fixed (or broken) in the change between Windows SP1 and SP2. The version of SWT isn't going to matter particularly to this, and hyperthreading will play no part (other than rendering the pages faster :-) so I'd put it definitely down to the Windows service pack level.

FWIW IE does all sorts of different things depending on what DOCTYPE is given, charset (both in the HTML meta and in the response from the server, though if you're just setting text it'll just go from the meta entries in the HTML itself) and so on. IE calls this 'quirks mode' whilst pretty much everyone else refers to it as 'bugs mode'; changing the DOCTYPE just gives you different sets of bugs. Search the microsoft website for more information on the topic.

Alex.
Previous Topic:Some SWT questions about table & tableTree
Next Topic:Table Scrollbar
Goto Forum:
  


Current Time: Tue Oct 15 04:57:02 GMT 2019

Powered by FUDForum. Page generated in 0.01380 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top