[Chameleon] "Quickzoom"...

Delfos, Jacob jacob.delfos at maunsell.com
Mon Apr 24 03:24:44 EDT 2006


Jojin,
 
In that case, you can just use an ordinary combobox (drop-down box). Use the 'onChange' functionality to invoke a function when a value is selected. That function can then load a particular URL into the page (or into a frame or iframe) that is associated with that entry.
 
e.g. 
<select name='pageselector' onChange="loadPage();">
<option value='http://www.mychameleonapps.com/Quezonhall.html'>Quezon Hall
<option value='http://www.mychameleonapps.com/somewhereelse.html'>somewhere else
</select>
 
function loadPage()
{
location.href=document.forms[0].pageselector.options[document.forms[0].pageselector.selectedIndex].value;
}
 
To load it into a frame (which may be cleaner) means you put "window.someframe." before "location.href". Please note this code is untested, but the principle should hopefully work.
 
Hope this helps,
 
Jacob


________________________________

	From: chameleon-bounces at lists.maptools.org [mailto:chameleon-bounces at lists.maptools.org] On Behalf Of JR Santillan
	Sent: 21 April 2006 19:21
	To: Chameleon
	Subject: [Chameleon] "Quickzoom"...
	
	
	hi everyone.
	 
	is it possible that a "quickzoom" entry have a unique http address?
	 
	for example, one entry in my application is "Quezon Hall". As expected, when this entry is selected, the mapping window will display the "Quezon Hall" polygon. Can this "mapping window" have a unique http address like http://www.mychameleonapps.com/QuezonHall.htm or something like that?
	 
	thanks.
	 
	jojin
	 

	
________________________________

	Blab-away for as little as 1¢/min. Make PC-to-Phone Calls <http://us.rd.yahoo.com/mail_us/taglines/postman2/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com>  using Yahoo! Messenger with Voice.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060424/3eb80798/attachment.html


More information about the Chameleon mailing list