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: Frames and preference panels



Daniel Phillips wrote:

Hello,

I am in the process of writing my first widget and I'm having some problems getting the preferences transition to work properly. The main view of my widget consists of a file called main.html which contains the following frameset definition:

<frameset rows= "100, *" border=0 frameborder=0 framespacing=0>
<frame name="control" src="control.html" scrolling="no" noresize onload="buildDateList()">
<frame name="listing" src="listing.html">


Which creates two frames- one to hold my control panel for the widget stored in an HTML file called control.html and one which points to a temporary HTML file to be replaced with a dynamically generated function. The buildDateList() function (which is declared in a .js file) populates a select element in the control.html file and also calls a function that generates the content for the listing frame.

It would make you life easier if you would use layers instead of frames. You can dynamically fill layers with content and scrolling is also possible.


Also have a look at the instructions again.
Quote: Displaying Preferences "First, in the body of your widget, you need to have two |<div>| layers in place, one for the front part of your widget, and one for the back (which should also be hidden)"


http://developer.apple.com/documentation/AppleApplications/Conceptual/Dashboard_Tutorial/index.html

Good luck,

Harald

_______________________________________________
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: 
 >Frames and preference panels (From: Daniel Phillips <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.