jamescover
06-28-2007, 05:24 PM
Hi,
Not as simple as the title would seem, I guess...
I'm working on a small HTML/Javascript/PHP using a flatfile text-based DB, Guestbook Script. I will do the formatting in CSS after it is functional. I'm not concerned about the flatfile....
My problem:
I have a FORM in an IFRAME, which can be hidden or made visible to collect the data then write it to the IFRAME. Everything works to this point, except, once you add a comment, hide the guestbook entries, then try to add another entry, scrollbars appear in the IFRAME, even though they don't appear the first time using the form.
I have SCROLLING for the IFRAME set to AUTO b/c the Guestbook entries will eventually need to be scrolled...
This happens in both IE 6, and Firefox 2.
Below is a link to the working script.
To test:
1. Add a comment.
2. Hide all comments.
3. Try to add another comment.
http://motox.ekigroup.com/guesttest/guestbook/addcomment.php
Any suggestions/idea on how to prevent the scrollbars appearing the second time around..?
Not as simple as the title would seem, I guess...
I'm working on a small HTML/Javascript/PHP using a flatfile text-based DB, Guestbook Script. I will do the formatting in CSS after it is functional. I'm not concerned about the flatfile....
My problem:
I have a FORM in an IFRAME, which can be hidden or made visible to collect the data then write it to the IFRAME. Everything works to this point, except, once you add a comment, hide the guestbook entries, then try to add another entry, scrollbars appear in the IFRAME, even though they don't appear the first time using the form.
I have SCROLLING for the IFRAME set to AUTO b/c the Guestbook entries will eventually need to be scrolled...
This happens in both IE 6, and Firefox 2.
Below is a link to the working script.
To test:
1. Add a comment.
2. Hide all comments.
3. Try to add another comment.
http://motox.ekigroup.com/guesttest/guestbook/addcomment.php
Any suggestions/idea on how to prevent the scrollbars appearing the second time around..?