Re: touch events using javascript

2011-01-17 Thread Rémi Grumeau
Playing a video or music on an iPhone can only be done via QuickTime afaik. I can be done on an iPad (at least H264 videos for sure) R. Le 17 janv. 11 à 11:42, Sudhakar a écrit : i have used xhtml method and html5 method in both cases when i tap on the link the audio file does not play in

Re: touch events using javascript

2011-01-17 Thread Rémi Grumeau
on Safari Desktop it works, but not in iPhone 3.x neither 4.x. Can't test on real iPad btw Am i doing something wrong? http://we-are-gurus.com/labs/audio.html R. Le 17 janv. 11 à 14:05, Stan Wiechers a écrit : a=new Audio(URL); a.load(); a.play(); That does on iOS and even the new

RE: Working with DB during online event - iPhone

2011-01-17 Thread Alon Raskin
Hi Remi, Its pretty easy. 1. Create a page that subscribes to the online/offline event. 2 In the handler call a XMLHTTPRequest 3. Leave the browser page open 4. Press the HOME button, go to settings, go to airplane mode 5. Go offline 6. Go Online 7. When you go online it will call yout

Re: Accessing the Screen Pixels

2011-01-17 Thread Francois Laberge
My bad, Here ya go. The source code I ended up using: // This gets the screen resolution. // You can set your own rect if you want to capture a portion of the screen CGRect screenRect = [[UIScreen mainScreen] bounds]; // This stuff is fairly standard, look up the functions/classes if you want to

Re: touch events using javascript

2011-01-17 Thread Mogens Beltoft
Is there a way to style the controls? I'm thinking of length. The controls are very small in my test code. If I leave out the controls attribute the controls are not visible, but the audio element takes up the same amount of space whether the controls are there or not. /Mogens On

Re: touch events using javascript

2011-01-17 Thread RobG
On Jan 18, 6:06 am, Mogens Beltoft mog...@beltoft.dk wrote: I can make it work on iOS 4.2.1 by making a div, adding an onClick handler Listener. -- Rob -- You received this message because you are subscribed to the Google Groups iPhoneWebDev group. To post to this group, send email to