G
GaryDean
below is the html of two dropdownlists as they are rendered. The first was
created with Postback = false and I added the
onchange="myFunction('DropDownList1,'') in code. I made this look very much
like the asp generated onchange attribute in the second dropdown where
postback was set as true.
In the standard DropDownList2 the second argument is called eventArgument.
although the call to __doPostBack has it as ' ' there must be something that
gets passed in it because it has a value when it gets to the javascript
__doPostback function. I figured that maybe the code in the DropDwonList
object is putting the necessary data into that argument somehow.
I have attempted to simulate that with dropdown1 but the second argument is
indeed blank when it gets to the myFuction argument.
So, the questions is: how does the eventargument data get into the second
argument in the case of DropDownList2?? I hope to make it do the same thing
when going to my javascript function.
<select name="DropDownList1" id="DropDownList1"
onchange="myFunction('DropDownList1','')" style="width:128px;Z-INDEX: 101;
LEFT: 80px; POSITION: absolute; TOP: 32px">
<option value="1">one</option>
<option value="2">two</option>
<option value="3">three</option>
</select>
<select name="DropDownList2" onchange="__doPostBack('DropDownList2','')"
language="javascript" id="DropDownList2" style="width:120px;Z-INDEX: 102;
LEFT: 296px; POSITION: absolute; TOP: 32px">
<option value="three3">three3</option>
<option value="4">four</option>
<option value="5">five</option>
created with Postback = false and I added the
onchange="myFunction('DropDownList1,'') in code. I made this look very much
like the asp generated onchange attribute in the second dropdown where
postback was set as true.
In the standard DropDownList2 the second argument is called eventArgument.
although the call to __doPostBack has it as ' ' there must be something that
gets passed in it because it has a value when it gets to the javascript
__doPostback function. I figured that maybe the code in the DropDwonList
object is putting the necessary data into that argument somehow.
I have attempted to simulate that with dropdown1 but the second argument is
indeed blank when it gets to the myFuction argument.
So, the questions is: how does the eventargument data get into the second
argument in the case of DropDownList2?? I hope to make it do the same thing
when going to my javascript function.
<select name="DropDownList1" id="DropDownList1"
onchange="myFunction('DropDownList1','')" style="width:128px;Z-INDEX: 101;
LEFT: 80px; POSITION: absolute; TOP: 32px">
<option value="1">one</option>
<option value="2">two</option>
<option value="3">three</option>
</select>
<select name="DropDownList2" onchange="__doPostBack('DropDownList2','')"
language="javascript" id="DropDownList2" style="width:120px;Z-INDEX: 102;
LEFT: 296px; POSITION: absolute; TOP: 32px">
<option value="three3">three3</option>
<option value="4">four</option>
<option value="5">five</option>