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

Dynamically change smarty include file

 
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
suncrew
Smarty Rookie


Joined: 30 Aug 2013
Posts: 5

PostPosted: Fri Sep 27, 2013 9:12 am    Post subject: Dynamically change smarty include file Reply with quote

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
View user's profile Send private message
IT_Services
Smarty Rookie


Joined: 30 Sep 2013
Posts: 9

PostPosted: Mon Sep 30, 2013 9:59 am    Post subject: Reply with quote

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
View user's profile Send private message
suncrew
Smarty Rookie


Joined: 30 Aug 2013
Posts: 5

PostPosted: Fri Oct 11, 2013 3:43 pm    Post subject: Reply with quote

Thanks for the answer. Please, can you show me a simple code, that I use it?
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