quick guess: you have the value readonly outside the value attribute
field. I also don't see why won't you use onSubmit instead.
On Wednesday, May 30, 2001, at 07:57 AM, Busby, Brock wrote:
> We are using IE 5.0 on Mac.
>
> Below is the code for a very simple form. In the form, we call a popup
> by clicking on a button using the onClick method. The function then
> sets the action and target and .submits our form to the new popup.
>
> This works fine, except for one thing: if I click on any text, select
> list,
> or other form elements, the popup appears and we submit again.
> The strangest fact is that I can click on standard text and the popup
> appears! This does not happen on a PC and only on a Mac.
>
> We have determined that the problem exists when we change the .action
> within
> the function, but we are not sure if this is a bug or if there is a
> workaround.
>
> Any help or insights would be greatly appreciated.
>
> Thanks in advance,
> Brock Busby
>
> -------------------
>
> <HTML>
> <HEAD>
> <SCRIPT LANGUAGE="JavaScript">
> document.domain = "ziffdavis.com"; //this is required on our system
>
> function fnImgPopUp() {
> var win2 =
> window.open('','win2','width=650,height=650,scrollbars=yes,resizable=yes'
> );
>
> document.forms[0].action='/zd/cma/popup/image/1,,filter,00.html';
> document.forms[0].target='win2';
> document.forms[0].submit();
> }
> </SCRIPT>
> </HEAD>
> <BODY>
> <FORM action="/zd/cma/popup/image/1,,filter,00.html" method="post">
> Image <INPUT type="text" size="40" maxlength="100" value=""
> readonly> <INPUT type="button" value="Add/Edit"
> onClick="fnImgPopUp()">
> </FORM>
> </BODY>
> </HTML>
>
> To unsubscribe send mail to [EMAIL PROTECTED]
> To search the archives:
> <http://www.mail-archive.com/macie-talk%40lists.boingo.com/>
>
To unsubscribe send mail to [EMAIL PROTECTED]
To search the archives:
<http://www.mail-archive.com/macie-talk%40lists.boingo.com/>