View Full Version : Need help w/ simple iPhone web app

Mar 23, 2008, 05:58 AM
I got the iPhone SDK a few days ago. New to programming for the iPhone, but have worked w/ languages in the past. I'm using the pre-made list layout in Dashcode and what I want to accomplish should be simple for someone who knows what they're doing...and I'd appreciate any help I could get!

Here's what I want to do:

Have a 2 tiered menu system. First menu level is musician / band name. Second level is a list of the songs for said artist. Then when you click the song title, it just links to the .mp3 stored on the server and plays in the native qt app on the iphone. Simple. I just don't know how to accomplish this.

If anyone can give me any direction, I would appreciate it so very much! I've spent hours w/ the iphone dev site and looking online, and I can't find anything that is as direct as I'd like it to be. And please, no flaming...don't waste your or my time...

- Chase

Mar 23, 2008, 07:03 PM
It is unclear to me whether you are trying to make a web app (i.e. a glorified web page that is made to be viewed on an iPhone) or a native iPhone application that accesses some data on a web server as part of its operation.

Mar 24, 2008, 04:08 AM
Just a web app. In the iPhone SDK apple released the new version of dashcode and it has a list menu template for use w/ custom web apps. I just dont know how to go from the first level menu to the second, and then making the "onclick" event point to a website.

Mar 24, 2008, 04:56 AM
don't use dashcode. use iUI. it's a javascript framework that does this

Mar 24, 2008, 08:39 PM
iUI looks great...thanks for the tip..I'll try it out!

Mar 24, 2008, 09:15 PM
All you need to do is make a list in HTML with links to the files:

<li>An artist
<li><a href="song.mp3">A song</a></li>
<li><a href="another-song.mp3">Another song</a></li>
<li>Another artist...</li>

You'll need to style it how you want it with CSS (and you can probably just copy/paste the CSS from Dashcode). If you need any more help, I suggest you learn HTML and CSS (not to be an ass, but because it's not difficult if you've had experience in other languages).

Mar 25, 2008, 09:04 PM
It seems I have it sorted now by editing iUI to fit my needs. Much appreciated everyone, I knew it was an easy resolution, I just didn't know how to get there! Thanks!