mike2
|
Posted: 12/01/2004, 6:47 AM |
|
hello,
i try it again..
i need to insert/update my edtable grid if the user changes some values in the form fields/controls...a simple document.submit.form or something similar is not enough..this makes no event to the grid just a submit......CCS generates a editable grid with a submit button with an server event/comamnd...
How can i get this action/event to run Onchange!
thanks
kurt
|
|
|
peterr
Posts: 5971
|
Posted: 12/01/2004, 1:11 PM |
|
Have you considered using JavaScript?
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
mike2
|
Posted: 12/02/2004, 12:51 AM |
|
javascript?
do you mean....onchange="javascript:submit.form"
kurt
Quote peterr:
Have you considered using JavaScript?
|
|
|
peterr
Posts: 5971
|
Posted: 12/02/2004, 1:13 AM |
|
Possibly. I don't know the exact code, but I think that you should use JavaScript because usually only JavaScript (or generally client code) can be executed when "user changes some values in the form fields/controls". The JavaScript OnChange event sounds right for this.
If you need specific code sample then you can probably find it on the net: http://www.google.com/search?hl=en&lr=&q=javascript+onchange+submit
Also, I didn't understand your comments about document.submit.form not being enough, and about no event being made.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
mike2
|
Posted: 12/02/2004, 1:52 AM |
|
hi peterr,
alex from CCS support had a solution for me!!
its like:
*************************
supportsupport_text.Attributes.Add("onchange", "javascript:supportRepeater__ctl2_supportButton_Submit.click()")
**********************************
thanks also!!
but now i must find a way to add a submit button in each row of a repeater!! is this possible with CCS?
kurt
Quote peterr:
Possibly. I don't know the exact code, but I think that you should use JavaScript because usually only JavaScript (or generally client code) can be executed when "user changes some values in the form fields/controls". The JavaScript OnChange event sounds right for this.
If you need specific code sample then you can probably find it on the net: http://www.google.com/search?hl=en&lr=&q=javascript+onchange+submit
Also, I didn't understand your comments about document.submit.form not being enough, and about no event being made.
|
|
|
|