Launching the camera from the mobile browser - iphone

I want to launch the camera from my mobile browser(Safari) in my iPhone. Is there a way to do
it. I guess in iOS 6 I can do it , but I am not aware of how to achieve my task .
Any help is greatly appreciated.

You can open Camera from your mobile browser. For this you need to use Some Already available Javascript APIs. Like we have in PhoneGAP framework. You can see the example at this Link.

In iOS6, you can try the following if what you are trying to accomplish is setting up a web page which will open the camera from safari.
<input type="file" accept="image/*" capture="camera">
<input type="file" accept="video/*" capture="camera">
It will act like a regular file upload, but instead, it will open the iPhone camera and upload a picture or a video.

Related

getUserMedia alternative for iOS

Does anyone know if there are any (near) future plans to enable getUserMedia for Safari on iOS?
Secondarily, does anyone know of any work-arounds to access the camera from a standard mobile website on an iPhone? I saw a post that referenced:
<input type="file" accept="image/*" capture="camera">
Can anyone confirm that this really works, and would I use this in lieu of getUserMedia, or would I do a browser/device detect first to determine if I should go the getUserMedia v. capture="camera" route?
Well, I'm not sure what you want, but I saw this javascript code that works, I mean it takes the picture.
<script>
$("#image-picker").change( function (event) {
var files = event.target.files;
if (files.length>0) {
}
});
/script>
<input id="image-picker" type="file" accept="image/*" />
If you want to save, you got me there, I still don't know how to save the picture you take. Hope this helps you.

why is my <object>not shown on iphone?

i want to show a forreign website as in my phonegap App on iphone. I see the Website in the when i view the app in firefox but there is nothing shown on iphone. Any idea or solutions? (the url is just an example)
<div id="divSvgView" dojoType="dojox.mobile.ScrollableView" style="background-color: #d0d0d0;">
<object type="txt/html" id="svgObject" data="http://heise.de" style="width:400px; height:400px;margin1%;"></object>
</div>
greets Tom
Try Using type="application/xhtml+xml"? This seems to be required in some versions of desktop and iOS Safari to get things working.

File uploading in iphone using vb.net

The html tag for file uploading is not working in iphone:
<input type="file" id="Fileid1" runat="server"/>
It is showing inactive in iphone in aspx page. So how the file uploading can run in iphone using html...
I have checked and it's working using below code:
input type="file" accept="image/*;capture=camera">
File upload is not supported using a web interface in ios.

Is there a "onFinishedSpeeking" option for html5 x-webkit-speech?

I am creating an html5 app that uses x-webkit-speech.
For those not familiar with x-webkit-speech, it is added to regular inputs like this, <input type="text" x-webkit-speech />, and then gives the user the ability to use their voice instead of their keyboard.
I was wondering how to submit a form when you are done speaking. Google does it on their homepage, so I know it is possible, I just have no idea how to do it.
Thanks,
Ian
Looking at this webkit demo by stoyan stefanov, the event you're looking for is onwebkitspeechchange

How can I send an sms from an iphone webapp using a link?

I saw a tutorial on the web which said I could do this:
http://geekswithblogs.net/MobileLOB/archive/2009/03/13/sending-sms-in-iphone-web-app.aspx
<A HREF=”SMS:2323232232”/>TXT ME</A>
: but when I click this link on my iphone the sms app is opened but the body of the message is empty
With sms: URL scheme you can only specify the destination number. Starting with iOS 4 it's possible to send an SMS from a native app using MessageComposer.
Read again your linked tutorial. It said that adding body=... doesn't work.
I think your problem is because you've copied the quotes from somewhere, which converted it into text-quotes.
<A HREF=”SMS:2323232232”/>TXT ME</A>
should be
<A HREF="SMS:2323232232"/>TXT ME</A>