[Xerte] Noob question

Patrick Lockley Patrick.Lockley at nottingham.ac.uk
Fri Jan 30 16:25:15 GMT 2009


if you know the htm - get the style sheet from the webpage?

Or reg exp?


________________________________

	From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
	Sent: 30 January 2009 16:12
	To: Xerte list
	Subject: RE: [Xerte] Noob question
	
	
	Yes, but I still have to be able to specify which style based on
the font in the original htm.
	I will have to translate at some point.
	
	
________________________________

	Subject: RE: [Xerte] Noob question
	Date: Fri, 30 Jan 2009 15:47:44 +0000
	From: Julian.Tenney at nottingham.ac.uk
	To: xerte at lists.nottingham.ac.uk
	
	

	Use stylesheets.

	 

	From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
	Sent: Friday, January 30, 2009 3:46 PM
	To: Xerte list
	Subject: RE: [Xerte] Noob question

	 

	That works a treat.
	
	Now of course since I'm going RTF>HTM>Xerte there's the beggar
font size translations to deal with. :-/
	
	Dave
	
	
	

	
________________________________


	Subject: RE: [Xerte] Noob question
	Date: Fri, 30 Jan 2009 09:03:02 +0000
	From: Julian.Tenney at nottingham.ac.uk
	To: xerte at lists.nottingham.ac.uk

	I just updated it and fixed a different bug with loadVars
anyway, so you might as well have it:

	 

	Usage

	iconID.readFile(url);

	 

	Parameters

	url. The url of the file to read.

	 

	Description

	Reads in an external file. Fires the 'onReadFile' event when
complete, and sets iconID.fileData with the contents of the file.

	 

	Returns

	Nothing.

	 

	From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
	Sent: Thursday, January 29, 2009 10:12 PM
	To: Xerte list
	Subject: RE: [Xerte] Noob question

	 

	Thanks Julian.
	
	I was mushing around the 2.1 help files and was sure I could get
it to work in a round-about way.
	
	Let me mull around a bit before I ask for a re-compile.
	I'll save that for the real nasty stuff.
	:-)
	
	Dave 
	
	
	

	
________________________________


	Subject: RE: [Xerte] Noob question
	Date: Thu, 29 Jan 2009 21:44:19 +0000
	From: Julian.Tenney at nottingham.ac.uk
	To: xerte at lists.nottingham.ac.uk
	CC: Julian.Tenney at nottingham.ac.uk

	there is an onData event I can trap for you on loadVars. You can
point to a url, I can get an icon to load it via loadVars, intercept the
onData event, and pass it back to your code in an event handler
iconID.onData. I can set iconIdD.rawData or similar and then when you
handle iconID.onData you can have a text icon {iconID.rawData}.

	 

	The onData event fires before onLoad, and lets you access the
raw text in the file you loaded. Same with the XML class. Basically it's
readExtFile(). I'm not sure if there is support for it right now in
Xerte, but it is five minutes to add it.

	 

	Remember the supported HTML is a bit limited, thanks to the
Flash player. Stylesheets might be useful.

	 

	
________________________________


	From: xerte-bounces at lists.nottingham.ac.uk on behalf of Dave
Burnett
	Sent: Thu 29/01/2009 21:35
	To: Xerte list
	Subject: RE: [Xerte] Noob question

	Yes.

	
________________________________


	Subject: RE: [Xerte] Noob question
	Date: Thu, 29 Jan 2009 21:26:56 +0000
	From: Julian.Tenney at nottingham.ac.uk
	To: xerte at lists.nottingham.ac.uk

	what do you want to do with them? Load them and display them?

	 

	
________________________________


	From: xerte-bounces at lists.nottingham.ac.uk on behalf of Dave
Burnett
	Sent: Thu 29/01/2009 19:39
	To: Xerte list
	Subject: RE: [Xerte] Noob question

	Thanks Julian.
	I just stumbled across it by accidentally adding a URL param in
the source.
	
	So what's the accepted method for handling external text files
in .htm format?
	
	Now you see why I got curious.
	AW had hidden unsupported methods, right? ;-)
	
	Dave

	
________________________________


	Subject: RE: [Xerte] Noob question
	Date: Thu, 29 Jan 2009 19:17:57 +0000
	From: Julian.Tenney at nottingham.ac.uk
	To: xerte at lists.nottingham.ac.uk

	It isn't.

	 

	BUT

	 

	Under the hood, Xerte uses the same class to display graphic
icons and text icons, so the <DIS> nodes can have url properties, but
they refer to the URL for an image for the graphic icon. There's some
code that goes 

	 

	if (node.attributes.type=='graphic'){

	  //add a graphic icon to the stage

	} else if (node.attributes.type == 'text'){

	  ///add a text icon

	}

	 

	If I were to rebuild it, there would be two classes. In fact
there'd probbly be three, with one seperate one for swfs.

	 

	 

	
________________________________


	From: xerte-bounces at lists.nottingham.ac.uk on behalf of Dave
Burnett
	Sent: Thu 29/01/2009 17:02
	To: Xerte list
	Subject: [Xerte] Noob question

	What's the URL parameter in the Text icon used for?
	
	

	
________________________________


	Windows Live(tm) Hotmail(r)...more than just e-mail. See how it
works.
<http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t2_hm_justgotbetter
_howitworks_012009>  

	 

	
________________________________


	Windows Live(tm) Hotmail(r):...more than just e-mail. Check it
out.
<http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t2_hm_justgotbetter_ex
plore_012009>  

	 

	
________________________________


	Windows Live(tm): E-mail. Chat. Share. Get more ways to connect.
Check it out.
<http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t2_allup_explore_01200
9>  

	 

	
________________________________


	Windows Live(tm) Hotmail(r)...more than just e-mail. See how it
works.
<http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t2_hm_justgotbetter
_howitworks_012009> 

	 

	
________________________________


	Hotmail(r) goes where you go. On a PC, on the Web, on your
phone. See how.
<http://www.windowslive-hotmail.com/learnmore/versatility.aspx#mobile?oc
id=TXT_TAGHM_WL_HM_versatility_121208%20> 


________________________________

	Windows Live(tm) Hotmail(r)...more than just e-mail. See how it
works.
<http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t2_hm_justgotbetter
_howitworks_012009>  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20090130/f34ad93d/attachment.html


More information about the Xerte mailing list