iphone-web

Initializing links in jqtouch in AJAX loaded content

I have an iphone web app built in jqtouch, when content is loaded by links ("a" tags) then any content on the next page is parsed by jqtouch and any links are initialized. However, when I load content via an AJAX call and append() it to an element then any links in that content are NOT initialized by jqtouch. Thus any clicks on those lin...

displaying image from xml tag

hi everybody I am new to iphone development. in my application i want to extract image from image tag from xml and then display it in left of table cell my code is the xml tag of image is <image>http://192.168.1.239/japantube/thumb/570.jpg&lt;/image&gt; now i in my code i have parse it in such form int blogEntryIndex1 = [indexP...

iPhone Safari CSS rotation bug

I have a small mobile phone app that is acting strangely on the iPhone/Mobile Safari. The page renders and works great when it's orientation is vertical. When I rotate the phone horizontally some, but not all elements on the page resize correctly. Some header elements will stay nearly their same size, maybe increasing by 10%, others will...

In Sinatra, best way to serve iPhone layout vs. normal layout?

I'm writing a Sinatra app which needs to render different layouts based on whether the user is using an iPhone or a regular browser. I can detect the browser type using Rack-Mobile-Detect but I'm not sure of the best way to tell Sinatra which layout to use. Also, I have a feeling that how I choose to do this may also break page caching....

Any suggestion IF I need to write an iPhone/iPad app to show HTML5 content ?

Hi All, Is there any reference about writing an application on iPad/iPhone to show HTML5 content ? Any reference book Sample source codes Which components should I use ? Million Thanks. ...

Why doesn't border-radius work properly on text inputs in MobileSafari?

Here is a reference HTML document: <!DOCTYPE html> <html> <head> <style> body { background-color: #000; } input { -webkit-border-radius: 20px; } </style> </head> <body> <input type="text" value="text" /> </body> </html> The border-radius renders fine on Safari/WebKit-based desktop browsers, but on the "...

Is there a way to add an MP3 player to my website so that iPhone & iPad users can use it.

I have a website www.askvioletnow.com. I added a flash mp3 player that plays a sound clip when you go to the page. I know Flash doesn't work on the iPhone OS, but is there a way to get this type of mp3 player to work on an iPhone? I'm thinking maybe a javascript mp3 player. What I would ultimately want is to replace my flash mp3 pla...

NSURLCredential not working for synchronuos request in iphone

Hi Friends, I am using Synchronous request and passing the credentials but I am getting authentication error in response. Below is my code of request and response from server. Request:- NSURLCredential *userCredentials = [NSURLCredential credentialWithUser:@"username" p...

Workaround iPhone's browser not honoring the <label> element

Hi, Just ran into this recently and I thought it'd be helpful to share. The HTML <label> element is supported in a weird way by iPhone's (v3) browser. Try this: <input type="checkbox" id="chkTest" /><label for="chkTest">Click me!</label> Tapping the "Click me!" label has no effect, the checkbox is not checked. Lack of support in a ...

iphone form keypad magnifying glass doesn't show any text

I'm using jqtouch on the iphone and am encountering an odd situation when trying to edit an input text field. With the focus on the field, if i try and move the cursor position in the text by bringing up the magnifying glass, the magnifying glass shows up black (all dark) with a small white spotlight and none of the underlying text is v...

iphone web based app - back button causing undesired behavior

i have a set of web pages specifically designed to run on iPhones (using iUI for look). My problem is the back button. I have custom back navigation in my pages that act as i wish (i.e. one of those websites that say 'please do not use your browsers back buttons'. but id like to not do that if i don't have to). if the user hits the back ...

How can I detect whether a user has installed a specific iPhone app via JavaScript?

I'd like to build a mobile Web app that: If my iPhone app is already installed, launches it by redirecting to a URL handled by the app If my iPhone app is not installed, displays a web page encouraging users to download it from the App Store The problem is, I don't know how to detect whether the app is installed before redirecting. ...

how to search Table cell in iphone application

Hi everybody, i have develop an RSS iphone application. as the data come from xml feed in table cell i am fail to implement search functionality in it. following is the code in which the date is displayed in table cell int blogEntryIndex1 = [indexPath indexAtPosition: [indexPath length] -1]; NSString *imgstring=[[bl...

how to pass data from UIWebview to user defaults or another view

Hi, I have a embedded uiwebview in my app which will in turn call a webpage. This webpage contains some data which should be saved in the user defaults of the iphone. How to achieve this ? ...

What is the iPhone 4 user-agent?

Has anyone found this yet? ...

iphone app to find out nearest taxi companies using lat long

hi i need to display the taxi (cab) companies address using my current location . json data. Please help me doing this with suggestions and sample code ...

Insert url in one view and then display it in uiwebview in new view

hay all, I want to enter url in one view and then want to switch and display it in another view in uiwebView I am trying like this but its not working. NSString *urlAddress = @"http://www.google.com"; //Create a URL object. NSURL *url = [NSURL URLWithString:urlAddress]; //URL Requst Object NSURLRequest *requestObj = [NSURLRequ...

iPhone Web App charting/graphing libraries

Hi I am chewing through a specification for an iPhone Web App (NOT native). The request implies a lot of general charting functionality, mostly line chart and bar charts. On the implementation side of things, it means a lot of re-formatting of existing web content using an iPhone Web App framework (most likely JQTouch). Given the capa...

Setting font in UIWebView for a loaded in rss feed

Hey guys, How would I set the font for an rss feed I am loading into UIWebView? Right now the rss feed loads in fine but is a default font and size that is undesirable. I would like to somehow control that. I am a super beginner so I apologize if this is a dumb question. ...

Background process to alert the user in iphone?

hi, I am developing a iphone uiwebview based application to load an web application url by getting the user credential from a login screen,as i have username and password which are required to communicate with the server on the other end with web services,i want to make an alert with some data to the user once after he logged into appl...