From: Doug M. <do...@cr...> - 2003-09-17 17:56:46
|
Does the filereader work in NS4? ----- Original Message ----- From: "Raymond Irving" <xw...@ya...> To: "DynAPI-Dev" <dyn...@li...>; "DynApi-Help" <dyn...@li...> Sent: Wednesday, September 17, 2003 1:13 PM Subject: [Dynapi-Help] Getting Templates from the Server > > TemplateManager makes it eaiser for us to add both > text and DynLayers to an HTML document, but > downloading the HTML document for the most part > requires a sever-side script to open and send the > resulting HTML back to the client as a JavaScript > string (when using IOElement). > > The FileReader class makes it much easier to download > template files from the server. No more embedding of > bulky HTML code inside the main document or using > server-side scripts. > > var tp = new Template(); > var fl = new FileReader(function(){ > // load file from server > var str = fl.read('mytemplate.html'); > tp.setHTML(str); > }); > > > -- > Raymond Irving > > __________________________________ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site design software > http://sitebuilder.yahoo.com > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.515 / Virus Database: 313 - Release Date: 9/1/03 |