Prema
|
| Posted: 03/31/2008, 11:17 PM |
|
Hi People !
We're needing to make changes to a login page.
We are wanting to use a graphic button and need to use javascript to
trigger the submit function.
When we insert the function into the HTML header Codecharge seems to
mutilate it. We've tried to make it work by transferring the script code
block in to the body of the page, but there's still something we're
missing. We are inserting the script using standard commented <script>
tags.
function submitform()
{
//alert('clicked');
loginform=document.getElementById('loginform');
loginform.submit();
}
We haven't noticed much noise on the group here about it -- has anyone
got any ideas please ?
Kind regards
Prema
|
|
|
 |
DonB
|
| Posted: 04/01/2008, 2:39 AM |
|
Why not change the button from
type='submit' value='Submit'
to
type='image' src='path/to/image.file'
and skip the javascript?
--
DonB
"Prema" <us@premapix.com> wrote in message
news:fssni9$4hf$1@news.codecharge.com...
> Hi People !
> We're needing to make changes to a login page.
> We are wanting to use a graphic button and need to use javascript to
> trigger the submit function.
>
> When we insert the function into the HTML header Codecharge seems to
> mutilate it. We've tried to make it work by transferring the script code
> block in to the body of the page, but there's still something we're
> missing. We are inserting the script using standard commented <script>
> tags.
>
> function submitform()
> {
> //alert('clicked');
> loginform=document.getElementById('loginform');
> loginform.submit();
> }
>
> We haven't noticed much noise on the group here about it -- has anyone got
> any ideas please ?
>
> Kind regards
> Prema
|
|
|
 |
Prema
|
| Posted: 04/03/2008, 11:58 AM |
|
Hi Don!
Thanks very much for the tip -- didn't realize this was valid.
That really does simplify it!
Sorry for the delay in responding -- we missed the response notification!
Again, much appreciated
Kind regards
Prema
> Why not change the button from
>
> type='submit' value='Submit'
>
> to
>
> type='image' src='path/to/image.file'
>
> and skip the javascript?
|
|
|
 |
|