Add all countries to flag list

Set encoding (Must be changed to UTF-8 in future)
This commit is contained in:
YNH Webdev
2013-09-15 17:32:23 +02:00
parent 647beea245
commit 358fe04699
3 changed files with 7 additions and 10 deletions

File diff suppressed because one or more lines are too long

View File

@@ -27,7 +27,6 @@ feature
n4_container: WSF_FORM_ELEMENT_CONTROL [STRING]
n5_container: WSF_FORM_ELEMENT_CONTROL [STRING]
cats_container: WSF_FORM_ELEMENT_CONTROL [LIST [STRING]]
s: FLAG_AUTOCOMPLETION
do
Precursor
create form.make_form_control ("panel")
@@ -44,8 +43,7 @@ feature
n2_container.add_validator (create {WSF_DECIMAL_VALIDATOR}.make_decimal_validator ("Invalid Number"))
form.add_control (n2_container)
--Flag autocomplete
create s.make (<<["dz", "Algeria"], ["be", "Belgium"], ["ca", "Canada"], ["de", "Deutschland"], ["england", "England"], ["fi", "Finland"], ["gr", "Greece"], ["hu", "Hungary"]>>)
create autocompletion1.make_autocomplete ("autocompletion1", s)
create autocompletion1.make_autocomplete ("autocompletion1", create {FLAG_AUTOCOMPLETION}.make)
create n3_container.make_form_element ("Flag Autocomplete", autocompletion1)
form.add_control (n3_container)
--Contact autocomplete

View File

@@ -61,7 +61,7 @@ feature
control.handle_callback (control_name, event, event_parameter)
create states_changes.make
control.read_state_changes (states_changes)
response.put_header ({HTTP_STATUS_CODE}.ok, <<["Content-Type", "application/json"]>>)
response.put_header ({HTTP_STATUS_CODE}.ok, <<["Content-Type", "application/json; charset=ISO-8859-1"]>>)
response.put_string (states_changes.representation)
else
process
@@ -91,7 +91,7 @@ feature
data.append ("<script src=%"/widget.js%"></script>")
data.append ("</body></html>")
create page.make
page.put_header ({HTTP_STATUS_CODE}.ok, <<["Content-Type", "text/html"]>>)
page.put_header ({HTTP_STATUS_CODE}.ok, <<["Content-Type", "text/html; charset=ISO-8859-1"]>>)
page.set_body (data)
response.send (page)
end