Need help w/ simple iPhone web app

Discussion in 'Mac Programming' started by chtown, Mar 23, 2008.

  1. macrumors newbie

    Mar 23, 2008
    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
  2. macrumors 68040

    Apr 22, 2005
    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.
  3. thread starter macrumors newbie

    Mar 23, 2008
    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.
  4. macrumors 68000


    Jul 7, 2006
    Queensland, Australia
    don't use dashcode. use iUI. it's a javascript framework that does this
  5. thread starter macrumors newbie

    Mar 23, 2008
    iUI looks great...thanks for the tip..I'll try it out!
  6. macrumors 68000

    Aug 20, 2003
    Long Beach, California
    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).
  7. thread starter macrumors newbie

    Mar 23, 2008
    Thanks Everyone!

    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!

Share This Page