18 messages in com.googlegroups.google-desktop-developerRe: Need Some Assistance with Desktop...
FromSent OnAttachments
jack...@gmail.com13 Feb 2008 13:46 
Teo14 Feb 2008 01:14 
jack...@gmail.com21 Feb 2008 07:07 
Teo21 Feb 2008 07:40 
jack...@gmail.com21 Feb 2008 07:51 
jack...@gmail.com21 Feb 2008 09:29 
jack...@gmail.com21 Feb 2008 09:40 
Bijoy Thangaraj21 Feb 2008 10:28 
Teo21 Feb 2008 10:34 
Bijoy Thangaraj21 Feb 2008 10:59 
jack...@gmail.com21 Feb 2008 11:26 
jack...@gmail.com21 Feb 2008 11:45 
Bijoy Thangaraj21 Feb 2008 11:45 
Bijoy Thangaraj21 Feb 2008 11:48 
jack...@gmail.com21 Feb 2008 11:51 
jack...@gmail.com21 Feb 2008 12:00 
Benjamin [API Guru]21 Feb 2008 14:01 
jack...@gmail.com21 Feb 2008 14:50 
Subject:Re: Need Some Assistance with Desktop Gadget
From:jack...@gmail.com (jack@gmail.com)
Date:02/21/2008 02:50:41 PM
List:com.googlegroups.google-desktop-developer

Thanks,

That helps!

On Feb 21, 3:01 pm, "Benjamin [API Guru]" <code@gmail.com> wrote:

Have a look
athttp://desktopgadgets.googlecode.com/svn/trunk/TetrisGadget/keyCodes.js

I have collected a lot of keycodes for the Tetris gadget options dialog. Enter is 108

Greetings, Benjamin

On Feb 21, 9:00 pm, "jack@gmail.com" <jack@gmail.com> wrote:

I got things to work with this: function onkeypress1() { txtwhat.color = "#000000"; if (event.keyCode == 9) { txtwhere.focus(); event.returnvalue = false; } if (event.keyCode == 13) { doSearch(); event.returnvalue = false; }

}

How come we can only use ASCII codes with the Google Gadgets? Is 13 the same as 'Enter' & 'Return' keys?

Thanks much,

Chris

On Feb 21, 12:46 pm, "Bijoy Thangaraj" <jspl@gmail.com> wrote:

Dear Chris,

Are you getting any error?

On Fri, Feb 22, 2008 at 12:56 AM, jack@gmail.com <

jack@gmail.com> wrote:

Thanks,

That is helping.

Here's what I have:

function onkeypress1() { txtwhat.color = "#000000"; if (event.keyCode == 'Tab') { txtwhere.focus(); event.returnvalue = false; } if (event.keyCode == 'Return' || event.keyCode == 'Enter') event.returnValue = true; { doSearch(); } }

And the doSearch: var url = "http://www.dexknows.com/search.ds?newSearch=true"; url = url + "&what=" + txtwhat.value url = url + "&where=" + txtwhere.value; openURL(url);

Which isn't working at the moment. Any suggestions? I need the values of 'txtwhat' & 'txtwhere' to be passed to the above URL.

Thanks.

Chris

On Feb 21, 11:59 am, "Bijoy Thangaraj" <jspl@gmail.com> wrote:

The ASCII code is 9. Here's a code snippet:

function istabPresseduser(){ if (event.keyCode == 9) { editbox2.focus(); event.returnvalue = false; }

} On Fri, Feb 22, 2008 at 12:04 AM, Teo <teom@gmail.com> wrote:

I forgot the exact ASCII code for the TAB key, but what you want is this property: event.keyCode. You can just try alert(event.keyCode); to test different keys.

On Thu, Feb 21, 2008 at 7:41 PM, jack@gmail.com < jack@gmail.com> wrote:

Sorry, that last message wasn't too clear.

I'm trying to determine what the user has pressed as far as a key goes. Trying to do this with an 'onkeypress' command.

Thanks,

Chris

On Feb 21, 8:40 am, Teo <teom@gmail.com> wrote:

Well, the Gadget Designer (as a WYSIWYG) isn't the only solution.

I

made

gadgets in Notepad for quite a while :) But it has some

advantages,

and you

can edit the code in the Designer as well.

I don't really understand what doesn't work. If you're referring

to

the

previously discussed example, i would use a <label> for the

'normal'

part,

and an <a> for the link.

About the input methods; yes, edit boxes (<edit>) are the

solution.

The best sample source is the SDK: http://desktop.google.com/downloadsdksubmit?hl=en You can change the gadgets within to experiment and see how it

works.

Once

you figure it out, it should all come natural.

Thanks, Teo

On Thu, Feb 21, 2008 at 5:08 PM, jack@gmail.com <

jack@gmail.com> wrote:

Teo,

Thanks for your reply. I've read through the document, but am

still

at

a loss to get the Gadget Designer application to really edit my code accordingly. It seems every time I edit something in code view, things crash. Can google desktop Gadgets only be created through this application? I can't seem to find a good example of input fields within a gadget. Right now I've created two 'edit boxes' as my input fields. Is this the right method?

I've created a Yahoo Widget that is functional with XML, but am really struggling with the Google Gadget because I can't see code

examples

of

how things work when passing variables to a javascript file.

Thanks,

Chris

On Feb 14, 2:14 am, Teo <teom@gmail.com> wrote:

Hi,

you can't put in regular HTML tags, but you can still do this

XML

fashion,

some tags differ a bit. This page will give you a good start:

http://desktop.google.com/dev/gadgetapi.html

Thanks, Teo

On Wed, Feb 13, 2008 at 11:46 PM, jack@gmail.com <

jack@gmail.com> wrote:

Hello there,

I'm developing Gadgets at the moment and am having

difficulties

using

the Desktop Gadget Designer. I had success with an iGoogle Gadget, please see here:

But upon trying to code my HTML form into the gadget in

Desktop

Gadget

Designer, I keep getting errors. Is there no way to

implement

HTML

code into the mail.xml file with this:

<Content type="html"></Content>

Any help would greatly be appreciated.

Thanks,

Chris in Colorado