--- Leif W <[EMAIL PROTECTED]> wrote:
> Going through some old emails (still :) and saw this
> one.  Definitely a
> great addition for the docs.  Has it been added
> anywhere yet?

Yep it's inside the CVS. See the tips and tricks
section.

>  If not I
> could add this.  The server side needs more
> explanation I think.  And a
> fully working example would better illustrate this
> powerful technique.
> 
> I'm not sure exactly how to use this in a real app. 
> But if you could give
> some examples?  

Yes in time I'll add some examples

> I was thinking of an example holding
> session data from a
> cookie, but I keep stumbling across security
> problems and keep shooting my
> ideas down and confusing myself before a solid
> concept formulates in my
> mind.  ;-)
> 
> Anyways, come up with a few examples, and a brief
> explanation of how they
> would function, and I can code stuff for an example
> page and documentation.
> I'm not too good with the JavaScript side, but if it
> comes to PHP then I can
> play with the data and put it into a simple MySQL
> example too.

Sounds like a plan but first I'll have to finalize a
few other things.

--
Raymond Irving
> 
> Leif
> 
> ----- Original Message ----- 
> From: "Raymond Irving" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, September 17, 2003 1:10 PM
> Subject: Re: [Dynapi-Dev] How to add a Configuration
> file to your web apps
> 
> 
> >
> > Sure
> >
> > --
> > Raymond Irving
> >
> > --- Aaron Shafovaloff <[EMAIL PROTECTED]> wrote:
> > > Can you include this within the documentation?
> > >
> > > --- Raymond Irving <[EMAIL PROTECTED]> wrote:
> > > >
> > > > With DynAPI 3.0 it's now very easy to add a
> > > > configuration file to your web apps.
> > > >
> > > > By using the IOElementSoda Class you can
> easily
> > > > convert a JavaScript Object into and xml
> document
> > > as
> > > > shown below:
> > > >
> > > > var ini = {
> > > > usecart:false,
> > > > color:'red',
> > > > timeout:5
> > > > };
> > > >
> > > >
> dynapi.debug.print(IOElement.ws_Var2SODA(ini));
> > > >
> > > > Which should display:
> > > >
> > > > <soda>
> > > > <o0>
> > > > <a1>
> > > > <s2>usecart|color|timeout</s2>
> > > > <r1/>
> > > > <a2>
> > > > <b3>false</b3>
> > > > <r2/>
> > > > <s3>red</s3>
> > > > <r2/>
> > > > <i3>5</i3>
> > > > </a2>
> > > > </a1>
> > > > </o0>
> > > > </soda>
> > > >
> > > >
> > > > You can then save the SODA Object to a file on
> the
> > > > server. For example config.ini
> > > >
> > > > Later you could then reopen the config.ini
> file
> > > and
> > > > convert it back into a JavaScript Object:
> > > >
> > > > var fl = new FileReader(function(){
> > > > var str = fl.read('config.ini'); // load file
> > > from
> > > > server
> > > > var ini = IOElement.ws_SODA2Var(str);
> > > > // now we can use the ini object
> > > > if(ini.color) document.bgcolor = ini.color;
> > > > });
> > > >
> > > >
> > > >
> > > > Any comments?
> > > >
> > > > --
> > > > 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-Dev mailing list
> > > > [EMAIL PROTECTED]
> > > >
> > >
> >
>
http://www.mail-archive.com/[EMAIL PROTECTED]/
> > >
> > >
> > > =====
> > > Aaron Shafovaloff
> > > aarondot.com
> > > fallennotforsaken.com
> > >
> > > "It is truth alone that capacitates any soul to
> > > glorify God." ~John Owen
> > >
> > > "Justification is an act. It is not a work, or a
> > > series of acts. It is not progressive. The
> weakest
> > > believer and the strongest saint are alike
> equally
> > > justified. Justification admits no degrees. A
> man is
> > > either wholly justified or wholly condemned in
> the
> > > sight of God." ~William Plumer
> > >
> > > __________________________________
> > > 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-Dev mailing list
> > > [EMAIL PROTECTED]
> > >
> >
>
http://www.mail-archive.com/[EMAIL PROTECTED]/
> >
> >
> > __________________________________
> > 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-Dev mailing list
> > [EMAIL PROTECTED]
> >
>
http://www.mail-archive.com/[EMAIL PROTECTED]/
> >
> >
> 
> 
> 
> 
>
-------------------------------------------------------
> 
=== message truncated ===


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[EMAIL PROTECTED]/

Reply via email to