Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

What did I break? IE suddenly only displays source of JSP ..

 
   Web Hosting and Web Master Forums (Home) -> Webmaster RSS
Next:  Bots and bandwidth  
Author Message
nospacespamgir2

External


Since: Jun 28, 2004
Posts: 240



(Msg. 1) Posted: Wed Jun 30, 2004 1:58 pm
Post subject: What did I break? IE suddenly only displays source of JSP files,
Archived from groups: alt>www>webmaster (more info?)

This is an odd one... I wanted to test some pages I've been working on
this morning in IE, and all of a sudden IE asks me if I want to download
the file (rather than rendering the page). When I take a look at the
file it wants to download, it's the generated source. Same page in
Mozilla and Firefox renders with no questions asked. Anyone got any clues?

xConfusedMir.


--


x theSpaceGirl (miranda)

# lead designer @ http://www.dhnewmedia.com #
# remove NO SPAM to email, or use form on website #

 >> Stay informed about: What did I break? IE suddenly only displays source of JSP .. 
Back to top
Login to vote
usewebsiteinsi

External


Since: Apr 25, 2004
Posts: 91



(Msg. 2) Posted: Wed Jun 30, 2004 2:03 pm
Post subject: Re: What did I break? IE suddenly only displays source of JSP files, rather than [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

*SpaceGirl* wrote:
 > This is an odd one... I wanted to test some pages I've been working on
 > this morning in IE, and all of a sudden IE asks me if I want to
 > download the file (rather than rendering the page). When I take a
 > look at the
 > file it wants to download, it's the generated source. Same page in
 > Mozilla and Firefox renders with no questions asked. Anyone got any
 > clues?

In Firefox hit Control-J and check that the mime-type of the offending
page is text/html (or application/xhtml+xml perhaps). Do you have a URI
for the page that we can see?
--
Andrew Urquhart
- FAQ: <a style='text-decoration: underline;' href="http://www.aww-faq.org" target="_blank">www.aww-faq.org</a>
- Archive: <a style='text-decoration: underline;' href="http://www.google.com/groups?q=alt.www.webmaster" target="_blank">www.google.com/groups?q=alt.www.webmaster</a>
- My reply address is invalid, see <a style='text-decoration: underline;' href="http://www.andrewu.co.uk/contact/" target="_blank">www.andrewu.co.uk/contact/</a><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: What did I break? IE suddenly only displays source of JSP .. 
Back to top
Login to vote
nospacespamgir2

External


Since: Jun 28, 2004
Posts: 240



(Msg. 3) Posted: Wed Jun 30, 2004 2:07 pm
Post subject: Re: What did I break? IE suddenly only displays source of JSP files, [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Andrew Urquhart wrote:

 > *SpaceGirl* wrote:
 >
  >>This is an odd one... I wanted to test some pages I've been working on
  >>this morning in IE, and all of a sudden IE asks me if I want to
  >>download the file (rather than rendering the page). When I take a
  >>look at the
  >>file it wants to download, it's the generated source. Same page in
  >>Mozilla and Firefox renders with no questions asked. Anyone got any
  >>clues?
 >
 >
 > In Firefox hit Control-J and check that the mime-type of the offending
 > page is text/html (or application/xhtml+xml perhaps). Do you have a URI
 > for the page that we can see?

It's "application/xhtml+xml" - I can't give you an url as my clients'
server isn't public Sad

--


x theSpaceGirl (miranda)

# lead designer @ <a style='text-decoration: underline;' href="http://www.dhnewmedia.com" target="_blank">http://www.dhnewmedia.com</a> #
# remove NO SPAM to email, or use form on website #<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: What did I break? IE suddenly only displays source of JSP .. 
Back to top
Login to vote
nospacespamgir2

External


Since: Jun 28, 2004
Posts: 240



(Msg. 4) Posted: Wed Jun 30, 2004 2:18 pm
Post subject: Re: What did I break? IE suddenly only displays source of JSP files, [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

SpaceGirl wrote:

 > Andrew Urquhart wrote:
 > It's "application/xhtml+xml" - I can't give you an url as my clients'
 > server isn't public Sad
 >

uhgggg well if I force the content type to be "text/html" at the server,
IE loads the page fine.

*sighs*

--


x theSpaceGirl (miranda)

# lead designer @ <a style='text-decoration: underline;' href="http://www.dhnewmedia.com" target="_blank">http://www.dhnewmedia.com</a> #
# remove NO SPAM to email, or use form on website #<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: What did I break? IE suddenly only displays source of JSP .. 
Back to top
Login to vote
usewebsiteinsi

External


Since: Apr 25, 2004
Posts: 91



(Msg. 5) Posted: Wed Jun 30, 2004 2:21 pm
Post subject: Re: What did I break? IE suddenly only displays source of JSP files, rather than [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

*SpaceGirl* wrote:
 > Andrew Urquhart wrote:
 >
  >> *SpaceGirl* wrote:
  >>
   >>> This is an odd one... I wanted to test some pages I've been working
   >>> on this morning in IE, and all of a sudden IE asks me if I want to
   >>> download the file (rather than rendering the page). When I take a
   >>> look at the
   >>> file it wants to download, it's the generated source. Same page in
   >>> Mozilla and Firefox renders with no questions asked. Anyone got any
   >>> clues?
  >>
  >>
  >> In Firefox hit Control-J and check that the mime-type of the
  >> offending page is text/html (or application/xhtml+xml perhaps). Do
  >> you have a URI for the page that we can see?
 >
 > It's "application/xhtml+xml" - I can't give you an url as my clients'
 > server isn't public Sad

That's the problem, IE doesn't support XHTML without a registry hack.
You could either switch back to text/html or do some content negotiation
and see if the client accepts(*) XHTML mime-types before serving
application/xhtml+xml

* = I think it's a bit more involved than that because a client may
accept application/xhtml+xml but prefer text/html. I know that a couple
of folks in this group have crossed this hurdle so maybe they can help
here more than I can.
--
Andrew Urquhart
- My reply address is invalid, see <a style='text-decoration: underline;' href="http://www.andrewu.co.uk/contact/" target="_blank">www.andrewu.co.uk/contact/</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: What did I break? IE suddenly only displays source of JSP .. 
Back to top
Login to vote
user94

External


Since: Sep 14, 2004
Posts: 2384



(Msg. 6) Posted: Wed Jun 30, 2004 2:21 pm
Post subject: Re: What did I break? IE suddenly only displays source of JSP files, rather than [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Andrew Urquhart wrote:

<font color=purple> > <a style='text-decoration: underline;' href="http://www.andrewu.co.uk/contact/</font" target="_blank">www.andrewu.co.uk/contact/</font</a>>

Nice clean site you have there Andrew.

Two degrees? Now who's a clever chap!?

St Andrews is a lovely place.
--
Charles Sweeney
<a style='text-decoration: underline;' href="http://CharlesSweeney.com" target="_blank">http://CharlesSweeney.com</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: What did I break? IE suddenly only displays source of JSP .. 
Back to top
Login to vote
usewebsiteinsi

External


Since: Apr 25, 2004
Posts: 91



(Msg. 7) Posted: Wed Jun 30, 2004 2:49 pm
Post subject: Re: What did I break? IE suddenly only displays source of JSP files, rather than [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

*Charles Sweeney* wrote:
 > St Andrews is a lovely place.

Aye it is, it's really nice to go up towards the Eden estuary and sit
amongst the huge sand dunes with a good book and flask of coffee and
maybe spot an inquisitive seal or two. Mind you I've just come back from
3 weeks in and around the Highlands
(www.andrewu.co.uk/photo/?category=1) - all I can think about is how
soon I can get back there! Currently thinking about MTBing my way around
and staying in hostels/camping on the cheap. At the same time though I'm
faced with the prospect of having to move near to London if I want the
kind of job I'm looking for, ugh, not fair!

Cheers,
--
Andrew Urquhart
- My reply address is invalid, see <a style='text-decoration: underline;' href="http://www.andrewu.co.uk/contact/" target="_blank">www.andrewu.co.uk/contact/</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: What did I break? IE suddenly only displays source of JSP .. 
Back to top
Login to vote
user94

External


Since: Sep 14, 2004
Posts: 2384



(Msg. 8) Posted: Wed Jun 30, 2004 2:49 pm
Post subject: Re: What did I break? IE suddenly only displays source of JSP files, rather than [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Andrew Urquhart wrote:

 > *Charles Sweeney* wrote:
  >> St Andrews is a lovely place.
 >
 > Aye it is, it's really nice to go up towards the Eden estuary and sit
 > amongst the huge sand dunes with a good book and flask of coffee and
 > maybe spot an inquisitive seal or two. Mind you I've just come back
from
 > 3 weeks in and around the Highlands
 > (www.andrewu.co.uk/photo/?category=1) - all I can think about is how
 > soon I can get back there! Currently thinking about MTBing my way
around
 > and staying in hostels/camping on the cheap. At the same time though
I'm
 > faced with the prospect of having to move near to London if I want the
 > kind of job I'm looking for, ugh, not fair!

Do freelance IT work from a cottage in the Highlands!

--
Charles Sweeney
<a style='text-decoration: underline;' href="http://CharlesSweeney.com" target="_blank">http://CharlesSweeney.com</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: What did I break? IE suddenly only displays source of JSP .. 
Back to top
Login to vote
user398

External


Since: Feb 22, 2004
Posts: 97



(Msg. 9) Posted: Wed Jun 30, 2004 3:22 pm
Post subject: Re: What did I break? IE suddenly only displays source of JSP files, [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Charles Sweeney wrote:

 > Andrew Urquhart wrote:
 >
 >
  >>www.andrewu.co.uk/contact/
 >
 >
 > Nice clean site you have there Andrew.
 >

Oh, Yes! What a beauty, and no table layout in sight Smile

--
/Arne<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: What did I break? IE suddenly only displays source of JSP .. 
Back to top
Login to vote
nospacespamgir2

External


Since: Jun 28, 2004
Posts: 240



(Msg. 10) Posted: Wed Jun 30, 2004 4:26 pm
Post subject: Re: What did I break? IE suddenly only displays source of JSP files, [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Arne wrote:

 > Charles Sweeney wrote:
 >
 >
  >>Andrew Urquhart wrote:
  >>
  >>
  >>
   >>>www.andrewu.co.uk/contact/
  >>
  >>
  >>Nice clean site you have there Andrew.
  >>
 >
 >
 > Oh, Yes! What a beauty, and no table layout in sight Smile
 >

It's great! I just gave up on my table free design here... 4 days and I
was getting no where. I'd just got it working *perfectly* in IE and
found that Firefox chewed it up. Then spent the last few hours fixing it
in Firefox, and now IE trashes it. Took 15 minutes to wrap the page in a
table and ALL the browsers display it fine.

Lets face it, CSS sucks Razz

--


x theSpaceGirl (miranda)

# lead designer @ <a style='text-decoration: underline;' href="http://www.dhnewmedia.com" target="_blank">http://www.dhnewmedia.com</a> #
# remove NO SPAM to email, or use form on website #<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: What did I break? IE suddenly only displays source of JSP .. 
Back to top
Login to vote
usewebsiteinsi

External


Since: Apr 25, 2004
Posts: 91



(Msg. 11) Posted: Wed Jun 30, 2004 4:51 pm
Post subject: Re: What did I break? IE suddenly only displays source of JSP files, rather than [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

*Arne* wrote:
 > *Charles Sweeney* wrote:
  >> *Andrew Urquhart* wrote:
<font color=brown>   >>> <a style='text-decoration: underline;' href="http://www.andrewu.co.uk/contact/</font" target="_blank">www.andrewu.co.uk/contact/</font</a>>
  >> Nice clean site you have there Andrew.
 >
 > Oh, Yes! What a beauty, and no table layout in sight Smile

Blimey, ta very much!
--
Andrew Urquhart
- My reply address is invalid, see <a style='text-decoration: underline;' href="http://www.andrewu.co.uk/contact/" target="_blank">www.andrewu.co.uk/contact/</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: What did I break? IE suddenly only displays source of JSP .. 
Back to top
Login to vote
tobyink

External


Since: Apr 25, 2004
Posts: 148



(Msg. 12) Posted: Wed Jun 30, 2004 9:52 pm
Post subject: Re: What did I break? IE suddenly only displays source of JSP files, rather than [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Andrew Urquhart wrote:

 > * = I think it's a bit more involved than that because a client may
 > accept application/xhtml+xml but prefer text/html. I know that a couple
 > of folks in this group have crossed this hurdle so maybe they can help
 > here more than I can.

function goodbrowser () {

  $ac = strtolower(getenv('HTTP_ACCEPT'));
  $ua = getenv('HTTP_USER_AGENT');

  # Netscape 6 can't properly handle XHTML
  if (substr_count($ua,'Netscape6') > 0 ) { return false; }

  # Wget can (well, it doesn't care!), but doesn't list it
  elseif (substr_count($ua,'Wget') > 0 ) { return true; }

  # Any browsers that don't specificially list XHTML, use HTML
  elseif (substr_count($ac,'application/xhtml+xml') == 0) { return false; }

  # Otherwise we need to compare 'q' values.
  else
  {
   $xhtml_q = 1; $html_q = 1;

   if (preg_match("/application\/xhtml\+xml\s*;[^,]*\bq\s*=\s*([\d\.]+)/",$ac,$m)) { $xhtml_q = $m[1]; }

   if ( preg_match("/text\/html\s*;[^,]*\bq\s*=\s*([\d\.]+)/", $ac, $m)
   || preg_match("/text\/\*\s*;[^,]*\bq\s*=\s*([\d\.]+)/", $ac, $m)
   || preg_match("/\*\/\*\s*;[^,]*\bq\s*=\s*([\d\.]+)/", $ac, $m)
   ) { $html_q = $m[1]; }

   if ($xhtml_q >= $html_q) { return true; }
   else { return false; }
  }
}
 

--
Toby A Inkster BSc (Hons) ARCS
Contact Me - <a style='text-decoration: underline;' href="http://www.goddamn.co.uk/tobyink/?page=132" target="_blank">http://www.goddamn.co.uk/tobyink/?page=132</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: What did I break? IE suddenly only displays source of JSP .. 
Back to top
Login to vote
usewebsiteinsi

External


Since: Apr 25, 2004
Posts: 91



(Msg. 13) Posted: Wed Jun 30, 2004 10:27 pm
Post subject: Re: What did I break? IE suddenly only displays source of JSP files, rather than [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

*Toby A Inkster* wrote:
 > Andrew Urquhart wrote:
  >> * = I think it's a bit more involved than that because a client may
  >> accept application/xhtml+xml but prefer text/html. I know that a
  >> couple of folks in this group have crossed this hurdle so maybe they
  >> can help here more than I can.
 >
 > function goodbrowser () {
[snipped for brevity]
 > }

Thanks Toby - it was you I had in mind Very Happy
--
Andrew Urquhart
- FAQ: <a style='text-decoration: underline;' href="http://www.aww-faq.org" target="_blank">www.aww-faq.org</a>
- Archive: <a style='text-decoration: underline;' href="http://www.google.com/groups?q=alt.www.webmaster" target="_blank">www.google.com/groups?q=alt.www.webmaster</a>
- My reply address is invalid, see <a style='text-decoration: underline;' href="http://www.andrewu.co.uk/contact/" target="_blank">www.andrewu.co.uk/contact/</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: What did I break? IE suddenly only displays source of JSP .. 
Back to top
Login to vote
tobyink

External


Since: Apr 25, 2004
Posts: 148



(Msg. 14) Posted: Wed Jun 30, 2004 11:12 pm
Post subject: Re: What did I break? IE suddenly only displays source of JSP files, rather than [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Andrew Urquhart wrote:

 > *Toby A Inkster* wrote:
  >> Andrew Urquhart wrote:
   >>> * = I think it's a bit more involved than that because a client may
   >>> accept application/xhtml+xml but prefer text/html. I know that a
   >>> couple of folks in this group have crossed this hurdle so maybe they
   >>> can help here more than I can.
  >>
  >> function goodbrowser () {
 > [snipped for brevity]
  >> }
 >
 > Thanks Toby - it was you I had in mind Very Happy

I can't entirely claim credit. I had a far more basic version; Bertilo
Wennergren suggested lots of great stuff to extract and compare 'q'
values; I pointed out some failings in his; he improved his regexp stuff;
I pilfered it, optimised it and added a few special cases (e.g. wget).

--
Toby A Inkster BSc (Hons) ARCS
Contact Me - <a style='text-decoration: underline;' href="http://www.goddamn.co.uk/tobyink/?page=132" target="_blank">http://www.goddamn.co.uk/tobyink/?page=132</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: What did I break? IE suddenly only displays source of JSP .. 
Back to top
Login to vote
nospacespamgir2

External


Since: Jun 28, 2004
Posts: 240



(Msg. 15) Posted: Thu Jul 01, 2004 11:52 am
Post subject: Re: What did I break? IE suddenly only displays source of JSP files, [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Toby A Inkster wrote:

  > function goodbrowser () {

<snip>

Thanks Toby... I'll translate that into ASP later. If anyone is
interested, I'll post the source back here.

--


x theSpaceGirl (miranda)

# lead designer @ <a style='text-decoration: underline;' href="http://www.dhnewmedia.com" target="_blank">http://www.dhnewmedia.com</a> #
# remove NO SPAM to email, or use form on website #<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: What did I break? IE suddenly only displays source of JSP .. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Best source for web templates? - Any suggestions for a good source for web templates? The best one i have found is http://www.aplustemplates.com/ . I was impressed with their flash templates and offer of 200 templates all for $30. Can any other template site beat what they are offering?...

source code - I write my HTML code and upload it through FTP. But sometimes I'm at work and feel like working on my page but dont have FTP so i go to my page on the web, do a "save as HTML file" and work on it from there and then take it home and then upload...

Source of old IE browsers - I'm looking for sources for older browsers for checking webpages in. Netscape is easy, but when I tried to install IE2 is overwrote IE5. I know, we live and learn.... so, has anyone solved this problem? Has a source for a safe download? Has instruction..

HTML source encrypting - Hi all... I am building my own website now, and in one of the pages i have a form with a link that calls entry to guest book on anoher frame, my problem is: that when i click on the link, the page reloads from cash not fromt he server and i have to reloa...

HTML source encoding! - Hi all... I have been visiting some sites to see how the sites are built, to get an idea about how to build my own website... i have visited some sites where the source code was totally encrypted and unreadable! I dont know how they do this, maybe throug...
   Web Hosting and Web Master Forums (Home) -> Webmaster All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]