CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 a very simple startup problem

Print topic Send  topic

Author Message
sksinghddn

Posts: 11
Posted: 12/01/2007, 11:43 PM

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. i am using php 4/5 with templates.

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
aondecker

Posts: 58
Posted: 12/04/2007, 6:00 AM

Quote sksinghddn:
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. i am using php 4/5 with templates.

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.


if you want to do it on the client-side, add a span tag around your label and have javascript change it on the button onclick event.

your onclick code would look like this then

document.getElementById("SPANNAME").innerHTML = "Button Pressed";

If you wanted to do it on the server side, you can use the code:

$FORMNAME->COMPONENT->SetValue("Button Pressed");
View profile  Send private message
sksinghddn

Posts: 11
Posted: 12/05/2007, 2:27 AM

dear friend,
thanks for a quick reply.

as per your instructions 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.