• 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

    Code
    <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

    Code
    <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

    Code
    <action name="shs-link">
    js( dontate() );
    	 </action>

    have also tried this

    Code
    <a href="event:openurl(http://www.website.org.uk,_blank);">website</a>

    and this

    Code
    <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 *thumbup*

    best wishes,

    tom

  • Hi,

    have you maybe set - children="false" - in the <plugin> definition of your textfield?
    this would explain that behavior, the links are in Flash internally children objects,
    and with children="false" they can't be clicked,

    best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!