Re: 2 forms, same page, 1st is file upload - works in IE, 'dies' in non-IE browsers
| From: | Ross McKay | Date: | Thu, 19 Mar 2009 23:25:44 +0000 |
| Subject: | Re: 2 forms, same page, 1st is file upload - works in IE, 'dies' in non-IE browsers | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-290323@lists.php.net to get a copy of this message | ||
On Thu, 19 Mar 2009 16:27:38 -0600, scubak1w1 wrote:
>I have it set in a <div> tag and use AJAX...
>
>When it is 'off' (i..e, when the page first opens) it is simply a grayed out
>image with a 'tool tip' to indicate it is not functional...
>
>Once the array key exists for the first form, I have (sic) AJAX change the
>connets of the <div> to make it a 'true' submit button...
Sounds like you have some browser-specific DOM code there when adding
the submit button. Can we see the code please?
A simpler approach could be to have the submit button there all along,
but disable it (attribute: disabled="disabled") until you have your
array key (script: submitElement.disabled = false). No chance of
bollocksing up the DOM code then :)
--
Ross McKay, Toronto, NSW Australia
"Let the laddie play wi the knife - he'll learn"
- The Wee Book of Calvin