Well, this is only a sample of our page.
We have lots of buttons that call popups that need
different actions and targets, so onSubmit does not work because
we are not submitting the opening page. The popups are "tools" for the page.
And the readonly attribute is in its proper place. We do not want
the user to be able to edit the field. For instance, the popup
called for an Image will display all images in the system. The user
will pick the image and the image ID will be placed in a hidden input
type and the image text will be placed in the text field.
-----Original Message-----
From: Sivan Mozes [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 30, 2001 1:43 PM
To: Mac Internet Explorer Talk
Subject: Re: Strange .action error on IE 5.0
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/>
To unsubscribe send mail to [EMAIL PROTECTED]
To search the archives:
<http://www.mail-archive.com/macie-talk%40lists.boingo.com/>