CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 Adding OnClick client event.

Print topic Send  topic

Author Message
Terry Valladon
Posted: 07/23/2002, 5:02 PM

Being that OnClick is not a native client side event in CCS I went about
finding a way to add it, its very simple.
to add an onclick to a textbox for example locate the TextBox.xml in the
components directory and open it in a text editor.

You will see a block of code like this:

<Events>
<Event name="OnValidate" caption="On Validate" description="After
standard control's validation. Sample use: Add custom validation rules and
error messages."/>
<Event name="BeforeShow" caption="Before Show" description="Before
showing control. Sample use: Change control value."/>
<Event name="OnKeyPress" caption="On Key Press" type="Client"/>
<Event name="OnLoad" caption="On Load" type="Client"/>
<Event name="OnChange" caption="On Change" type="Client"/>
</Events>

Add this in the Events block:
<Event name="OnClick" caption="On Click" type="Client"/>

Restart CCS and now that control object will have an OnClick in the Events
tab.

This will work for the majority of controls.

Hope this helps anyone trying to add new events to CCS.

-Terry Valladon

Kevin A
Posted: 08/18/2002, 10:40 AM

This worked great... I have been begging CCS support for some client side
validation examples as without your fix there was no means to add an onblur
event that "WORKED".

If anyone has any examples of client side validation please post the
examples !! CCS support could use sooome help here......

"Terry Valladon" <tvalladon@eicn.com> wrote in message
news:ahkqrg$7eu$1@news.codecharge.com...
> Being that OnClick is not a native client side event in CCS I went about
> finding a way to add it, its very simple.
> to add an onclick to a textbox for example locate the TextBox.xml in the
> components directory and open it in a text editor.
>
> You will see a block of code like this:
>
> <Events>
> <Event name="OnValidate" caption="On Validate" description="After
> standard control's validation. Sample use: Add custom validation rules and
> error messages."/>
> <Event name="BeforeShow" caption="Before Show" description="Before
> showing control. Sample use: Change control value."/>
> <Event name="OnKeyPress" caption="On Key Press" type="Client"/>
> <Event name="OnLoad" caption="On Load" type="Client"/>
> <Event name="OnChange" caption="On Change" type="Client"/>
> </Events>
>
> Add this in the Events block:
> <Event name="OnClick" caption="On Click" type="Client"/>
>
> Restart CCS and now that control object will have an OnClick in the Events
> tab.
>
> This will work for the majority of controls.
>
> Hope this helps anyone trying to add new events to CCS.
>
> -Terry Valladon
>
>

Terry Valladon
Posted: 08/20/2002, 4:14 PM

Glad I could help.

I have added several diffrent JS triggers for diffrent controls as of now.
They all seem to work great and are very easy to do.

I am also working on a regexp engine for client side validation that will be
dynamic.

The question I have is would people like the validation to happen on blur of
the object or on submit of the form?

I curently have a very basic version working and hope to have a beta version
in the next week or so.

The problem I am running into is JS is not as complete as Perl when it comes
to regexp's.

-Terry Valladon


"Kevin A" <Group@acats.com> wrote in message
news:ajom70$ach$1@news.codecharge.com...
> This worked great... I have been begging CCS support for some client side
> validation examples as without your fix there was no means to add an
onblur
> event that "WORKED".
>
> If anyone has any examples of client side validation please post the
> examples !! CCS support could use sooome help here......

=-=-=-Clipped the rest-=-=-=


   


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

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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