Displaying blog entries with identical google maps -


you can see problem here:link deleted can not display full text of posts on front page because maps conflict.

these expanded posts right displaying collapse on front page

link deleted

link deleted

as display them expanded maps overlap changing map name variable in code not solve problem, neither changing name of display maps (right same tried that)

question: realize when display 2 maps on same page there 2 "iniktialize" functions. 2 pages have identical java script function names. how deal these ?

i realize when display 2 maps on same page there 2 "iniktialize" functions. 2 pages have identical java script function names. how deal these ?

you can't have multiple functions same name (the browser pick 1 version , it, different browsers might pick different versions). either give them different names, or if same thing different data, use parameters passed in give unique behavior.


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -