HTML/Java script question

New Topic
This topic has been archived, and won't accept reply postings.
 lone 23 Feb 2015

Hi

I'm trying to put a href link into a line of code:

var pos = new OpenSpace.MapPoint(295400,197000);var marker = osMap.createMarker(pos, null,"Wild Winter Elenydd Day 1Saturday 21st February 2015");markers.addMarker(marker);

When you click on the marker on the map a box appears with the text inside it as shown above ("Wild Winter Elenydd Day 1Saturday 21st February 2015") the link would need to appear in that box that opens so you can click it and go to the location in the link

Any idea's ?

Many thanks

Jason
Post edited at 15:01
KevinD 23 Feb 2015
In reply to lone:

Depends how OS have built it, rather than general JS or html, but from a quick scan of their documents.
Replace

with
<a href="YOURURL">"Wild Winter Elenydd Day 1<br>Saturday 21st February 2015<br></a>
 Scomuir 23 Feb 2015
In reply to lone:

What dissonance said - replace your text "Wild Winter Elenydd Day 1Saturday 21st February 2015" with HTML.

New Topic
This topic has been archived, and won't accept reply postings.
Loading Notifications...