|
Posted by Daniel Kaplan on April 6, 2006, 7:54 am
Please log in for more thread options
Hey All,
In some of my pages I use a quick form to give navigational button choices,
rather than links. One of them is this:
<FORM name="nulltry" enctype="multipart/form-data"
action="http://www.mysite.com/cgi-bin/enter_one.pl" method="POST">
<INPUT type="submit" value=" Enter Another ">
</form>
The hiccup that Firefox gives me, yet IE does not is:
*Malformed multipart POST: data truncated
*Compilation failed in require at enter_one.pl line 6.
*BEGIN failed--compilation aborted at enter_one line 6.
So the quick fix was to add this line to my form:
<INPUT type="hidden" name="notused" value="1">
and the problem goes away.
But I guess I would like to know what happened. Was I wrong to try and use
a form as a navigational tool? Is my fix acceptable enough? And why does
Firefox complain while IE does not?
Would really appreciate any input.
Thanks ahead as always.
Daniel
|
|
Posted by Jukka K. Korpela on April 6, 2006, 10:23 am
Please log in for more thread options
> In some of my pages I use a quick form to give navigational button
> choices, rather than links.
Stop doing so. Links want to be links. See
http://www.cs.tut.fi/~jkorpela/www/links.html
> action="http://www.mysite.com/cgi-bin/enter_one.pl"
Don't use fake URLs, especially when they look like real URLs.
> *Malformed multipart POST: data truncated
Such things may happen. Someone might be interested in analyzing your problem
in some other group, if you gave a real URL that demonstrates it. Of course,
the action attribute must refer to something that is capable of handling the
submitted data; you are not giving much facts about this. And it isn't an
HTML problem. And the problem vanishes when you stop creating it, as far as
forms as urrogates for links are considered.
> But I guess I would like to know what happened.
Wouldn't it be better to fix your pages first?
> Was I wrong to try and
> use a form as a navigational tool?
Yes.
> Is my fix acceptable enough?
No.
> And why
> does Firefox complain while IE does not?
When such things happen, Firefox is usually right.
--
Yucca, http://www.cs.tut.fi/~jkorpela/ Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
|
|
Posted by Yukky Korpulent on April 6, 2006, 2:28 pm
Please log in for more thread options
I would not recommend using a FORM this way because buttons are
expected to perform some action on user-submitted data, not as
navigational devices. Additionally, substituting another element for
navigation causes your link to lose desirable intrinsic functionality
of anchors (such as "open in new window.") That said, there are many
aesthetic reasons why you would _not_ want an anchor tag to render as
it normally would, particularly for navigation bars (including, but not
limited to, those utilizing javascript to produce a "drop-down"
sub-menu effect). In these cases, styling the A tag is effective.
Since this goes against my alter-ego, the self-satisfied smugclown who
posted earlier, it's time for a reality check. If you note that 99.9%
of websites developed professionally today violate his "Links Want To
Be Links" manifesto, you quickly come to the conclusion that we are
clearly dealing with two worlds here--Jukka's and the real one. If you
want to immerse yourself into the experience of a website that hasn't
evolved since the mid 1990's, by all means visit Jukka's and uphold his
tenets. But if you want to employ modern styling techniques of real
websites, visit anything else. Visit, for example,
http://www.webtrends.com and notice the shocking--shocking!--use of
styled anchors without underlines! Note the horrifying use of dropdown
navigation under the "Popular Downloads" section! Witness the appalling
lack of borders around navigable images! Finally, become astonished at
your ability to somehow navigate the site with ease. Now rinse and
repeat for every other well-designed, attractive site in the modern
world.
|
|
Posted by Harlan Messinger on April 6, 2006, 2:58 pm
Please log in for more thread options
Yukky Korpulent wrote:
> tenets. But if you want to employ modern styling techniques of real
> Visit, for example,
> http://www.webtrends.com and notice the shocking--shocking!--use of
> styled anchors without underlines! Note the horrifying use of dropdown
> navigation under the "Popular Downloads" section!
The ones that don't do anything if I have Javascript turned off?
|
|
Posted by Yukky Korpulent on April 6, 2006, 3:01 pm
Please log in for more thread options
Feel free to turn it off, sport. Turn off your monitor for a real
treat.
|
| Similar Threads | Posted | | Correct form for file:// URLs (or why don't they work in Firefox?) | January 13, 2005, 9:37 pm |
| A FireFox problem: with pre and ex | September 13, 2006, 9:39 am |
| anyway to programatically disable autocomplete for Firefox and IE for specific form fields? | July 25, 2007, 8:08 pm |
| DIV Scrollbar problem in FireFox... | May 23, 2005, 7:01 am |
| iframe problem in firefox | February 5, 2006, 9:31 pm |
| html4/strict.dtd & IE/firefox problem | April 21, 2005, 9:34 am |
| Table layout problem in Firefox/IE6 | June 14, 2005, 8:42 am |
| Problem with Firefox viewing html | January 22, 2007, 4:50 pm |
| Frameset look and behavior problem in Firefox... Help Please! | February 22, 2007, 1:33 pm |
| Weird CSS Link problem in Firefox | May 14, 2008, 6:53 pm |
|