CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Adding javascript ...

Print topic Send  topic

Author Message
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?

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.