Thanks Teo for replying to my message. I solved the problem. I want to
append the elements in the main.xml so I started using view.append
(string) and now its working fine.

On Jul 17, 12:45 pm, Teo <[email protected]> wrote:
> At a glance it looks like it should work.. What happens when you run the
> code? Nothing, or they're added but something's wrong?
>
> Btw, are you calling the generateLabels function?
>
> Teo
>
>
>
>
>
> On Thu, Jul 16, 2009 at 9:34 PM, Yarlee <[email protected]> wrote:
>
> > Hi ,
>
> > I want to some data dynamically in main.xml. Could you please tell me
> > how i can do that ??
>
> > I am trying like this
>
> > main.xml
>
> > <view height="150" width="250" onopen="view_onOpen()">
> >  <img src="stock_images\background.png"/>
>
> > <div name="content"></div>
>
> >  <a height="20" x="165" y="120" onclick="plugin.showOptionsDialog()"
> >   >Add New Base
> >  </a>
> >        <script src="generateLabels.js" />
> >  <script src="main.js" />
> > </view>
>
> > generateLables
>
> > function generateLabels()
> > {
> >                debug.trace("into generateLable");
>
> >                content.appendElement('<label height="16" name="XXXXX"
> > width="40"
> > x="18" y="64">XXXX </label>');
>
> > }
>
> --
> Teo (a.k.a. Teominator a.k.a. Teodor Filimon)
> sitewww.teodorfilimon.com| blogwww.teodorfilimon.blogspot.com
> GMT +2

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Desktop Developer Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Desktop-Developer?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to