Closed adrian-cerdeira closed 4 years ago
Well no idea?
Nevermind was a mistake by myself. a-Tag was just false set:
"location": "<a class='location-festival' data-iframe='true' data-src='" + locationUrl + "'" + ">" + location + "</a>",
Hello Guys
My question / problem is: Is possible to make the iframe link:
<a id="idNamel" data-iframe="true" data-src="url" lg-event-uid="&1" lg-uid="lg0">Gampel Bratsch</a>
dynamic in an JavaScript-Function? For the beginning I have this code, but it doesnt work:
function createLinkElement(textTitle, googleMapLink) { var linkElement = document.createElement("a"); linkElement.appendChild(document.createTextNode(textTitle)); linkElement.className = "location-festival"; linkElement.setAttribute("data-iframe", "true"); linkElement.setAttribute("data-src", googleMapLink); linkElement.setAttribute("lg-event-uid", "&1"); linkElement.setAttribute("lg-uid", "lg0"); return linkElement; }
Thanks for an answer.