Question : Problem: How do I make certain website components work on the iPhone safari?

I am trying to make a version of my site that is iPhone compatible. I have a couple of questions:


1. I have a video on the website. Is there anyway to play it other than through the youtube app? If there isn't, how do I link it so that the youtube app launches when it is clicked?

2. Is it possible and how do I make it so that clicking on a link launches iTunes to a particular song, allowing the user to buy the song. I already have an affiliate account, so it must link to that.

3. Do you have any tips on the amount of graphics that I should have? What would you set for your maximum page size?

Answer : Problem: How do I make certain website components work on the iPhone safari?

Ok here a couple of things that might help you...

With regards to making the site compatibile with the iPhone, I would recommend that you use a stylesheet that can indentify the iPhone and then use a max width of 480px
Have a read of http://stackoverflow.com/questions/577315/reformat-a-simple-html-page-on-an-iphone which describes the easiest way to do it.. As the iPhone tries to be a little clever in that department...!

With regards to how to open a video / song in youtube and itunes app respectively then you shouldn't need to do anything more exciting than just adding the link to your site and Safari will work it out and open the app on the iPhone direclty....

Apple provide a useful "Link Maker" here http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStoreServices.woa/wa/itmsLinkMaker  

Also apple developers site offer a very nice PDF describing the iPhone Safari version and how to handle things... http://developer.apple.com/safari/library/documentation/AppleApplications/Reference/SafariWebContent/SafariWebContent.pdf

I hope this helps...

Random Solutions  
 
programming4us programming4us