70 pts.
 Using the selectedIndex value in VBscript
I'm calling a function through <select onChange="funcname()"><option>. inside that function I got the selectedIndex value, but when I used that value as an index to get an array item which is declared in the <head> section and filled in the <body> I failed it always gets nothing.Does any one know why?

Software/Hardware used:
ASKED: January 7, 2009  5:25 AM
UPDATED: January 29, 2009  5:43 AM

Answer Wiki:
This Question was answered on Jan 27 2009 7:26 PM GMT by Ledlincoln. The answer was given on a a VScript code using elements mentioned here. So a very good and simple answer was given thanks to Ledlincoln
Last Wiki Answer Submitted:  January 28, 2009  6:12 am  by  Sief   70 pts.
All Answer Wiki Contributors:  Sief   70 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

I suspect that the scope of your array is limited to the <head> section, and it is invisible/nonexistent in the <body>. On a larger issue, I would suggest that you consider moving to JavaScript, rather than wasting your time learning a much weaker language that works in only one browser. At this point, your script would not have to be altered a great deal to be ported to JS.

 1,620 pts.

 

Thanks for the concern you show here, as a matter of fact I’m strongly considering to use JaveScript or use it altogther with VBScript, in the following days I will be looking for some updated refrences, In the mean time my concern is to be able of designing dynamic web pages, again thanks for your cooperation.

 70 pts.