NetTalk Central

Author Topic: NT8 OnClick in a Display field to link to a web page  (Read 2611 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
NT8 OnClick in a Display field to link to a web page
« on: April 08, 2014, 07:40:16 AM »
Hi,
The javascript Onclick check on the OnClick tab of a display field is allways disable then I cant do some like:

<a href="http://www.facebook.com/sharer" onclick="window.open(this.href, 'mywin',
'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;" >Share this</a>

This onclik command alow me to define the shape of the window and appears like a popup.

See image


[attachment deleted by admin]
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: NT8 OnClick in a Display field to link to a web page
« Reply #1 on: April 09, 2014, 01:21:24 AM »
in the "text" field of the Display field put;

'<a href="http://www.facebook.com/sharer" onclick="window.open(this.href, ''mywin'',
''left=20,top=20,width=500,height=500,toolbar=1,resizable=0''); return false;" >Share this</a>'


all on one line. Then tick on "Allow xHTML" (because clearly it contains html) and tick on "Allow Unsafe xHTML" because it contains javascript (ie the onclick).

cheers
Bruce

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: NT8 OnClick in a Display field to link to a web page
« Reply #2 on: April 09, 2014, 02:38:44 AM »
It works, thanks
-----------
Regards
Alberto