Facebook Application

Bruce Easton bruce at stn.com
Wed Dec 16 16:36:59 PST 2009


Wow--thanks, Bill.  I keep forgetting about jsfile and it is documented.
For someone who already has  a fair amount of code already 
using html :cr, then html :tx ... , just switching it to use jsfile :cr and
jsfile :tx would 
be much simpler than switching it to use open and writeline.  Would have to
watch 
out for the line endings on long lines since 'jsfile' is 2 bigger than
'html' - but gosh 
if you didn't think that was a problem you could global replace them outside
of 
fp in a few seconds.
 
(for vi I think the ed command to switch them
 would be:  :g/html \"1\" ^A/s/html \"1\" ^A/jsfile \"1\" ^A/g)
 
 
Bruce


________________________________

	From: filepro-list-bounces+bruce=stn.com at lists.celestial.com
[mailto:filepro-list-bounces+bruce=stn.com at lists.celestial.com] On Behalf Of
Bill Randall
	Sent: Wednesday, December 16, 2009 6:44 PM
	To: filepro-list at lists.celestial.com
	Subject: Re: Facebook Application
	
	
	Use JSFILE :CR to create the file.
	
	It creates an ASCII file just like HTML excepts adds no data, labels
or anything.
	
	You can then add what you want the header to be with:
	
	JSFILE "1" :TX "stuff"
	
	You are in complete control at that point just as Bruce like his
syntax to be.
	
	Bill
	
	
	Bruce Easton wrote: 

		Fairlight wrote Wednesday, December 16, 2009 4:41 PM:
		  

			On Wed, Dec 16, 2009 at 04:34:44PM -0500, Bruce
Easton, the 
			prominent pundit,
			witicized:
			    

				But to me sometimes having to have something
above the 
				      

			<html opening 
			    

				tag in the output is reason enough to stay
away from the 
				      

			internal fp 
			    

				html commands altogether.
				      

			Depends...does it truncate or append when you start?
If 
			append, you could pre-populate the required data,
then use 
			the html stuff.  I don't recommend it, I'm saying it
might be 
			possible.
			
			m->
			--
			    

		
		Well -I tried some things with variations on the fp HTML :cr

		command, and I don't believe Marv can use it to start off
his 
		output document.  
		
		I was not able to get anything other than one type of
document 
		type specification by using the :dt option.  But maybe there
are 
		reserved codes that come after the :dt to set up for
different doc 
		types. I couldn't find any documentation of such.
		
		BUT, you can use:
		
			html :cr [outdocpathandname] :tx [other stuff]
		
		and that output (otherstuff) does appear *before* 
		the <HTML> tag.  So I tried it with Marv's requirement and
it 
		worked fine to handle the document type spec.
		
		What I could not find a way to do is embed anything else
within 
		the <HTML> tag as in <HTML xmlns="....">.  I even tried
using :zz 
		and that didn't help.  (5.0.14).
		
		And to answer your question Mark, I don't believe there is
any 
		way to use fp's HTML commands to append to a file.
		
		So back to saying 'just use open and writeline, for crying
out loud..' :)
		
		Bruce
		
		Bruce Easton
		STN, Inc.
		
		_______________________________________________
		Filepro-list mailing list
		Filepro-list at lists.celestial.com
		http://mailman.celestial.com/mailman/listinfo/filepro-list
		
		  


	-- 
	
	William Randall
	wrandall at fptech.com
	
	




More information about the Filepro-list mailing list