Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

script output to browser - page failing to completely render

Status
Not open for further replies.

TimeTraveler

IS-IT--Management
Nov 20, 2001
99
US
I've got some output from a Bourne script, and the page only partly renders in IE. I check the source in IE, and all of the HTML code is there, it just doesn't render completely.

Is there a special end-of-transmission type signal or character I need to output?

Additionally, while processing, the browser times out and the script dies when actuated from a form, but runs to completion on the shell. How to I keep alive the connection so the browser doesn't bag off?

Thanks in advance.

 
a special end-of-transmission type signal or character I need to output?
</body></html>

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Um... that's kind of basic and not really the problem, though I thank you for such a speedy reply.

Anyone else? In particular I'm looking for any particular octal (or ?) character(s) to transmit to stdout to tip the browser to not expect any more output.

Conversely, any output to tell the browser to continue to wait (keep-alive) would be great.

Thanks in advance for any and all replies.


Sean and the Time Travelers MP3s Available!
Visit
 
Conversely, any output to tell the browser to continue to wait (keep-alive) would be great.

it depends on the http server, not the browser.

Anyone else? In particular I'm looking for any particular octal (or ?) character(s) to transmit to stdout to tip the browser to not expect any more output.

As I know, there is no such kind of feature. So the problem could be in the browser itself (try another one) or the page...

Could you post the page? at least some lines before it ends and after (what should be displayed).

Cheers.
 
Nevermind,

Dumb HTML error calling javascript file without closing the script tag. 'Hate it when that happens.

How I found it:

I put a period (.) after the closing HTML tag, and it came up, which told me something was up in my HTML output. When I revisited the start_html function in my script, I noticed I didn't close the script tag that loads the site-wide centralized link headers.

BOGUS HTML HERE:

Code:
start_html() {
  cat -<<INPUT | sed -e 's/^ * //'
  Content-type: text/html

  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  <HTML>
  <HEAD>
  <TITLE></TITLE>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
  <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
  <LINK REL=stylesheet HREF=styles/default.css TYPE=text/css>
  </HEAD>
  <BODY>
  <!-- FORGOT TO CLOSE THIS SCRIPT TAG... DUMB! -->
  <SCRIPT SRC=header_js.txt TYPE=text/javascript>
INPUT
}

Which still begs the above questions: are there keep-alive and end-of-document signals that can be passed through stdout to definitely handle browser issues?

 
Again, it depends on your http server, not the browser. What is your web server? APACHE? take a look to the documentation and/or ask in the apache forum, but there is a variable "keep-alive" or "time-out" in the httpd.conf file.

cheers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top