henryrao
Posts: 9
|
| Posted: 03/16/2007, 12:27 AM |
|
Hi all:
is there anyone that added a button in a grid or a record,and link it with custom OnClick codes ( Server side )
i tried it ,but the custom OnClick function seems never be invoked..
please help....
appreciate for your any suggestion :)
|
 |
 |
wkempees
|
| Posted: 03/16/2007, 12:38 AM |
|
Be sure to use the Button from the Form Tools and not het HTML Tools!?
"henryrao" <henryrao@forum.codecharge> schreef in bericht
news:545fa54dc2bcef@news.codecharge.com...
> Hi all:
>
> is there anyone that added a button in a grid or a record,and link it with
> custom OnClick codes ( Server side )
>
> i tried it ,but the custom OnClick function seems never be invoked..
>
> please help....
>
> appreciate for your any suggestion :)
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
henryrao
Posts: 9
|
| Posted: 03/16/2007, 1:00 AM |
|
yes.i'm sure...
the page is submitted/refreshed after i clicked the button,but the function is not invoked..
it's work for you ?
to clarify : the button is in the grid/record ,i mean each row has this button....
|
 |
 |
Benjamin Krajmalnik
|
| Posted: 03/16/2007, 7:48 AM |
|
Have you places just an alert() statement in the onclick to see if it is
being executted?
If you are calling a function and there is a problem with it, it may appear
as if it is not being invoked.
"henryrao" <henryrao@forum.codecharge> wrote in message
news:545fa5cb157c10@news.codecharge.com...
> yes.i'm sure...
> the page is submitted/refreshed after i clicked the button,but the
> function is
> not invoked..
>
> it's work for you ?
>
> to clarify : the button is in the grid/record ,i mean each row has this
> button....
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
henryrao
Posts: 9
|
| Posted: 03/16/2007, 8:00 AM |
|
thanks Benjamin,but i link it to a server side funtion,not a js function.
i do add something in the funtion for debugging,actually,i added "exit;" in the function,but seems the page never go to it...
|
 |
 |
wkempees
|
| Posted: 03/16/2007, 10:42 AM |
|
You state you are using buttons in an editable grid.
That will only process the lines that ar either changed or added.
Your button will probably do nothing at the moment it is pressed.
I will have to experiment but it is friday night so....... later.
Walter
"henryrao" <henryrao@forum.codecharge> schreef in bericht
news:545fa54dc2bcef@news.codecharge.com...
> Hi all:
>
> is there anyone that added a button in a grid or a record,and link it with
> custom OnClick codes ( Server side )
>
> i tried it ,but the custom OnClick function seems never be invoked..
>
> please help....
>
> appreciate for your any suggestion :)
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
henryrao
Posts: 9
|
| Posted: 03/16/2007, 1:31 PM |
|
thanks wkempees.
looking forward to your results :)
|
 |
 |
Benjamin Krajmalnik
|
| Posted: 03/16/2007, 10:04 PM |
|
My apologies. I did not notice it was serverside.
One techniqe which I use to see if somethng is taking place is to use the
errors collection and post to it. That way I can see execution order, etc.
In your case, since you want to do something in the back end, have yo
considered usin some Ajax methodology?
"henryrao" <henryrao@forum.codecharge> wrote in message
news:545fabf11b4428@news.codecharge.com...
> thanks Benjamin,but link it to a server side funtion,not a js function....
> i do add something in the funtion for debugging,actually,i added "exit;"
> in the
> function,but seems the page never go to it...
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
henryrao
Posts: 9
|
| Posted: 03/17/2007, 6:05 AM |
|
thanks again.
yes,ajax is an alternative,let me give it a try.
btw,does CCS have some ajax structure by its own ?
|
 |
 |
username
Posts: 24
|
| Posted: 09/13/2007, 4:10 AM |
|
thanks
does any body has any example for ajax in CCS php
please give me example for ajax CCS php
amir.emai [at]yahoo.com
|
 |
 |
|