Microsoft Windows Vista Community Forums - Vistaheads
Recommended Download



Welcome to the Microsoft Windows Vista Community Forums - Vistaheads, YOUR Largest Resource for Windows Vista related information.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so , join our community today!

If you have any problems with the registration process or your account login, please contact us.

Driver Scanner

IE 8 loses last tag(s) and displays </ at bottom of page

microsoft.public.internetexplorer.general






Speedup My PC
Reply
  #1 (permalink)  
Old 06-24-2010
Martin Kultermann
 

Posts: n/a
IE 8 loses last tag(s) and displays </ at bottom of page
Hi everyone, I have a java web app that generates HTML pages and sends them
to IE 8 clients.

The HTML appears to be well formed and includes all required ending tags and
I have verified that the entire HTML stream is flushed to the client and that
the proper content length is set in the response headers.

On some pages, the client page seems to cut off somewhere near the end of
the HTML (sometimes within a hidden input definition or usually within the
trailing </html> tag.

The view source shows me that the end of the html is missing which explains
why the </ appears at the end of the page.

It does not happen on every page and I have been unable to determine the
pattern that makes it happen.

Any ideas on what may be causing this or where to look will be greatly
appreciated.

Cheers

Martin Kultermann
eStar Communications
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-24-2010
Dan
 

Posts: n/a
Re: IE 8 loses last tag(s) and displays </ at bottom of page

"Martin Kultermann" <MartinKultermann@discussions.microsoft.com> wrote in
message news:1426A9E7-F0AB-4450-A97A-4FC7433B1DA8@microsoft.com...
> Hi everyone, I have a java web app that generates HTML pages and sends
> them
> to IE 8 clients.
>
> The HTML appears to be well formed and includes all required ending tags
> and
> I have verified that the entire HTML stream is flushed to the client and
> that
> the proper content length is set in the response headers.
>
> On some pages, the client page seems to cut off somewhere near the end of
> the HTML (sometimes within a hidden input definition or usually within the
> trailing </html> tag.
>
> The view source shows me that the end of the html is missing which
> explains
> why the </ appears at the end of the page.
>
> It does not happen on every page and I have been unable to determine the
> pattern that makes it happen.
>
> Any ideas on what may be causing this or where to look will be greatly
> appreciated.
>
> Cheers
>
> Martin Kultermann
> eStar Communications


You're going to have to look at tracing the underlying data packets and see
if there's a problem there, IE will just render what is has been sent. I'm
guessing that the Content-Length will be off slightly - you may think it's
correct, but if you're sending any unicode characters and not taking into
account double bytes, for instance, you could be a few bytes off on your
length calculation.

Try something like Fiddler2 http://www.fiddler2.com/fiddler2/ and look at
the response data headers and content for these requests.

--
Dan

Reply With Quote
  #3 (permalink)  
Old 06-24-2010
PA Bear [MS MVP]
 

Posts: n/a
Re: IE 8 loses last tag(s) and displays </ at bottom of page
Developer-specific resources include:

MSDN IE Development Forum (post such questions here instead)
http://social.msdn.microsoft.com/For...opment/threads

Tip: When posting in Developer forums, always include a link to your web
site or test pages in your first post.

IE Developer Center
http://msdn.microsoft.com/en-us/ie/default.aspx

Learn IE8
http://msdn.microsoft.com/en-us/ie/aa740473.aspx

HTML and DHTML Overviews and Tutorials
http://msdn.microsoft.com/en-us/library/ms537623.aspx and

Cascading Style Sheets (CSS)
http://msdn2.microsoft.com/en-us/ie/aa740476.aspx

Expression Web SuperPreview for Internet Explorer (free, stand-alone visual
debugging tool for IE6, IE7, and IE8)
http://www.microsoft.com/downloads/d...b-dccff3fae677

Expression Web SuperPreview Release Notes
http://www.microsoft.com/expression/...easeNotes.aspx

Validators:
http://validator.w3.org/
http://jigsaw.w3.org/css-validator/


Martin Kultermann wrote:
> Hi everyone, I have a java web app that generates HTML pages and sends
> them
> to IE 8 clients.
>
> The HTML appears to be well formed and includes all required ending tags
> and
> I have verified that the entire HTML stream is flushed to the client and
> that the proper content length is set in the response headers.
>
> On some pages, the client page seems to cut off somewhere near the end of
> the HTML (sometimes within a hidden input definition or usually within the
> trailing </html> tag.
>
> The view source shows me that the end of the html is missing which
> explains
> why the </ appears at the end of the page.
>
> It does not happen on every page and I have been unable to determine the
> pattern that makes it happen.
>
> Any ideas on what may be causing this or where to look will be greatly
> appreciated.
>
> Cheers
>
> Martin Kultermann
> eStar Communications


Reply With Quote
  #4 (permalink)  
Old 06-24-2010
Martin Kultermann
 

Posts: n/a
Re: IE 8 loses last tag(s) and displays </ at bottom of page
Thanks a lot Dan, I think this is solved.

I was writing the client response stream to a file as well to help with the
diagnosis.
The length of that file reported by Windows, the Content Length that I
placed into the response header and the body size reported by Fiddler are all
exactly the same.

Then I tried removing the Content Length header to see if that makes a
difference and it did, it now seems to work.

I was under the impression that performance would suffer if you did not
specify a content length, because the client would not know when the stream
is done or might wait for more. Do you know if that's true?

"Dan" wrote:

>
> "Martin Kultermann" <MartinKultermann@discussions.microsoft.com> wrote in
> message news:1426A9E7-F0AB-4450-A97A-4FC7433B1DA8@microsoft.com...
> > Hi everyone, I have a java web app that generates HTML pages and sends
> > them
> > to IE 8 clients.
> >
> > The HTML appears to be well formed and includes all required ending tags
> > and
> > I have verified that the entire HTML stream is flushed to the client and
> > that
> > the proper content length is set in the response headers.
> >
> > On some pages, the client page seems to cut off somewhere near the end of
> > the HTML (sometimes within a hidden input definition or usually within the
> > trailing </html> tag.
> >
> > The view source shows me that the end of the html is missing which
> > explains
> > why the </ appears at the end of the page.
> >
> > It does not happen on every page and I have been unable to determine the
> > pattern that makes it happen.
> >
> > Any ideas on what may be causing this or where to look will be greatly
> > appreciated.
> >
> > Cheers
> >
> > Martin Kultermann
> > eStar Communications

>
> You're going to have to look at tracing the underlying data packets and see
> if there's a problem there, IE will just render what is has been sent. I'm
> guessing that the Content-Length will be off slightly - you may think it's
> correct, but if you're sending any unicode characters and not taking into
> account double bytes, for instance, you could be a few bytes off on your
> length calculation.
>
> Try something like Fiddler2 http://www.fiddler2.com/fiddler2/ and look at
> the response data headers and content for these requests.
>
> --
> Dan
>
> .
>

Reply With Quote
  #5 (permalink)  
Old 06-25-2010
Dan
 

Posts: n/a
Re: IE 8 loses last tag(s) and displays </ at bottom of page
It depends on the web server, and if it's a true stream or just buffered
content. If it's buffered, most web servers will add the Content-Length
header themselves. If there's no header, the browser will just accept the
data until the connection is closed, so this shouldn't cause you any
problems unless your application never closes the TCP socket after sending
the data.

Dan


"Martin Kultermann" <MartinKultermann@discussions.microsoft.com> wrote in
message news:676D9AF0-3A74-4882-9C72-A4B32A124E3D@microsoft.com...
> Thanks a lot Dan, I think this is solved.
>
> I was writing the client response stream to a file as well to help with
> the
> diagnosis.
> The length of that file reported by Windows, the Content Length that I
> placed into the response header and the body size reported by Fiddler are
> all
> exactly the same.
>
> Then I tried removing the Content Length header to see if that makes a
> difference and it did, it now seems to work.
>
> I was under the impression that performance would suffer if you did not
> specify a content length, because the client would not know when the
> stream
> is done or might wait for more. Do you know if that's true?
>
> "Dan" wrote:
>
>>
>> "Martin Kultermann" <MartinKultermann@discussions.microsoft.com> wrote in
>> message news:1426A9E7-F0AB-4450-A97A-4FC7433B1DA8@microsoft.com...
>> > Hi everyone, I have a java web app that generates HTML pages and sends
>> > them
>> > to IE 8 clients.
>> >
>> > The HTML appears to be well formed and includes all required ending
>> > tags
>> > and
>> > I have verified that the entire HTML stream is flushed to the client
>> > and
>> > that
>> > the proper content length is set in the response headers.
>> >
>> > On some pages, the client page seems to cut off somewhere near the end
>> > of
>> > the HTML (sometimes within a hidden input definition or usually within
>> > the
>> > trailing </html> tag.
>> >
>> > The view source shows me that the end of the html is missing which
>> > explains
>> > why the </ appears at the end of the page.
>> >
>> > It does not happen on every page and I have been unable to determine
>> > the
>> > pattern that makes it happen.
>> >
>> > Any ideas on what may be causing this or where to look will be greatly
>> > appreciated.
>> >
>> > Cheers
>> >
>> > Martin Kultermann
>> > eStar Communications

>>
>> You're going to have to look at tracing the underlying data packets and
>> see
>> if there's a problem there, IE will just render what is has been sent.
>> I'm
>> guessing that the Content-Length will be off slightly - you may think
>> it's
>> correct, but if you're sending any unicode characters and not taking into
>> account double bytes, for instance, you could be a few bytes off on your
>> length calculation.
>>
>> Try something like Fiddler2 http://www.fiddler2.com/fiddler2/ and look
>> at
>> the response data headers and content for these requests.
>>
>> --
>> Dan
>>
>> .
>>




Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you put tabs on bottom of page in ie8 lhjr1947 microsoft.public.internetexplorer.general 1 06-13-2010 00:49
IE8 scrolls to bottom of page wapanap microsoft.public.internetexplorer.general 16 07-01-2009 18:12
IE8 Drops to Bottom of Page When Opening New Link RickB microsoft.public.internetexplorer.general 1 06-17-2009 07:54
All Windows Scroll to Bottom of Page Jeff Oliver microsoft.public.windows.vista.general 3 12-20-2008 19:25
IE 7 shoots to the bottom of the page when opened - Vista kerry microsoft.public.internetexplorer.general 1 09-25-2008 21:10




All times are GMT +1. The time now is 11:14.




Driver Scanner - Free Scan Now

Vistaheads.com is part of the Heads Network. See also XPHeads.com , Win7Heads.com and Win8Heads.com.


Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.0 RC 2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120