Dashcode Widget AJAX Gotcha
The other evening I was playing around with building a Dashboard widget for I Went Away, so that people could easily update their away message.
First pass through and first pass using dashcode, I found it all very easy going…until.
I had some simple AJAX code that pinged the I Went Away site and added a new status. Super easy, I was using the drga and drop code with some slight tweaks to make it more how I would do it.
Run a test, enter some data and ….nothing…
No error, no weird looking response, no failed, just nothing.
I find that you have to check a box in the dashcode interface that sets a plist setting that allow the dashboard widget you create to connect to the network.
My next step is to play with xcode and ibuilder, and see if I can finish off my I Went Away screen saver. My total lack of objective C experience will no doubt frustrate me, but we’ll see how far I can get hacking tutorials and documentation together into combined code mutants.