Hello Mrf,
Excuse me for my lateness.
For some reason, Google Desktop calls the focusout function twice. To
prevent this, try:
function edit1_onfocusout() {
if (view.children("edit2") == undefined){
view.appendElement('<edit height="20" width="100" name="edit2"
y="20" x="10" background="#EEEEEE"/>');
}
}
Best Regards,
Wagner Nitsch Bressan
On Mon, Apr 19, 2010 at 09:13, mrf <[email protected]> wrote:
> Hey., I.m very very thank ful to you, in helping out my doubts now i
> got a little confidence in my self and I started experiment in doing
> new gadgets now, one problem i.m getting in creating edit
> dynamically... that is I created an edit and user whenever focusout I
> need to create another new edit but what amazingly happening is i m
> getting created two edit elements when the user focusing out the first
> edit..... Why this happening so..... suggest me Wagner Nitsch .....
>
> On Mar 10, 7:26 pm, Wagner Nitsch <[email protected]> wrote:
> > What do you want to resize?
> >
> > From what I saw in your XML file, the name of your div is mainDiv.
> >
> > mainDiv.width = view.width;
> > mainDiv.height = view.height;
> >
> > If you want to change the entire view:
> >
> > view.width = newViewWidth;
> > view.height = newViewHeight;
> >
> > This is what you wanted?
> >
> > Best Regards,
> > Wagner Nitsch Bressan.
> >
> > On Mon, Mar 8, 2010 at 4:09 PM, mrf <[email protected]> wrote:
> > > Hey., Wagner here I'm with another doubt.. Hope U may have better
> > > idea..My problem is resize the gadget..
> >
> > > I'm doing something like this........
> > > /*******************/
> >
> > > main.xml
> > > -----------------------
> > > <view height="150" resizable="true" width="250" >
> > > <div height="152" name="mainDiv" width="250" x="0" y="-1"
> > > background="#00CCEE"/>
> > > <img height="151" name="img" width="250" x="-1" y="0"
> > > src="stock_images\background.png"
> > > />
> > > <script src="main.js" />
> >
> > > </view>
> > > ____________________________________________
> > > and in main.js
> > > -----------------------
> > > var width = view.width;
> > > var height = view.height;
> >
> > > div.x= width- div.width; //div.width = width-div.width;
> > > div.y = height-div.height; //div.height = width-div.height;
> >
> > > /*******************/
> >
> > > where i'm missing logic..??
>
> --
> 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]<google-desktop-developer%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-desktop-developer?hl=en.
>
>
--
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.