Using the selectedIndex value in VBscript

70 pts.
Tags:
onChange Event
passing an array to a function
SelectedIndex
VBScript
Web development
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?

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Ledlincoln
    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 pointsBadges:
    report
  • Sief
    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 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following