Michael Hamlett
|
| Posted: 01/19/2005, 1:10 PM |
|
trying to code an OnClick event for a checkbox.
i see the onclick on the properties(format tab)
there is no onclick event on the events tab.
on the format tab on the line with the onclick what do i put here?
if i put the name of the on click function where do i put the code?
|
|
|
 |
aradi
Posts: 66
|
| Posted: 01/19/2005, 2:18 PM |
|
you can put the code(Function code) in the HTML page , in most cases between <head></head> tags .Put the name of the function in the properties (format tab) onClick as you did.
a good example follow this link http://docs.codecharge.com/studio/html/
|
 |
 |
aradi
Posts: 66
|
| Posted: 01/19/2005, 2:26 PM |
|
Sorry , look under Working with projects->Using Javascript/jscript
|
 |
 |
peterr
Posts: 5971
|
| Posted: 01/19/2005, 2:57 PM |
|
CodeCharge Studio has strong support for server-side events (JavaScript), however it doesn't support all client-side events, mostly only those that may be used by CCS validation functions. And actually all the JavaScript functions that you may find on the Internet would need to be placed directly within HTML as aradi pointed, without a need to use CCS events.
Thus it may be best if you modify the HTML code and insert your JavaScript functions there. Alternatively if your event code is short (one liner) then you could enter it in the properties (format tab) as you noticed. That will work the same as placing it within the HTML.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
|