Title: AJAX Implementation
Last modified: March 22, 2022

---

# AJAX Implementation

 *  Resolved [Sigfred](https://wordpress.org/support/users/sigfred/)
 * (@sigfred)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/ajax-implementation-2/)
 * I’m trying to make a dynamic pages where I have AJAX already working but how 
   can I make the map execute via AJAX?

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Thread Starter [Sigfred](https://wordpress.org/support/users/sigfred/)
 * (@sigfred)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/ajax-implementation-2/#post-15483071)
 * kindly check what i’m working
 * [https://beta3.technodreamcenter.com/voyagesgauthier.com/voyage_cat/en-liberte/](https://beta3.technodreamcenter.com/voyagesgauthier.com/voyage_cat/en-liberte/)
 * I want to make the map dynamic via ajax. I’m using this code on my callback to
   replace the default map but it will just show white empty. Do you have idea how
   to solve this?
 * `$err_suc['map'] = do_shortcode( "[display-map id='5466']" );`
 *  [Carlos Moreira](https://wordpress.org/support/users/carlosmoreirapt/)
 * (@carlosmoreirapt)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/ajax-implementation-2/#post-15484020)
 * Hi [@sigfred](https://wordpress.org/support/users/sigfred/)
    Loading the map 
   with ajax won’t be so straight forward. Rendering the shortcode will only output
   the HTML, but you also need to make sure all necessary assets are loaded. If 
   the html code and the assets are loaded, you can trigger the map with the code`
   iMaps.init(false);` Greetings, Carlos
 *  Thread Starter [Sigfred](https://wordpress.org/support/users/sigfred/)
 * (@sigfred)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/ajax-implementation-2/#post-15485789)
 * The first load has no problem and it is loading the map and assets. But when 
   I try to change the map via ajax it will just display nothing. Is there a solution
   here or this is not possible?
 * kindly see, after loading map try to click any on “Amerique du Sud | Asie | |
   Europe | Oceanie
 * [https://beta3.technodreamcenter.com/voyagesgauthier.com/voyage_cat/en-liberte/](https://beta3.technodreamcenter.com/voyagesgauthier.com/voyage_cat/en-liberte/)
 *  [Carlos Moreira](https://wordpress.org/support/users/carlosmoreirapt/)
 * (@carlosmoreirapt)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/ajax-implementation-2/#post-15487949)
 * When the page first loads, it loads correctly the assets and data for the current
   map. When you change map, it would need to load also the data for the new map
   and the map file, which it doesn’t it just keeps the main assets and the data
   for the original map. Basically your ajax call is not running the wp_enqueue_script
   hooks to load that. I think it would be easier if you just place all maps already
   in hidden tabs.
 *  Thread Starter [Sigfred](https://wordpress.org/support/users/sigfred/)
 * (@sigfred)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/ajax-implementation-2/#post-15490229)
 * I understand but it really needs to be ajax because static is not an option in
   our case.
 * Kindly help me in this situation. Specify the scripts needed to make it work 
   via AJAX
 *  Thread Starter [Sigfred](https://wordpress.org/support/users/sigfred/)
 * (@sigfred)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/ajax-implementation-2/#post-15490368)
 * Thanks for helping. I had it figured it out. Not using AJAX anymore.
 *  Thread Starter [Sigfred](https://wordpress.org/support/users/sigfred/)
 * (@sigfred)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/ajax-implementation-2/#post-15490633)
 * Kindly check French Polynesia map. It seems it’s wrong
 *  [Carlos Moreira](https://wordpress.org/support/users/carlosmoreirapt/)
 * (@carlosmoreirapt)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/ajax-implementation-2/#post-15492390)
 * Hi [@sigfred](https://wordpress.org/support/users/sigfred/)
    Consider that the
   maps provided are in real scale and with French Polynesia islands being so small
   and so far apart, they will look small. Is that what you’re referring to or is
   there a different issue? This is how they are currently looking: [https://pasteboard.co/mNjNGLphWlQk.png](https://pasteboard.co/mNjNGLphWlQk.png)

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘AJAX Implementation’ is closed to new replies.

 * ![](https://ps.w.org/interactive-geo-maps/assets/icon-256x256.png?rev=3115060)
 * [MapGeo - Interactive Geo Maps](https://wordpress.org/plugins/interactive-geo-maps/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/interactive-geo-maps/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/interactive-geo-maps/)
 * [Active Topics](https://wordpress.org/support/plugin/interactive-geo-maps/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/interactive-geo-maps/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/interactive-geo-maps/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Carlos Moreira](https://wordpress.org/support/users/carlosmoreirapt/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/ajax-implementation-2/#post-15492390)
 * Status: resolved