Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Is there a way that i can use a onChange event like we normally specify within html <select> ta

  Asked By: Ciera Sexton         Date: Jul 30, 2007      Category: Sharepoint      Views: 467
 

I just want to know how to refer to a dropdown box which is created
through sharepoint using javascript. As i unserstood the box is
created something like this,

<SCRIPT>
fld = new ChoiceField(frm,"Category0","Category","");
fld.format = "Dropdown";
fld.fFillInChoice = true;
fld.AddChoice("Choice", "");
fld.AddChoice("Choice1", "");
fld.IMEMode="";
fld.BuildUI();
</SCRIPT>

Is there a way that i can use a onChange event like we normally
specify within html <select> tags? and if i want to refer this field,
how do i do that?

Tagged:                              

 

1 Answer Found

 
Answer #1       Answered By: Miranda Scott          Answered On: Jul 30, 2007       

i had the same prob a few days back.jus include a onchange=Display() in
your select statement.put in the necessary code in your Displaty()
function.when u choose an option the functions automatically called.

but your .cs file should have some code embedded in it.go thru
this link,it will help
msdn.microsoft.com/.../en-
us/spptsdk/html/CreateWPClientScript_SV01003713.asp

hope this solves your problem...

 


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].