I've been working on a widget in some spare time. While apple, in their developer documentation, keep mentioning Safari as the app to test widgets in, I found Firefox and testing the widget for real to be better.
Reason n° 1: Javascript =/
Does this mean that dashboard is closer to mozilla as opposed to khtml?
Another reason for preferring Firefox, but rather irrelevant:
Safari doesn't size down small enough. If you position something close to and measured from the right, you risk of messing the layout if your widget is smaller then the minimum width of a safari window.
Firefox sizes down a lot smaller.
Reason n° 1: Javascript =/
Code:
function changeitnow(id,val)
{
if (document.getElementById) [COLOR=Red]// This doesn't work in Safari, It does in Dashboard and Firefox[/COLOR]
{
document.getElementById(id).innerHTML= val;
}
else [COLOR=Red]// This works in Safari, not in dashboard.[/COLOR]
{
document.layers[id].document.open();
document.layers[id].document.write(val);
document.layers[id].document.close();
}
}
Does this mean that dashboard is closer to mozilla as opposed to khtml?
Another reason for preferring Firefox, but rather irrelevant:
Safari doesn't size down small enough. If you position something close to and measured from the right, you risk of messing the layout if your widget is smaller then the minimum width of a safari window.
Firefox sizes down a lot smaller.