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
|
|
|
|