I've compared my code to examples and still cannot figure out why
the button is not appearing, either in Safari or in Dashboard.
Something you'll probably want to do when developing widgets is keep
Console (in your Utilities folder) open. Most javascript errors (and
alert()s!) are output to console.log, which is displayed in by the
Console application.
I copied your files to disk, opened your HTML file in Safari, and saw
the following in Console:
Sure enough, when I looked at your code, I saw that your first glass
button is defined as:
gIsabelButton = new AppleGlassButton(document.getElementById
("isabelButton"), "Click Me", buttonClicked);
and also that the "buttonClicked" funtion indicated as the last
argument was not defined in any file.
When I added:
function buttonClicked(){
}
to your source, and reloaded Safari, the button appeared just fine.
Cheers!
-Joshua Emmons
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/dashboard-dev/email@hidden