Gossamer Forum
Home : Products : DBMan : Customization :

LONG HTML Lines

Quote Reply
LONG HTML Lines
Hello

I am currently trialling DBMan and have noticed that it is rather prone to generating excessively long (> 2500 character) lines of HTML when the Autogenerate forms option is turned on. This causes Internet Explorer to crash, but Netscape seems more robust. I know that you can generate the HTML yourself, but I haven't had chance yet...

Any ideas?
Quote Reply
Re: LONG HTML Lines In reply to
I think this is most likely to happen when you have a select field with a lot of options.

Go into db.cgi and look for sub build_select_field. Add newline characters -- \n -- to some of the lines:

Code:
else {
$output = qq|<SELECT NAME="$column"><OPTION>---\n|;
foreach $field (@fields) {
$field eq $value ?
($output .= "<OPTION SELECTED>$field\n") :
($output .= "<OPTION>$field\n");
}
$output .= "</SELECT>";
}

One of them already has a newline character, but you will need to add a couple more.

If you still have problems, let me know and we'll find some other places to stick in the \n character.


------------------
JPD