Hi Everyone,

Here's a new function that will allow you to execute a
javascript function within the parent window of the
browser:

io.execInParent(function(){
        tpLogin = new parent.Template('This is a test
Layer',0,0,0,0);

tpLogin.setAnchor({left:100,top:100,bottom:100,right:100});
        tpLogin.setDefaultFieldValue(' ');
        tpLogin.generate();
        dynapi.document.addChild(tpLogin);
        tpLogin.setClass('test');
});

io.execInParent("alert('This is executed from within
the parent')");


Also see the new IOElement server-side wsAddJSCommand
that will allow you to execute js commands on the
client

wsAddJSCommand("alert('News: DynAPI IOElement is very
cool!'")

--
Raymond Irving

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

Attachment: ioelm.zip
Description: ioelm.zip

Reply via email to