Computing.Net > Forums > Web Development > Frontpage Form Guestbook

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Frontpage Form Guestbook

Reply to Message Icon

Name: martinuk777
Date: April 12, 2004 at 13:30:58 Pacific
OS: Windows XP Pro
CPU/Ram: XP2500+ / 1GB PC2700 DDR
Comment:

I use Frontpage Express XP version for editing my websites. My outpage is http://www.cleddau.com/guestbookview.html

I'm looking for a way to restrict the number of characters that are displayed on a line so that readers don't have to scroll to the right to read long entries. I can't find how to do this in the Form Field Properties. I can restrict the number of characters in total but I don't want to do that. Does anyone know how I might get around this?



Sponsored Link
Ads by Google

Response Number 1
Name: SN
Date: April 12, 2004 at 14:03:14 Pacific
Reply:

Each entry in your guestbook has a [pre] tag around it. This tells the browser that the text is preformatted and not to wrap it, to display every hard return and space, etc.

If you get the [pre] tag out of there, the browser will do the rest.

If you want to limit how many characters are on a line, and not have the browser do it for you, exchange PRE with DIV and set the style attribute to a specified width:
<DIV style='width: 300px'>
</DIV>

Get the idea?
Good luck,
-SN


0

Response Number 2
Name: SN
Date: April 12, 2004 at 14:08:20 Pacific
Reply:

I just realized...The reason the PRE is on there in the first place is because without it, people won't have any way to separate their paragraphs without putting a [BR] tag in there. You may want to have something either client side (javascript) or server side (probably ASP) that takes their entry and replaces \n with [BR] ([] replaced with <>.) This is a much better way of doing it than using PRE.

-SN


0

Response Number 3
Name: anonproxy
Date: April 12, 2004 at 20:20:25 Pacific
Reply:

The PRE tag is fairly close to the vilest of HTML. Don't bother forcing line breaks in stored text. Instead use something like CSS at the presentation layer. Maybe define a div box with a limited size. The text will automatically break along the invisible lines of the box. You can also use tables to achieve this. With your website, both are sufficiently simple.

The CSS would look like this:

.commentbox
{
width: 750px; /*Good size for 800x600 resolution*/
}

Just make all the comment fields in the HTML [div class=".commentbox"] or [p class=".commentbox"]. Add the link tag in the head of the HTML page like so (putting the above CSS in a file named "style.css"):

[LINK REL=StyleSheet HREF="style.css" TYPE="text/css"]


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Frontpage Form Guestbook

I can't get my frontpage form towrk www.computing.net/answers/webdevel/i-cant-get-my-frontpage-form-towrk/106.html

Getting crankin www.computing.net/answers/webdevel/getting-crankin/463.html

Forms In Frontpage HELP! www.computing.net/answers/webdevel/forms-in-frontpage-help/2779.html