BB Unix Network Monitor - Message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: {bb} Question about html tags



You may need to put a blank line in your output in order to get the correct layout. dohostsvc.c includes the first line of the status sent in the title, and subsequent lines are added after the </H3><PRE> tag. The HTTP test is the exception: it doesn't include "HTTP OK" or similar text in the title string.

If you plan on adding formatting, you'll probably need a </PRE> at the start of your display too.

al

On Tue, 7 Dec 2004 David.Murphy@dixons.co.uk wrote:



Guys,

Please forgive the ramblings of a html newbie. Using 1.9e.

I have been attempting to get a ext script to work (nothing complicated) and
although logically it works fine there are some cosmetics that confuse me.

When I look at the html source that is generated I see the following

....
....
<CENTER><TABLE ALIGN=CENTER BORDER=0>
<TR><TH><FONT SIZE=+1 COLOR="#FFFFCC" FACE="Tahoma, Arial, Helvetica">
europa - meta<BR><HR WIDTH=60%></TH>
<TR><TD><H3>
green Tue Dec  7 16:11:39 GMT 2004 <P><DIV ALIGN="CENTER"><HR>
</H3><PRE>
<B>============== MetaDatabases ==============</B>
<HR></DIV>
<PRE>
    flags          first blk b....... etc etc

Please notice that the </H3><PRE> tags come after the <P><DIV
ALIGN="CENTER"><HR> tags. This actually causes a problem as I get an extra line
feed on the
output (nothing much I grant you but damn irritating never the less). The reason
for the confusion is that the <P><DIV ALIGN="CENTER"><HR> tags are part of the
ext script and the </H3><PRE> tags aren't. I am confused as to how they are
getting out of sync as when I hardwire the html like this

....
....
<CENTER><TABLE ALIGN=CENTER BORDER=0>
<TR><TH><FONT SIZE=+1 COLOR="#FFFFCC" FACE="Tahoma, Arial, Helvetica">
europa - meta<BR><HR WIDTH=60%></TH>
<TR><TD><H3>
green Tue Dec  7 16:11:39 GMT 2004
</H3><PRE>
<P><DIV ALIGN="CENTER"><HR>
<B>============== MetaDatabases ==============</B>
<HR></DIV>
<PRE>
    flags          first blk b....... etc etc

everything works fine.

I thought it might be something to do with the script itself but after some
checking I have noticed that this actually happens a lot. Check out the
ftp/telnet/ssh
etc etc checks and you will see the same behaviour. Whereas if you look at the
html check that has no problem.

Anyone know why this works in this way, it kinda looks wrong to me.

Apologies in advance if I have missed something galringly obvious. :-)

Many Thanks

Dave




********************************************************************** This e-mail (and any attachment) has been sent from a PC belonging to DSG Retail Limited or another company in the Dixons Group, registered office Maylands Avenue, Hemel Hempstead, Hertfordshire HP2 7TG. Its contents are confidential to the sender and the intended recipient.

If you receive it in error, please tell us by return and then delete it from your system; you may not rely on its contents nor copy/disclose it to anyone.

Opinions, conclusions and statements of intent in this e-mail are those of the sender and will not bind a Dixons Group company unless confirmed by an authorised representative independently of this message. We do not accept responsibility for viruses; you must scan for these.

Please note that e-mails sent to and from the Dixons Group are routinely monitored for record keeping, quality control and training purposes, to ensure regulatory compliance and to prevent viruses and unauthorised use of our computer systems.

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.


Home | Main Index | Thread Index