CodeCharge Studio
search Register Login  

Visual PHP Web Development

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 label change problem

Print topic Send  topic

Author Message
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.
View profile  Send private message
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
View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


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

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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