5 messages in com.googlegroups.google-desktop-developerRe: [Google-Desktop-Deve Re: I want t...| From | Sent On | Attachments |
|---|---|---|
| chri...@gmail.com | 18 Feb 2007 09:56 | |
| chri...@gmail.com | 18 Feb 2007 13:37 | |
| Sundaram K | 18 Feb 2007 21:37 | |
| Chris Wysong | 18 Feb 2007 22:46 | |
| Sundaram K | 19 Feb 2007 06:21 |
| Subject: | Re: [Google-Desktop-Deve Re: I want to give you 20 bucks!![]() |
|---|---|
| From: | Sundaram K (sund...@gmail.com) |
| Date: | 02/19/2007 06:21:30 AM |
| List: | com.googlegroups.google-desktop-developer |
No problem!
Your javascript code is essentially o.k., but instead of FORM components (like 'input', 'submit', etc.,) you will define similar controls through the main.xml file. It can be created automatically by designing in the designer (graphic mode) or it can also be hand coded. You can also copy paste from other sample gadgets.-).
Kris
On 2/19/07, Chris Wysong <chri...@gmail.com> wrote:
Dude, thanks for the response!
Unfortunately I apologize :-( I got inpatient and went to rentacoder.comand
found someone to do the same. Seriously, my apologies.
But, it is supposed to tell you if a certain year is a leap year or not. The script I have is below.
I couldn't figure out how/where to paste it in the dang designer without errors. I also couldn't figure out how to capture it from the type="html" like I read somewhere while trying to tackle this all day today. I have an html page up where I was going to capture it from. http://www.leapyearbaby.com/calculate.htm
I finally just got fed up. I was disappointed too because I read someone could start this in 5 minutes and it was easy and etc etc. LOL. Anyway, I guess it doesn't always pay to be good at cutting and pasting. LOL
Do you have any recommendations on how to start using and creating for dummies? I found the online help to jump around a lot and it appeared one needed to know quite a bit prior to jumping in on it.
Thanks again! ~Chris
_________________________________
javascript:
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> <!-- Begin function checkYear(year) { return (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)) ? 1 : 0; } function leap(form) { year = form.year.value; var Check1 = parseFloat(year); for (var i = 0; i < year.length; i++) { var sLetterCheck1 = year.substring(i, i+1); if (sLetterCheck1 < "0" || sLetterCheck1 > "9") { alert("Okay, You entered a year that just doesn't make sense. Please try again!"); form.year.focus(); form.year.select(); return; } } if (year < 1582) { form.result.value = ""; alert("I appreciate your curiosity; however, the year must be greater than 1581."); form.year.focus(); form.year.select(); return; } checkYear(year); if (!checkYear(year)) form.result.value = "not a Leap Year, Baby!"; else form.result.value = "a Leap Year, Baby!"; } // End --> </script>
<form> <div align="center"> <p align="left"><b>To Check For a Leap Year </b><br> Type the Year here:<br> <input type="text" name="year" size="13"> <input type="button" value="Leap Year Baby" onClick="leap(this.form );"><br>
<i>(click it)</i></p> </div> <div align="center"> <p align="left">The Results state the year you provided is...<br> <input type="text" name="result" size="35"></p> </div>
On 2/18/07, Sundaram K <sund...@gmail.com> wrote:
Zip all the files in your gadget directory and send it as attachment. I'll see if I can help. What is your gadget supposed to do?
On 2/19/07, chri...@gmail.com < chri...@gmail.com> wrote:
Okay... I should be able to do something within 5 minutes and I want to throw the @!$#! computer out the window. :-|
<b>Please someone contact me. :-(</b>
On Feb 18, 11:56 am, "chri...@gmail.com " <chri...@gmail.com
wrote:
I am pulling my hair out. :-(
I have the design for my Google Gadget Complete... I have the java script and such, I just can't get it to work :-(
(place tears here)...
If we do some file shares through email, would someone be willing to put my pieces together?????
I'd gladly PayPal you 20 bucks for your effort. It really shouldn't take long at all... Please let me know
Thank you, Chris
PS: About me: I am an expert at cutting and pasting. I havent had an ounce of training in anything computer related. This is perhaps why I haven't figured out the Desktop Developer stuff yet. I have had it
downloaded for a whopping 30 minutes now. Unfortunately, I just don't have the time to mess with it right now because I have to study for a math test... It is worth 20 bucks to get it done for me though. Seriously... a very simple request and 1/2 the work is done already :- D Please... PLEASE...... P L E A S E~~~~




