wlj_sh
asked on
how can asp load vbscript variable
<script language="VBScript" type="text/VBScript">
sub changdishes()
Dim dishes,Fdishes,t,ss
t=""
dishes=Array("pop","dd","s port")
Fdishes=Array("italy","vit am","franc e","german ")
if Document.form1.R_Dishes_Ty pe.value=0 then
for i=0 to ubound(dishes,1)
t=t&"<option>"&dishes(i)&" </option>"
next
msgbox(t)
else
t=Fdishes
end if
end sub
</script>
<input type=button onclick="changedishes">
<select name="dishes" >
t //is here
i want click button load vbscript,and then get result "t ",i want to put Result "t" to my select compnent,how can i
sub changdishes()
Dim dishes,Fdishes,t,ss
t=""
dishes=Array("pop","dd","s
Fdishes=Array("italy","vit
if Document.form1.R_Dishes_Ty
for i=0 to ubound(dishes,1)
t=t&"<option>"&dishes(i)&"
next
msgbox(t)
else
t=Fdishes
end if
end sub
</script>
<input type=button onclick="changedishes">
<select name="dishes" >
t //is here
i want click button load vbscript,and then get result "t ",i want to put Result "t" to my select compnent,how can i
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It's great useful