Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

works in IE but not in other browsers

Featured Replies

Your HTML tag might need changing to...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

  • Author
Your HTML tag might need changing to...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

 

no didn't work -_-

In your response headers, the mimetype is "text/plain" where it should be html or xml. IE guesses mimetype differently to other browsers. If you fix whichever application server (Tomcat, Apache, IIS, etc) is setting that wrongly, you'll probably have a solution.

Not necessarily... JSP means Java Server Page - and is a perfectly legitimate extension.

An amatuer input, should this not be your header, for the code to be read as html?

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

In your response headers, the mimetype is "text/plain" where it should be html or xml. IE guesses mimetype differently to other browsers. If you fix whichever application server (Tomcat, Apache, IIS, etc) is setting that wrongly, you'll probably have a solution.

What he said. His doctype is correct for transitional and that wouldn't effect the page like that. The header that is sent to the browser with the page isn't set correctly meaning that the browser is displaying it as a plain text file as it should do (of course IE doesn't comply with such rules).

 

Headers analysis for your page

15dvrxj.gif

 

Header analysis for a functioning website

k1bgcy.gif

That's really bizarre. If you just take Firefox it looks like the page isn't going through the necessary preprocessor (ISAPI filter or whatever) to be processed as a JSP.

 

However it's fine in IE, so now I'm afraid I'm stumped.

 

It's almost certainly going to be something in your server config (I still don't know if you're using JBoss, Tomcat, or some other Java application server) - either the application server or the web server (IIS / Apache). So that's probably the place to start looking but I don't think I can help further...

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.