[Xerte] Xerte3: Links in TextFields

Peter Huppertz peter.huppertz at baselgovernance.org
Wed Jun 9 13:38:34 BST 2010


I moved my text in the .x3o file to the text property and it is displayed correctly in the text box of the properties window. But it does not appear in the preview of my Xerte piece ...

Peter

On 07.06.2010, at 14:59, Julian Tenney wrote:

> To get the link event to fire, you need to specify the anchor as an
> event, like this:
> 
> <a href="event: http://www.nottingham.ac.uk">Click me</a>
> 
> Note the 'event:' preceding the rest of the path. Then you can handle
> the link event, and get at the link text through event.text. The event
> bubbles, so you can have one listener on a container handling all your
> links,
> 
> J
> 
> 
> 
> -----Original Message-----
> From: Tenney Julian 
> Sent: 07 June 2010 12:21
> To: 'Xerte discussion list'
> Subject: RE: [Xerte] Xerte3: Links in TextFields
> 
> OK, it's fixed now. Your old text fields will break! Under the hood the
> TextIcon stores the text on the text attribute, rather than the node
> itself, i.e. <TextIcon text="blah"/> rather than
> <TextIcon><![CDATA[blah]]></TextIcon>
> 
> I also fixed that thing with the properties panel disappearing if you
> resize the application window;
> 
> I added the icon type to the title of the properties panel, so you know
> what type of icon you are editing, and added it's icon too, and rebuilt
> everything.
> 
> I also updated the Xerte and Xerte Toolkits files, so everything on the
> web site is now up to date with the files in the .svn,
> 
> J
> 
> -----Original Message-----
> From: xerte-bounces at lists.nottingham.ac.uk
> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
> Sent: 07 June 2010 09:48
> To: Xerte discussion list
> Subject: RE: [Xerte] Xerte3: Links in TextFields
> 
> I know why and need to fix it: I am storing text as the xml node: I need
> to store it as an attribute, otherwise you can't add child nodes (i.e.
> the event handler) to the text icon,
> 
> Leave that with me...
> 
> -----Original Message-----
> From: xerte-bounces at lists.nottingham.ac.uk
> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Peter
> Huppertz
> Sent: 31 May 2010 09:55
> To: Xerte discussion list
> Subject: [Xerte] Xerte3: Links in TextFields
> 
> I created a Text Icon in Xerte containing a link: <a
> href="event:myEvent">Linktext</a> (docu:
> http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/text
> /TextField.html#event:link)
> I also created an EventHandler "eventName: link" as a child of the Text
> Icon which should output the link text: debug(event.text);
> It outputs the text as expected. But also the text "debug(event.text)"
> is added to my Text Icon. Does anyone know why?
> 
> Peter
> 
> 
> ==================================
> Peter Huppertz
> E-learning and IT Specialist
> International Centre for Asset Recovery
> Basel Institute on Governance
> Phone: +41 61 205 55 18
> Fax: +41 61 267 55 19
> 
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte

==================================
Peter Huppertz
E-learning and IT Specialist
International Centre for Asset Recovery
Basel Institute on Governance
Phone: +41 61 205 55 18
Fax: +41 61 267 55 19



More information about the Xerte mailing list