dashcode

dashcode and external rss feeds

I was wonder if anyone can help me with this. I've been looking everywhere for this information, but I want to make a web application using dascode rss. I know that you can't link external sources. Does anyone know a way I can get around it. From what I understand a little php can get around this, but I'm unsure where to look. ...

Dashcode: How to create a custom/new Project Template?

I'm trying to customize the javascript that Dashcode uses. So that I won't step on Apple's Project Templates, I want to make a custom project template that would appear as a choice after you click "New Project." I have been able to modify one of the existing templates (like, Custom, Browser, Utility, RSS, and Podcast). I can not, howev...

Dashcode: How to add custom inspector panel for custom Dashcode Parts?

I like using Dashcode for making quick little web apps, but it specifically targets the iphone version of mobile safari, which is not acceptable for cross-platform development. I've developed a number of laundry-list hacks that I tend semi-manually add to my scripts to facilitate cross platform development (like, say, to the Android or ...

Where to change data for a "list" datasource in dashcode?

I created a new project in dashcode and it automatically generated a mobile web app for me with a list and sample datasources. I see two datasources, one is labeled as "datasource" and the other is "list". However I can see that the actual data in datasources is in a js file, everything is good but where is the actual data stored for "li...

Switched to Snow Leopard: HTTP-Requests stopped working in simulator (WebApp)

Hi! I've created a web app in Mac OS 10.5 which receives data by sending http requests like this: var http = new XMLHttpRequest(); var url = "http://www.test1234.com/data.php?param1=" + param1 + "&param2=" + param2 + "&param3=" + param3; http.onreadystatechange= function() { var result= null; switch(http.readyState) { ...

Dashboard: providing user feedback by changing button label

Dear All, What I want is to provide user feedback about operation status through button label. Initially the button says "save", once clicked I want to change the label to "saving..." enter another function and once the function returns change the label to "saved" then pause 2 seconds and set the label again to initial "save" value. Her...

Dynamically load data into a List Controller in Dashcode? (Via JSON)

How can you do this? ...

How might I populate an object property using a JSON-encoded server response?

How can i turn this: <? echo json_encode($myArrays); ?> ...into this: _rowData: [ { name: "Most Recent", view: "recentView" }, { name: "Most Popular", view: "popularView" }, { name: "Staff Picks", view: "staffView" } ], My script returns that ^, but i dont know how to put the data into the string, _rowData ? P.S. I am...

How to add more than 2 views to a view stack?

Hi, I have been having problems simply adding more than 2 views to the stack through the Dashcode GUI interface. I have seen how to do that programmatically, but is there a way to statically keep extra views within the stack? I am actually okay with using a different stack, but the problem there is that I have to add another browser ar...

How to set popup menu values programatically in Dashcode

I am trying to set the values for a popup menu in Dashcode programatically. I can change the text/value of some statically defined default ones (from the inspector), but not add or remove them. When the view is initialised it must take a variable number of options. var popup = document.getElementById('popup'); //popup.options = ...

Embedding an offline Dashcode application in a UIWebView in an iPhone application

In order words, can anyone tell me the basics of how to create a "hybrid" iPhone application? I want to load the web content (the Dashcode app itself) from the native application's application bundle. I've gotten this to partially work, but some content won't display and it otherwise seems like Dashcode is assuming a certain Safari envi...

Local HTML 5 database usable in Mac Dashboard wigdets?

Hi I'm trying to use HTML 5's local database feature on a Mac Dashboard widget. I'm programming in Dashcode the following javascript: if (window.openDatabase) { database = openDatabase("MyDB", "1.0", "Sample DB", 1000); if (database) { ...database code here... } } Unfortunately the database-variable remains alway...

RSS feed dashcode confusion

Does anyone know how I can parse an RSS feed, but using dashcode? I cannot for the life of me figure out a way to bypass the blocking. ...

Rss and external feed

I want to build a similar app like this:http://community.livejournal.com/ohnotheydidnt/32551171.html using a livejournal rss feed. Any way of retrieving an external feed ( meaning getting a feed from a different domain that the one your web application-Same origin policy)? I've built a parser, but I would like to use dashcode for simple ...

Dashcode code translation

Hi, a quick, probably easy question whose answer is probably "best practice" I'm following a tutorial for a custom-template mobile Safari webapp, and to change views around this code is used: function btnSave_ClickHandler(event) { var views = document.getElementById('stackLayout'); var front = document.getElementById('mainScree...

How do I embed a quicktime movie into an iphone web app using javascript?

I'm creating an iphone webapp in dashcode for the first time and I can not figure out the code for embedding a video into the webapp.I have an html file and have a few pages it switches between but I need to create a function in javascript so when I click a button that it will pull up a video I in quicktime. Any sample code or thoughts? ...

How do I embed a quicktime movie into an iphone web app using dashcode?

I have a functional webapp that I have created through dashcode, but I want to add a video by clicking a button. Any idea on how to code a handler to do that or any sample code? thanks here is what I have but it wont do anything in the simulator function myClickHandlerVideo(event) { var vidElem=document.createElement("video"); ...

How do you embed a javascript image gallery to iphone webapp in dashcode?

I have several pictures i would like to display in a javascript image gallery for my iphone webapp. Any ideas or sample code will help alot. ...

Change Dynamically Data Source's xml source on Dashcode.

Classic StackLayout-List(s) scenario. StackLayout have: Home - Detail - Leaf On "Home" I have a Datasource like this: <row><name>Element 1</name><resource>../Element1.xml</resource></row> <row><name>Element 2</name><resource>../Element2.xml</resource></row> This is binded to a list of name "homeList". onClick on "Element 1" i load ...

Using HTML from bundle to save cookies in UIWebView?

So I have a web page inside my bundle, which I load in a UIWebView. However, the page doesn't seem to be able to store any cookies, even though other (online) websites can. How do I get it to store my cookies? ...