sksinghddn
Posts: 11
|
| Posted: 12/04/2007, 1:21 AM |
|
dear friends,
sometime very simple problem becomes very complex. it happend to me. i am a new bie for ccs and going step by step tutorial.
now i want to test myself but was fail. i decieded to put a simple button and label on a web page. what i want is to change the value of label on clicking the button i.e.
printed on page with the help of label " button unpresed"
click the button
it should change the label to "button pressed"
please help me. it will clear many my doubts.
|
 |
 |
kevind
Posts: 251
|
| Posted: 12/05/2007, 4:38 AM |
|
can you give some code example or how you approached this ? is the button in a form?
what version of CCS?
to have the label change immediately, you'd need to use javascript. to have it change after submitting a form or selecting a link in a grid is not too hard, you just need to check the URL parameters passed to the page.
kd
_________________
thanks
Kevin
======================
CCS 3.2.x / ASP / MS Access /mySQL / PHP / jQuery / jQuery UI / jQuery Mobile
|
 |
 |
sksinghddn
Posts: 11
|
| Posted: 12/05/2007, 6:33 AM |
|
dear kevind,
thanks for reply. i am using codecharge studio 3.0.
i am carrying following steps but had no luck
1: placed label component on form (from forms toolbox)
2: placed button component on form (from forms toolbox)
3: click on button component to get button click event
4: clicked on event > + > custom code
5: typed $newpage1->label1->setval("button clicked")
viewed on live page. it displays correctly but does nothing.
ps: on typing $ it doesnot show the label component . shows only button1 and others.
thanks
|
 |
 |
|