Hi,
I got a weird problem,that i'd be really grateful for some help, i am using a textfield and need to have 2 links in my html data
|
Quellcode
|
1
2
3
|
<data name="intro_text">
<p>Explore the house to find out more about what we do at <a href="http://www.website.co.uk" target='_blank'> website </a> and our See the <a href="event:action(shs-link);">other website</a></p>
</data>
|
An ordinary hyperlink will not work, so am looking for other ways. I know I can set onclick openurl on the textfield plugin, but I cant in this case because i have 2 links, and I really dont want to split the text into 4 textfields just to make 2 links to other html webpages, but afriad that is my only option left.
SO far i have tried
|
Quellcode
|
1
2
3
4
5
|
<a href="event:action(shs-link);">website</a>
<action name="shs-link">
openurl(http://www.mywebsite.org.uk,_blank);
</action>
|
as well as using a js function linked to my html page to open it
|
Quellcode
|
1
2
3
|
<action name="shs-link">
js( dontate() );
</action>
|
have also tried this
|
Quellcode
|
1
|
<a href="event:openurl(http://www.website.org.uk,_blank);">website</a>
|
and this
|
Quellcode
|
1
|
<a href="htnl:http://www.website.co.uk">website</a>
|
and many other ways. Any ideas how i can use an onclick event on the links in html data I have searched the forum also and cant find an answer.
Any advice, very appreciated
best wishes,
tom