main.js in Dashcode
When you run the widget in an iBook on an iPad the load process does not automatically start the function MainProgramProcessor();
To overcome this issue I have a button which has a click on event assigned to call the 'function MainProgramProcessor();' this works fine but I would like the process to be automated so that control passes to the code I have written to control the process when the widget is launched. [I hope that makes sense]
The following is the load function:
function load()
{
dashcode.setupParts();
// Default Date Value
var textFieldToChange = document.getElementById("textField7"); // replace with ID of text field
var newTextField = "dd/mm/yy"; // value to change range to
textFieldToChange.value = newTextField;
MainProgramProcessor(); //not working on startup
}