Problem with HTML Template ComboBox

Q&A about the latest versions
Post Reply
JRibeiro
Posts: 5
Joined: Sun Feb 09, 2014 9:47 pm

Hi,

When trying to add a ComboBox in the HTML Template a 0 (zero) appears inside the ComboBox in last position:

Image

The code is:

Code: Select all

	var mtype=new Array();
	mtype["TERRAIN"]="TERRAIN";
	mtype["ROADMAP"]="ROADMAP";
	mtype["SATELLITE"]="SATELLITE";
	mtype["HYBRID"]="HYBRID";	
	form.addComboBox("maptype","Map Type",mtype);
I'm following the threads on https://ggnome.com/wiki/HTML_Template and maybe I've just missed something.

Anyways the Template is working well, but don't know why this zero appears. Any idea??

If someone like it too and want to use it, just use it! This is for the HTML5 Output. :wink:

Please, see the attachment.

Regards,

Jonatas
Attachments
ComboBox.ggt
ComboBox Template for HTML5 Output
(18.14 KiB) Downloaded 201 times
Jonatas Ribeiro
Post Reply