From: Doug M. <do...@cr...> - 2004-05-13 14:22:56
|
I do not know much about IOelement.. So I will attack from another angle.. I find that when you are getting into a stick escape/unescape situation, it can sometimes help to use variables rather than literal strings var HTMLToAdd = '<form onsubmit="runCode(\'hoho\')">' var WhatToExecute = 'lyr1.setHTML(' + HTMLToAdd + ')' io.execInParent(WhatToExecute) --- OR --- var HTMLToAdd = '<form onsubmit="runCode(\'hoho\')">' io.execInParent('lyr1.setHTML(top.HTMLToAdd)') ----- Original Message ----- From: "Daniel Tiru" <de...@ti...> To: "dynapi help" <dyn...@li...> Sent: Wednesday, May 12, 2004 7:11 PM Subject: [Dynapi-Help] ioelement & strings > Hi all! > > Having some problems with strings and using ioelement and io.execInParent() > > So what i want to do is to set a layer using this code > io.execInParent('lyr1.setHTML()') > I want to set the content to this code: > <form onsubmit="runCode('hoho')"> > > however how i try and try i cannot get it to work with the escaping... can someone please help me as i am really stuck now? > > Regards > Tiru > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: SourceForge.net Broadband > Sign-up now for SourceForge Broadband and get the fastest > 6.0/768 connection for only $19.95/mo for the first 3 months! > http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click > _______________________________________________ > 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.683 / Virus Database: 445 - Release Date: 5/12/04 |