I'm having a bit of trouble getting some JavaScript working with CFMAP. I
currently use a link to center the map and zoom in on a specific location;
this code works fine:
Zoom
Due to the number of locations on the map, I want to provide users with a
way of selecting a location from a dropdown l
I'm going to guess the problem is that the js is seeing your object as a
string.
I *think* this would work. Can't say for sure without testing it. I can
never remember weather you can use this.value with a select and have it
work. You may need to change it
to this.options[this.selectedIndex].value
>
> > I can never remember weather
>
Errr... whether. It's still early.
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive:
h
Thanks Michael, that got me a LOT closer...I just needed to add an eval() to
your code:
onChange="ColdFusion.Map.setCenter('map1',
{latitude:eval(this.value.split('|')[0]),longitude:eval(this.value.split('|')[1])});ColdFusion.Map.setZoomLevel('map1',10);"
Thanks for the help,
Pete
On Tue, Jul
s'Awsome.
On Tue, Jul 6, 2010 at 8:30 AM, Pete Ruckelshaus wrote:
>
> Thanks Michael, that got me a LOT closer...I just needed to add an eval()
> to
> your code:
>
> onChange="ColdFusion.Map.setCenter('map1',
>
> {latitude:eval(this.value.split('|')[0]),longitude:eval(this.value.split('|')[1])})
5 matches
Mail list logo