Dan,

So IOElement is a DynLayer with some methods?

Well what if I want to retrieve all the characters
from an html file? Can IOElement do that?

My reason for wanting to do that is so that I can
store html templates the server and then load them
when needed and display then in a layer for form
element.

example:

 var io = new IOElement(true);
 io.load('formtemplate.html', fileload);
 mylayer = new DynLayer(null,10,10,100,100)

 // file load function
 fileload=function(e){
     var data=e.getSource().getData()
     var dt=new Date() 
    
data=data.replace(/\*current_date\*/g,dt.toString())
     // more replacments....

     mylayer.setHTML(data)
 }

Will I be able to do the above with IOElement?

Will IOElement support a post feature for posting data
to a server?

Will it ever support RPC (remote procedure calls)?

--
Raymond Irving


--- Dan Steinman <[EMAIL PROTECTED]> wrote:
> An IOElement example:
> 
> <script>
> var io = new IOElement(true); // true means a hidden
> ioelement
> 
> dynapi.onLoad(init);
> function init() {
>       io.load('file.html', fileload);
> }
> function fileload(e) {
>    alert(e.getSource().getScope().myvalue);  //
> returns variable "myvalue" that is defined in the
> file loaded
> }
> </script>
> IOElement is more suitable for doing simple
> communication through adding arguments to the URL -
> file.html?value1=1&value2=2.  I have an example that
> will be included that shows how to use it.  For more
> complex communication it would be better to go with
> a Frame communction scheme, or a java applet.
> 


__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[email protected]/

Reply via email to