-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Usually if there's any error in javascript, it just gives up and does
nothing unless you specifically watch for the error (try/catch). If
function xxxx doesn't exist, that's the behavior I would expect, even in
IE. Maybe MS has done something else to make IE different from every
other browser in the known universe.
Pete Hall
pbhall@xxxxxxxxxxxxx
Larry Kleinman wrote:
| I think that the problem is related to the code in the body - that the Mac
| does not even try to run the SubmitForm function. When I change
SubmitForm
| to xxxx as below, IE gives an error ("cant find xxxx) but the Mac
still does
| nothing
|
| <script language="javascript">
|> xxxx('
https://payflowlink.paypal.com')
|> </script>
|
|
| Larry Kleinman
| Kleinman Associates, Inc.
| 212-949-6469
| 203-255-4100
|
|
|
| "Alfredo Delgado"
| <adelgado@lairdpl
| astics.com>
To
| Sent by: "Web Enabling the AS400 /
iSeries"
| web400-bounces@mi <web400@xxxxxxxxxxxx>
| drange.com
cc
|
|
Subject
| 06/12/2008 06:41 Re: [WEB400] javascript in IE
or Mac
| PM
|
|
| Please respond to
| Web Enabling the
| AS400 / iSeries
| <web400@midrange.
| com>
|
|
|
|
|
|
| Maybe what you want is:
|
| document.forms( "S1" ).action = Action;
| document.forms( "S1" ).submit( );
|
| On Thu, Jun 12, 2008 at 6:19 PM, Larry Kleinman <larry@xxxxxxxxxxxxxxxxx>
| wrote:
|
|> I have a javascript function that allows me to submit a form. Here
is the
|> code:
|>
|> <script language=JavaScript>
|> function SubmitForm(Action) {
|> document.S1.action = Action;
|> document.S1.submit ();
|> }
|> </script>
|>
|>
|> It is called from with a form with the following code:
|>
|> <script language="javascript">
|> SubmitForm('
https://payflowlink.paypal.com')
|> </script>
|>
|>
|> This runs fine in IE - the form data is submitted to the URL
specified in
|> the SubmitForm function.
|> When this runs in Firefox on a Mac, nothing happens (no error, but no
|> submit).
|>
|> Anybody have an idea as to why? My guess is that I don't know
javascript
|> too well and am doing something wrong that IE forgives but Firefox does
|> not.
|>
|>
|> Larry Kleinman
|> Kleinman Associates, Inc.
|> 212-949-6469
|> 203-255-4100
|> --
|> This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
|> To post a message email: WEB400@xxxxxxxxxxxx
|> To subscribe, unsubscribe, or change list options,
|> visit:
http://lists.midrange.com/mailman/listinfo/web400
|> or email: WEB400-request@xxxxxxxxxxxx
|> Before posting, please take a moment to review the archives
|> at
http://archive.midrange.com/web400.
|>
|>
|
|
| --
| Alfredo Delgado / Web Development
| 6800 Broken Sound Pkwy; Suite 150
| Boca Raton, Florida 33487
| T: (561) 443-9152
| C: (561) 350-4143
| F: (561) 443-9108
| --
| This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
| To post a message email: WEB400@xxxxxxxxxxxx
| To subscribe, unsubscribe, or change list options,
| visit:
http://lists.midrange.com/mailman/listinfo/web400
| or email: WEB400-request@xxxxxxxxxxxx
| Before posting, please take a moment to review the archives
| at
http://archive.midrange.com/web400.
|
|
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org
iEYEARECAAYFAkhTL1sACgkQpcZsDl8OX6kSlQCbBfejXsHfOcd9H6LBsnBZQYex
MEcAn3whYhEVBgM6fa987dvcLIc6ktU5
=/z7B
-----END PGP SIGNATURE-----
As an Amazon Associate we earn from qualifying purchases.