Don't put the {}'s inside of quotes, you're turning it into a string!

On Wed, Jan 30, 2008 at 10:52 PM, Daniel Williams
<[EMAIL PROTECTED]> wrote:
> Hello,
>
>  I'm want to create a dynamic dataset in my Laszlo application. But I'm
>  missing something simple when I'm adding multi able attributes to a node.
>
>  My code:
>
>  var v1 = 'a';
>  var v2 = 'b';
>  dpTemp.addNode('datastore', '{id:v1,data:v2}');
>
>  The XML should look like this.
>  <datastore id="a" data="b"/>
>
>  But I'm getting this.
>  <datastore>{id:v1,data:v2}</datastore>
>
>  Thanks up front.
>
>  -Daniel
>



-- 
Henry Minsky
Software Architect
[EMAIL PROTECTED]

Reply via email to