Hi there,
That’s an interesting idea. I haven’t played with that at all. I’d assume you’d want to have a form with one button (plus maybe the Custom button) and then you could duplicate the first button however you like.
If you do put something like that together, we’d love to see what you put together.
Hi Matt
I’m asking on behalf of one of your customers and I’d rather not tell him that’s not possible. I already tried duplicating the button during the document ready event, however because the event listener bindings aren’t copied it doesn’t work. Can you at least point me in the right direction?
Kind regards
Well, what’s your main goal in populating these buttons via AJAX? Are you trying to customize the amounts via a query string? Help me understand the context a bit, there might be a more obvious way to make that happen.
Hi Matt,
The customer has a button at the top of the page which says donate; this works perfectly.
He also has a map with infowindows that pop up over the markers when you hover over them. The infowindows are not part of the DOM document, they’re created upon hover. We’ve tried copying the HTML code for the button and adding it into the infowindow, but I assume that you must be binding all your listeners when the document loads, and so these buttons do nothing when they’re clicked.
Is there some kind of function I could call after the infowindow is created that will initialize the button?
Thanks!