SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Member
    Join Date
    Sep 2011
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    iPhone native contact list help

    Im trying to create an iphone app
    http://fixmysite.us/bobapp/indexnew.html
    For some reason, it only seems to work in Chrome/Safari and iOs simulator.

    How do I use javascript, like onclick, to make it so when I click a name, it calls like "firstName" + ".html" to get the page for the name selected.

    for example if i click on bob, it slides over to a bob.html page that I create.

    Is this the way i should be doing it or is there a better way? *

    * I found another way to do it with jQuery Mobile, http://jquerymobile.com/demos/1.0rc1...-dividers.html, but with this way, I can get it to go the the firstName.html page, but cannot get the dividers to work like iPhone contact list where letter divider stays at top til moved by another letter.

    Any ideas?

    Thanks so much in advance.

  2. #2
    Avid Logophile silver trophy
    ParkinT's Avatar
    Join Date
    May 2006
    Location
    Central Florida
    Posts
    2,343
    Mentioned
    192 Post(s)
    Tagged
    4 Thread(s)
    In Objective-C (the language for native iPhone development) you would set up an NSURL variable, supplying it the URL as a string ("firstName" + ".html")
    Don't be yourself. Be someone a little nicer. -Mignon McLaughlin, journalist and author (1913-1983)


    Git is for EVERYONE
    Literally, the best app for readers.
    Make Your P@ssw0rd Secure
    Leveraging SubDomains

  3. #3
    SitePoint Member
    Join Date
    Sep 2011
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks ParkinT! Will check it out.

  4. #4
    SitePoint Mentor NightStalker-DNS's Avatar
    Join Date
    Jul 2004
    Location
    Cape Town, South Africa
    Posts
    2,880
    Mentioned
    48 Post(s)
    Tagged
    0 Thread(s)
    I think there is a misunderstanding going on here. Are you trying to write a mobile web app targeted for iPhone or a native app? As the NSUrl classes are only available on native apps

  5. #5
    SitePoint Member
    Join Date
    Sep 2011
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by NightStalker-DNS View Post
    I think there is a misunderstanding going on here. Are you trying to write a mobile web app targeted for iPhone or a native app? As the NSUrl classes are only available on native apps
    Hi NightStalker-DNS,

    Sorry for delay in response. Was out of town. I am trying to make a web app for the iphone that acts like a native app. Like the contact or ipod apps on the iPhone in the way that if I click (tap) on a name, it will go to a html page I have created for that name. I have been looking t Objective-C and am thinking that is the way to go. What do you think? Thanks for the response.

  6. #6
    SitePoint Mentor NightStalker-DNS's Avatar
    Join Date
    Jul 2004
    Location
    Cape Town, South Africa
    Posts
    2,880
    Mentioned
    48 Post(s)
    Tagged
    0 Thread(s)
    No. Objective-C is for iOS native applications that run on the iDevice itself. A mobile web app will be written using html/javascript/css and a programming language for the logic. Be it PHP or ASP.NET

  7. #7
    SitePoint Member
    Join Date
    Sep 2011
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks again Night-Stalker!


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •