Lasso Soft Inc. > Home

[flashchart_embed]

Linkflashchart_embed
AuthorJason Huck
CategoryOutput
Version8.x
Licensehttp://opensource.org/licenses/artistic-license.php
Posted26 Apr 2006
Updated26 Apr 2006
More by this author...

Description

This tag is a shortcut for creating the proper HTML embed code for XML/SWF Charts. See the [flashchart] entry for more info.

Sample Usage

flashchart_embed(
	-swfpath='flashchart/charts.swf',
	-libpath='flashchart/charts_library',
	-datapath='data.lasso',
	-id='mychart',
	-width=400,
	-height=250,
	-bgcolor='#EEEEEE'
);

Source Code

Click the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.

	define_tag(
		'embed',
		-namespace='flashchart_',
		-priority='replace',
		-required='swfpath',
		-type='string',
		-required='libpath',
		-type='string',
		-required='datapath',
		-copy,
		-type='string',
		-required='width',
		-type='integer',
		-required='height',
		-type='integer',
		-required='bgcolor',
		-type='string',
		-optional='id',
		-type='string',
		-description='Generates Flash embed code linked to XML config data.'
	);
		!local_defined('id') ? local('id') = 'chart_' + lasso_uniqueid;
		#datapath = encode_stricturl(#datapath);
		
		local('out' = '\

	
	
	
	
	

		');
		
		return(@#out);
	/define_tag;

Related Tags

Comments

No comments

Please log in to comment

Subscribe to the LassoTalk mail list

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft