1

Based on "Using AJAX to Enable Client RPC Requests 1 " article I've created a list.

By using: self.response.out.write(simplejson.dumps(result_list)) I can read the result_list using <input id="result_list" type="text" value="" />

Help requested: How to convert the "result_list" into HTML Select List?

2 Answers2

0

loop over the values in the list and create a select tag.
http://www.w3schools.com/tags/tag_select.asp

aschmid00
  • 7,038
  • 2
  • 47
  • 66
  • That's correct. The problem is that the self.response.out.write(simplejson.dumps(result_list)) is showing up only in but does not show up as a list – user1743686 Oct 14 '12 at 19:31
0

The doc showing "Using AJAX to Enable Client RPC Requests" dates from 2008. Today we use jquery to create browser independant javascript clients using ajax / json. Here is a code snippet to add options: How do I add options to a DropDownList using jQuery?

Community
  • 1
  • 1
voscausa
  • 11,253
  • 2
  • 39
  • 67