Hello
I need to show post contents beside the map after users click on the post title/link.
I already got the post title with the post link inside the infowindow and I created an AJAX function to load the post contents.
My problem is that I cannot trigger the click on the link because the A DOM element is created after map pin is clicked.
I can post the load of my AJAX function after a pin is clicked, but I don’t know how to trigger this event as well.

Can you help me please?
Thank you.

Public
Hello,
Please email me at support@flippercode.com - page url and wp login so I can check it and give you fix of this problem. If you can send us FTP as well, it'll be quick turnaround.
Thanks
#1
Public
The URL for the login is:
http://flywayfriends.birdlife.org/admfriends/
You should receive an email from WP.
#2
Public
Hello,
We have not received your email yet.
Thanks
#3
Public
Username is your email.
Password is: (cv2GFXpzjB*pdNejjcRIp$Z
#4
Public
Hello,
Please send us your wp admin site URL because in your site http://flywayfriends.birdlife.org/wp-admin is not working at my end. Please send us proper details so we can work on it.
Thanks
#5
Public
Please check the previous comments above, there are all the information you need.
Please I need it as soon as possible, it's really urgent.

Thx
#6
Public
http://flywayfriends.birdlife.org/admfriends/
#7
Public
Hello,
Yes, Now this URL is working http://flywayfriends.birdlife.org/admfriends/ at our end. Previously it was not working. We are looking on it and back to you very soon.

Thanks
#8
Public
Hello Sir, I couldn't find where is your ajax code so please give more instruction how exactly you're developing it. To register events for links in infowindow message, you should use .on jquery method to register the event. You can read about .on method here - http://api.jquery.com/on/ I hope it helps you.

Thanks
#9
Public
I think we are losing time.
I already told you from the begin of this conversation.

To register an event it needs to know the exact DOM element. Since the tooltip is created and insert in the DOM AFTER THE CLICK on the pin, jQuery cannot attach the trigger of the event to the DOM element for the simply reason that at moment that JS code is loaded the DOM element IS NOT IN THE DOM|

So I need to know how to trigger it, if you provide a function or some other JS that I can use to trigger.

Hope now it's clear, I don't know other ways to do it...
#10
Public
the AJAX function is in the JS loaded by the page:
https://flywayfriends.birdlife.org/wp-content/themes/birdlife-child/custom.js
#11
Public
ok got it:
$('body').on('click', '.post-link', function (e) {}
thx
#12

This question is now closed