9 messages in com.googlegroups.google-desktop-developerRe: Beginner Question...| From | Sent On | Attachments |
|---|---|---|
| zbert | 21 Jan 2008 23:18 | |
| Teo [API Guru] | 22 Jan 2008 03:49 | |
| zbert | 22 Jan 2008 08:45 | |
| Teo [API Guru] | 22 Jan 2008 08:49 | |
| Bijoy Thangaraj | 22 Jan 2008 09:21 | |
| zbert | 22 Jan 2008 10:28 | |
| Teo [API Guru] | 22 Jan 2008 23:24 | |
| Yannick Stucki | 23 Jan 2008 10:30 | |
| zbert | 23 Jan 2008 11:00 |
| Subject: | Re: Beginner Question...![]() |
|---|---|
| From: | zbert (zb....@hotmail.com) |
| Date: | 01/22/2008 08:45:15 AM |
| List: | com.googlegroups.google-desktop-developer |
Thanks for your reply... I got it to change the text and felt silly after finding the answer was not much different from VB but the image change I have written the same as you have but I get an error when I run Preview (F5) in Google Desktop Gadget Designer. the error says "An error has occured in the gadget.... (it's at the end of my statement) Code:0x800AO3EC, Description: Expected ';'." I have a semicolon at the end of my statment:
/* Changes enabled picture OnClick... */
var blue="Images/Blue.png"
function OnImgClick() { img1.src=blue; }
/* End of Function */
The error refers to "img1.src=blue;" which I don't see what is wrong with it.
Thank you for your reponses though...
Zachary D. Skelton
On Jan 22, 5:49 am, "Teo [API Guru]" <teom...@gmail.com> wrote:
Hi,
just change the corresponding properties; for example:
myLabel.innerText=newText; //newText can be a String object, or just a variable with a text value assigned.
myImage.src=newSource; //can be a 'static' path on the user's computer, but probably //most of the time you will need gadget.storage(localmagePath); //to refer to images within your gadget
Thanks, Teo
On Jan 22, 9:19 am, zbert <zb....@hotmail.com> wrote:
I'm used to visual basic so I'm finding the use of JScript confusing at this point. I'm working on a simple application but having very little knowledge of the language, maybe I could get some help.
-How do I change a label's innerText at runtime? -How do I change an image's source at runtime?
I know these seem easy (hopefully) but thanks for your time.
Zachary D. Skelton- Hide quoted text -




