Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

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

  Asked By: Ciera    Date: Jul 30    Category: Sharepoint    Views: 1051

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?

Share: 

 

1 Answer Found

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

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

 




Tagged: