Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Code Help] AppleButton not working



Hi Anthony:

It looks to me like the problem is just that the code is incomplete.  When I opened your files, the _javascript_ Console reported not being able to find "buttonClicked" (the onclick action for one of your buttons).  This appears to have halted the execution of the button creation code.  When I replaced buttonClicked (which hadn't yet been defined) with null, the button appeared.

If you are testing in Safari, you should enabled the Debug menu and use the _javascript_ Console. 
http://www.macosxhints.com/article.php?story=20030110063041629

If you are testing in Dashboard, you should keep the system console open.  I have found that it is nearly impossible to debug JS without a console.

Good luck with your widget!

Steve

me Steve Cotterill User Interface Engineer - Apple Computer
office: 408.974.6227 | mobile: 734.576.0919 www.bracketnet.com

On Jun 1, 2006, at 7:07 AM, Anthony wrote:

Hello, I've recently taken on my first dashboard project and seem to be having an enormous amount of trouble. I've read all the documentation and tutorials and such, but still cannot get the AppleButton to work properly. I've compared my code to examples and still cannot figure out why the button is not appearing, either in Safari or in Dashboard. I've attached the code if anyone is interested in taking a look. It's very basic, there is nothing but a few non-working buttons in the code right now. Any help would be greatly appreciated, thank you.

_________
Anthony S.
(Anto)


<isabel.css>
<isabel.htm>
<isabel.js>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
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

This email sent to email@hidden

References: 
 >[Code Help] AppleButton not working (From: Anthony <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.