RE: [PHP] IFRAMES & PHP
| From: | Jon Haworth | Date: | Mon, 27 Jan 2003 17:49:25 +0000 |
| Subject: | RE: [PHP] IFRAMES & PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-133273@lists.php.net to get a copy of this message | ||
Hi Greg,
> But the buttons are outside of the iframe, so that no matter how
> large the frame gets, the buttons are always in the same place :/
So stick an image of the button outside the <iframe>, wrap it in an <a>, and
use the onclick handler to call a javascript function that submits the form.
Of course, this will break for anyone who doesn't have javascript enabled
(some estimates put this as high as 20%, but it depends on your audience).
Alternatively, put your form inside a <div> with a fixed height and width,
and the overflow property set to "scroll" or "auto". This should behave in
much the same way as your <iframe>, but with everything on the same page.
Again, this will break for some users (those whose browsers
*cough*NN4*cough* don't support fixed positioning and overflow), but at
least it degrades more gracefully than the scripted solution.
Thirdly, if you provide a link to a sample page, someone might be able to
come up with a way to rework your form so you can avoid all this entirely
:-)
Cheers
Jon