htmlText not supporting target in <a href="xxx">?

Ton Kuypers tkuypers at publishingtools4u.com
Tue Jun 21 02:25:03 EDT 2016


No, it is not the code, it is just the htmlText command stripping out the “target” part of the html  text…
It just disappears when you use it


Met vriendelijke groeten,
Warm Regards,



Ton Kuypers
+32 (0) 477 739 530

Steenweg op Leopoldsburg 100 • B-2490 • Balen • Belgium
www.publishingtools4u.com





> On 21 jun. 2016, at 07:10, Mike Bonner [via Runtime Revolution] <ml-node+s278305n4706008h73 at n4.nabble.com> wrote:
> 
> You'd have to code a method to do what you want using linkclicked. When a 
> text link in a field is clicked it fires a linkclicked message with one 
> parameter that contains the link text. If you want to place the contents of 
> the url into a different field, something like this in the field handler. 
> 
> on linkclicked pUrl 
>      put url pUrl into field "destinationField" 
> end linkclicked 
> 
> If I remember right, you must have the text of the field locked for this to 
> work. 
> 
> On Mon, Jun 20, 2016 at 8:28 AM, Klaus major-k <[hidden email] <x-msg://17/user/SendEmail.jtp?type=node&node=4706008&i=0>> wrote: 
> 
> > After reading this a second time, it looks I have misunderstood the actual 
> > problem, sorry... 
> > 
> > > Am 20.06.2016 um 15:41 schrieb Klaus major-k <[hidden email] <x-msg://17/user/SendEmail.jtp?type=node&node=4706008&i=1>>: 
> > > 
> > > Dag Ton, 
> > > 
> > >> Am 20.06.2016 um 15:22 schrieb [hidden email] <x-msg://17/user/SendEmail.jtp?type=node&node=4706008&i=2> < 
> > [hidden email] <x-msg://17/user/SendEmail.jtp?type=node&node=4706008&i=3>>: 
> > >> 
> > >> Is this a bug or am I missing something? 
> > >> 
> > >> I pasted the following URL into a field: 
> > >> 
> > >> <p>click <a href=" 
> > http://www.malamix.be/ClientData/88/234/35691/1313/1/Flyer%20Malamix%20Food%20Nederlands.pdf <http://www.malamix.be/ClientData/88/234/35691/1313/1/Flyer%20Malamix%20Food%20Nederlands.pdf>
> > < 
> > http://www.malamix.be/ClientData/88/234/35691/1313/1/Flyer%20Malamix%20Food%20Nederlands.pdf <http://www.malamix.be/ClientData/88/234/35691/1313/1/Flyer%20Malamix%20Food%20Nederlands.pdf>>”>here</a> 
> > for the full specs </p> 
> > >> 
> > >> Using a click on a button, I enter this into another textfield, where 
> > it shows as htmlText, so the link is invisible and the “here” is underlined 
> > and blue. 
> > >> 
> > >> (The field contains more info, which will be shown in a webshop which 
> > I’m filling with data.) 
> > >> 
> > >> 
> > >> Switching the field back and forward between html and the actual code 
> > works fine. 
> > >> But I need to show the link in a new window, so I add “ target=‘_blank’ 
> > “ after the link: 
> > >> <p>click <a href=" 
> > http://www.malamix.be/ClientData/88/234/35691/1313/1/Flyer%20Malamix%20Food%20Nederlands.pdf <http://www.malamix.be/ClientData/88/234/35691/1313/1/Flyer%20Malamix%20Food%20Nederlands.pdf>
> > < 
> > http://www.malamix.be/ClientData/88/234/35691/1313/1/Flyer%20Malamix%20Food%20Nederlands.pdf <http://www.malamix.be/ClientData/88/234/35691/1313/1/Flyer%20Malamix%20Food%20Nederlands.pdf>>” 
> > target=‘_blank'>here</a> for the full specs </p> 
> > >> 
> > >> And when I switch between the visual text and the html-code, the 
> > target-part is gone… 
> > >> 
> > >> I’m using LC 0.01, but the same result in 8.02 rc2. 
> > >> 
> > >> Bug or “hidden feature”? 
> > > 
> > > as far as I remember, and that goes back to MetaCard 2.0 :-), this has 
> > never been working 
> > > out of the box unless you add a "on linkclicked tLink..." handler to the 
> > fields script. 
> > > 
> > >> Met vriendelijke groeten, 
> > >> Warm Regards, 
> > >> 
> > >> 
> > >> 
> > >> Ton Kuypers 
> > >> +32 (0) 477 739 530 
> > >> 
> > >> Steenweg op Leopoldsburg 100 • B-2490 • Balen • Belgium 
> > >> www.publishingtools4u.com <http://www.publishingtools4u.com/ <http://www.publishingtools4u.com/>> 
> > > 
> > > Groetjes 
> > > 
> > > Klaus 
> > > 
> > > -- 
> > > Klaus Major 
> > > http://www.major-k.de <http://www.major-k.de/>
> > > [hidden email] <x-msg://17/user/SendEmail.jtp?type=node&node=4706008&i=4> 
> > > 
> > > 
> > > _______________________________________________ 
> > > use-livecode mailing list 
> > > [hidden email] <x-msg://17/user/SendEmail.jtp?type=node&node=4706008&i=5> 
> > > Please visit this url to subscribe, unsubscribe and manage your 
> > subscription preferences: 
> > > http://lists.runrev.com/mailman/listinfo/use-livecode <http://lists.runrev.com/mailman/listinfo/use-livecode>
> > 
> > -- 
> > Klaus Major 
> > http://www.major-k.de <http://www.major-k.de/>
> > [hidden email] <x-msg://17/user/SendEmail.jtp?type=node&node=4706008&i=6> 
> > 
> > 
> > _______________________________________________ 
> > use-livecode mailing list 
> > [hidden email] <x-msg://17/user/SendEmail.jtp?type=node&node=4706008&i=7> 
> > Please visit this url to subscribe, unsubscribe and manage your 
> > subscription preferences: 
> > http://lists.runrev.com/mailman/listinfo/use-livecode <http://lists.runrev.com/mailman/listinfo/use-livecode>
> >
> _______________________________________________ 
> use-livecode mailing list 
> [hidden email] <x-msg://17/user/SendEmail.jtp?type=node&node=4706008&i=8> 
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: 
> http://lists.runrev.com/mailman/listinfo/use-livecode <http://lists.runrev.com/mailman/listinfo/use-livecode> 
> 
> If you reply to this email, your message will be added to the discussion below:
> http://runtime-revolution.278305.n4.nabble.com/htmlText-not-supporting-target-in-a-href-xxx-tp4705966p4706008.html <http://runtime-revolution.278305.n4.nabble.com/htmlText-not-supporting-target-in-a-href-xxx-tp4705966p4706008.html>
> To start a new topic under Revolution - User, email ml-node+s278305n278306h11 at n4.nabble.com 
> To unsubscribe from Revolution - User, click here <http://runtime-revolution.278305.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=278306&code=dGt1eXBlcnNAcHVibGlzaGluZ3Rvb2xzNHUuY29tfDI3ODMwNnw1ODc5MTUzNzU=>.
> NAML <http://runtime-revolution.278305.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>


pt4u-3.jpg (9K) <http://runtime-revolution.278305.n4.nabble.com/attachment/4706011/0/pt4u-3.jpg>




--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/htmlText-not-supporting-target-in-a-href-xxx-tp4705966p4706011.html
Sent from the Revolution - User mailing list archive at Nabble.com.


More information about the use-livecode mailing list