954,600 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Javascript to create dynamic drop down list

hi, i am currently working on aptana studio nokia wrt plugin to develop a mobile widget where i need to retrieve data from database.

i've created a java servlet in eclipse to connect and execute query to the ms sql server 2005 database.

in aptana, i am using js file and html file, i'm able to connect to the servlet to retrieve and process the data (split the data) into an array and display the retrieved value (array) on screen. but now i need to put the retrieved value (array) into a drop down list for selection, how could i do that?

for the drop down list, i cannot define the list, it need to be able to read from the servlet as the database is updated, it need to reflect.

sorry if my question s unclear, but i urgently need help.

Millions thanks in advance =)

leesyy
Newbie Poster
5 posts since Oct 2009
Reputation Points: 10
Solved Threads: 0
 
Troy III
Practically a Master Poster
609 posts since Jun 2008
Reputation Points: 120
Solved Threads: 80
 

the thread link provided is similar to what i need, but i cannot define the drop-down list in html...i need to define it in a js file.
And i've just found out that i'm using the wrtkit provided in aptana studio nokia wrt plugin...and i've found a selectionMenu and selectionList...but does'nt know how to implement it into the .js file.

thanks for all the replies earlier
=)

leesyy
Newbie Poster
5 posts since Oct 2009
Reputation Points: 10
Solved Threads: 0
 

the problem I have met;you can resolve it by using JSTL

jasstion
Newbie Poster
1 post since Oct 2009
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You