[FX.php List] Problems w/ Internet Explorer 7 (submit via image)
Andy Gaunt
andy at fmpug.com
Wed Feb 14 19:17:42 MST 2007
Hmmm,
We have actually seen more Javascript issues of late with Safari over
FireFox and I.E.
Andy Gaunt
Office: 321.206.3658
Mobile: 407.810.4722
andy at fmpug.com
http://www.fmpug.com
2006 FileMaker Excellence Award Winner
Recipient of FileMaker's 2005 "Mad Dog" Public Relations Award
For chapter locations, dates & times please visit the website at
http://www.fmpug.com If you can make it to a meeting, please RSVP at
http://www.fmpug.com/rsvp.php
-----Original Message-----
From: fx.php_list-bounces at mail.iviking.org
[mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Bob Patin
Sent: Wednesday, February 14, 2007 8:47 PM
To: FX.php Discussion List
Subject: Re: [FX.php List] Problems w/ Internet Explorer 7 (submit via
image)
I've had specific Javascript problems with IE 7 that weren't there
with IE 6; I've also had other Javascript problems with both IE6 and
IE7. Unfortunately, I don't know enough Javascript to tell you what
to look for, but I do know that there are issues...
I don't know whether it's a case of Firefox and Safari using non-
standard protocols or the other way around... I have my suspicions
though! :)
Bob Patin
Longterm Solutions
bob at longtermsolutions.com
615-333-6858
http://www.longtermsolutions.com
CONTACT US VIA INSTANT MESSAGING:
AIM or iChat: longterm1954
Yahoo: longterm_solutions
MSN: tech at longtermsolutions.com
ICQ: 159333060
On Feb 14, 2007, at 7:21 PM, Joel Shapiro wrote:
> Hi all
>
> I wanted to share something that bit me. Maybe it'll be helpful
> for someone else here.
>
> I just discovered a situation where submitting a form via an image
> (a graphic 'button') doesn't work in Internet Explorer 7 (Windows)
> even though it works fine in Firefox (both Win & Mac), Safari, IE 5
> Mac, and I *think* IE6 Win, but can no longer test that since 7
> overwrote 6.
>
> I've got a form where the submit button first checks JavaScript
> validation and then proceeds to process. I recently switched the
> submit button to a graphic image, and that seems to have caused the
> problem. I don't claim that my code is perfect, but IE7 (only)
> was not passing the name of the form &/or was not passing a hidden
> value with the POST -- until I switched back to input type="submit".
>
> I haven't tested all permutations of this, so I don't know if it's
> the only thing going on, but I do know that the switch back fixed
> the problem. I did a quick google search for relevant IE7 problems
> and found some with "<button>" but don't know if that's relevant.
> If I ever do more testing, I'll report back here.
>
>
> // the following did not work in IE7, although it works in other
> browsers
> <input type="image" name="application" value="submit" src="images/
> submit.gif">
>
> // but this seems to work fine in all browsers:
> <input type="submit" name="application" value="submit">
>
> // here's the form
> echo '<form method="post" action="application.php" name="form"
> onsubmit="return validateForm(this)">
> <input type="hidden" name="app_pid" value="'.$pid.'">';
>
>
> // In my processing, I have:
> if( $_POST['application'] == 'submit' ) {
> $pid = $_POST['app_pid'];
> // process here
> } else {
> // error
> }
>
>
> In IE7, I was always getting the error w/ the image submit, but
> when I changed back to the input type="submit", it worked fine.
>
>
> // FYI- In my javascript validation I have:
> function validateForm() {
> if (document.form.NameFirst.value == "") {
> alert("Please provide a First Name.");
> document. form.NameFirst.focus();
> return false;
> }
> // (etc.)
>
>
>
> On a side note, IE7 also had a couple oddities in displaying text.
> On one page, I have some text in a <div> box. The last letter of
> that text showed both in the original text, and also by itself just
> outside the <div> box. It was indeed the same letter twice, as
> highlighting one of them in the browser highlighted the other at
> the same time. Odd...
>
> -Joel
>
>
> Joel Shapiro - FileMaker Pro Database Design
> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
> joelshapiro at jsfmp dot com
> http://www.jsfmp.com
> 415-269-5055
>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
_______________________________________________
FX.php_List mailing list
FX.php_List at mail.iviking.org
http://www.iviking.org/mailman/listinfo/fx.php_list
More information about the FX.php_List
mailing list