|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
suncrew Smarty Rookie
Joined: 30 Aug 2013 Posts: 5
|
Posted: Fri Sep 27, 2013 9:12 am Post subject: Dynamically change smarty include file |
|
|
Hi.
I work on property website with SVG maps.
For now the maps are separeted in files.
I want when user select zone from dropdown menu to change map from right side of search form without reload page.
What is the best way to make it.
Thanks. |
|
Back to top |
|
IT_Services Smarty Rookie
Joined: 30 Sep 2013 Posts: 9
|
Posted: Mon Sep 30, 2013 9:59 am Post subject: |
|
|
Hi suncrew,
I would place the map within a container (div) and after selecting a new zone, replace the content with an ajax-script (easily done with jquery).
If you need to parse the map-file, you can return the result of $smarty->fetch()
Regards
Florian |
|
Back to top |
|
suncrew Smarty Rookie
Joined: 30 Aug 2013 Posts: 5
|
Posted: Fri Oct 11, 2013 3:43 pm Post subject: |
|
|
Thanks for the answer. Please, can you show me a simple code, that I use it? |
|
Back to top |
|
|
|
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
|