dashcode

Why are some widget elements not showing up when embedded in iBook?

蹲街弑〆低调 提交于 2019-12-04 08:44:08
I created a widget in Dashcode. It has some buttons, text fields and texts. It works fine when run from Dashcode or when installed into the Dashboard. When I install it into an iBook (via iBooks Author) and run it on the iPad then the buttons and texts all disappear (as well as a few other minor visual changes). Interestingly if I tap where some of buttons are, it invokes the button click event, but others don't work. Also, when a button click event updates the value of a text then that text becomes visible. I tried both GlassButtons and regular Buttons, neither shows up. I inspected the

Changing a checkbox's state programmatically in dashcode

▼魔方 西西 提交于 2019-12-03 13:33:14
Okay, so I'm trying to change a checkbox's state programmatically in dashcode. I've tried: var checkbox = document.getElementById("checkbox"); // I have tried all the following methods. checkbox.checked = false; checkbox.selected = false; checkbox.value = false; Dashboard Widgets just run on WebKit technologies, so code valid for Safari should also be valid in Dashcode. Either of the following should work: checkbox.checked = true; checkbox.setAttribute("checked", "true"); The fact that they are not working indicates there is a problem elsewhere in your code. I would check the line var checkbox

Help on website optimization for iPhone [closed]

大兔子大兔子 提交于 2019-12-03 09:23:37
We re trying to work on making a mobile version for one of our asp.net web applications, however we would like to make iPhone specific. Are there any resources out there which provide best practice guidelines: UI Guidelines, any .net control libraries which are iPhone specific. Security guidelines - anything special that the iPhone Browser (mobile safari) has. Usability Guidelines - navigation tips, button sizes, etc. Anything else which will help us put together an app which looks native to iPhone. There are a couple of good articles on A List Apart: Put Your Content In My Pocket Your Content

Can't find Dashcode after installing Xcode 4 on brand new MacBook

*爱你&永不变心* 提交于 2019-12-01 03:29:03
问题 I have a brand new MacBook (air if it matters). I have installed Xcode 4 but I can't find Dashcode even using finder. What should I do ? 回答1: You can download Dashcode using the More Application Tools by choosing the xCode Menu -> Open Developer Tools -> More Developer Tools. There's more information and screenshots in the Developer Resources. 来源: https://stackoverflow.com/questions/9798846/cant-find-dashcode-after-installing-xcode-4-on-brand-new-macbook

iPhone web applications, templates, frameworks? [closed]

白昼怎懂夜的黑 提交于 2019-11-28 16:01:57
问题 Does anyone have any good starting points for me when looking at making web pages/sites/applications specifically for viewing on the iPhone? I've looked at templates like the one Joe Hewitt has made, and also seen some templates I can purchase, which I haven't done yet. I figured someone else had already started on this track and decided that I could probably leech on their newfound knowledge :) So, does anyone have any pointers? I'm well aware of the problem that the more such a template

HTTP GET request in JavaScript?

白昼怎懂夜的黑 提交于 2019-11-25 21:38:38
问题 I need to do an HTTP GET request in JavaScript. What\'s the best way to do that? I need to do this in a Mac OS X dashcode widget. 回答1: Browsers (and Dashcode) provide an XMLHttpRequest object which can be used to make HTTP requests from JavaScript: function httpGet(theUrl) { var xmlHttp = new XMLHttpRequest(); xmlHttp.open( "GET", theUrl, false ); // false for synchronous request xmlHttp.send( null ); return xmlHttp.responseText; } However, synchronous requests are discouraged and will