CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> Archive -> GotoCode Archive

 javascript alert on listbox change

Print topic Send  topic

Author Message
rbaldwin
Posted: 11/05/2003, 9:55 AM

i want to do a simple javascript alert when the value in a listbox changes.

i'm using CCS current rel.

i added a Client OnChange event to the listbox control, however when i change the value in the listbox i get no alert? Any suggestions.

My alert code along with the generated code is:
//page_webRFP_ListBox1_OnChange @560-22A89556
function page_webRFP_ListBox1_OnChange()
{
var result;
//End page_webRFP_ListBox1_OnChange

//Custom Code @561-2A29BDB7
// -------------------------
// Write your own code here.
// -------------------------
alert("some code to limit the list of clients to specific starting letters")
//End Custom Code

//Close page_webRFP_ListBox1_OnChange @560-BC33A33A
return result;
}
navneet (aquananu)
Posted: 11/06/2003, 1:19 PM

i hope u r writing the above function as a client side action.

so u have to in the properties window of the listbox choose FORMAT and then expand events and in ONPROPERTYCHANGE - type

page_webRFP_ListBox1_OnChange();


and now switch to html and insert the below script

<script language="JavaScript">
//page_webRFP_ListBox1_OnChange @560-22A89556
function page_webRFP_ListBox1_OnChange()
{
var result;
//End page_webRFP_ListBox1_OnChange

//Custom Code @561-2A29BDB7
// -------------------------
// Write your own code here.
// -------------------------
alert("some code to limit the list of clients to specific starting letters");
//End Custom Code

//Close page_webRFP_ListBox1_OnChange @560-BC33A33A
return result;
}

<script>

******************************************************
there u go

   


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

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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