Gossamer Forum
Home : Products : DBMan : Customization :

Building Check boxes in Netscape

Quote Reply
Building Check boxes in Netscape
Heya JPD,

I use several check-boxes in my DBMan database. On building the sub html_record_form everything seems to be OK in both IE and Netscape - all my check boxes show up.

However, when I try to display the records again through the sub html_record function, it does not build he check boxes in the Netscape browser. I use the following command line in this sub to build the fields:

Code:
print &build_checkbox_field "Coaches", "$rec{'Coaches'}");

It displays just fine in IE. You can view the difference in the pages at this URL:

http://www.dropzone.com/...7&view_records=1

Also, I use "if" statements to filter out what will appear on in the Contacts box on the right. With IE all works well. With Netscape - the entire box disappears!

Hope you have some thoughts!



------------------
Safe swoops
Sangiro

http://www.dropzone.com/
Quote Reply
Re: Building Check boxes in Netscape In reply to
You can't use checkbox fields unless they're in a form. (From what you say, I guess you can with IE, but I never use it.) You should really just print out the contents of your fields, rather than using a checkbox.


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





Quote Reply
Re: Building Check boxes in Netscape In reply to
Point to note for all dem designers out there. JPDeni's right, it's a big difference between Netscape and IE. If Netscape doesn't see a <form> tag, it won't display any of the form content, whereas IE will.

So much for the W3C huh?

adam
Quote Reply
Re: Building Check boxes in Netscape In reply to
Actually, Adam, it's much worse than that. If, for example, one has a select list that isn't with <form> tags, the entire list will just be printed out, with no list formatting. Can be very ugly.


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





Quote Reply
Re: Building Check boxes in Netscape In reply to
Heya guys,

Very true - almost all of these happened to me! Remember in my original post I was whining about whole parts of the page not showing up in Netscape?

I thought it had something to do with my abundant use of IF statements, but none of that! It had everything to do with the fact that I didn't properly open and close <form> and even <select> statements in forms. Netscape goes on strike when this happens.

Live and learn!


------------------
Safe swoops
Sangiro

http://www.dropzone.com/
Quote Reply
Re: Building Check boxes in Netscape In reply to
Thanks JPD,

I've found a work-around. I pulled in two graphics, a checked box when the field has data in and an unchecked box if the field is empty.

stay cool

------------------
Safe swoops
Sangiro

http://www.dropzone.com/
Quote Reply
Re: Building Check boxes in Netscape In reply to
Nice workaround! I'll bet it looks nicer, too.


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





Quote Reply
Re: Building Check boxes in Netscape In reply to
I don't think you can blame Netscape for it though, after all they're the ones who're sticking more rigidly to the W3C spec. Let's blame microflot!

It's a conspiracy! Smile

adam