Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

maps not work in .tpl

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
terra
Smarty Rookie


Joined: 27 Jul 2011
Posts: 26

PostPosted: Wed Mar 05, 2014 7:52 pm    Post subject: maps not work in .tpl Reply with quote

hi,

I'm having to use google maps in the template, but not working

Quote:
<script>
$(function(){


window.onload = function(){
//Definir o centro do mapa [endereço + elm div]


initMap('{$i.add1}, {$i.add2}, MG','map');
//Adicionar marcadores [endereço + descricao html)
addMarker('{$i.add1},{$i.local}, MG','');

}
})
</script>


thanks for any help
Back to top
View user's profile Send private message
pvdb
Smarty Rookie


Joined: 07 Mar 2014
Posts: 6

PostPosted: Fri Mar 07, 2014 2:32 pm    Post subject: Reply with quote

Try whitespaces before and after "{" and "}"
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP