How to test for Mobile Safari that supports upload other than version string? - file-upload

iOS 6 now supports uploading images via the <input type='file'> tag.
Is there any way to check for this support other than getting the user agent and checking whether the Safari version is 6.0 or greater? That seems kinda kludgy and prone to breaking if the user agent changes in the future. Also I'm not sure how it would work if users are using alternate browsers.

On my second generation iPod Touch (iOS 4.2.1), the following line of jQuery code evaluates as true in both Safari and Atomic Web Browser Lite and false in Opera Mini (since Opera Mini supports file uploads). On iPhone Simulator (iOS 6.0), it also evaluates as false.
$('#selector').prop('disabled')

Related

Is it possible to run embedded WebKit on Windows Phone?

There we have an web app developed for Android and iPhone (using webview). It is based on Sencha Touch 1.1.1. Thus it runs only on WebKit based browsers, and not on Internet Explorer. I want it to run it on Windows Phone, thus I need to run WebKit (not IE) inside the app (as webview).
Is it possible to build a Windows app with webview which used WebKit?

Render camera preview in Chrome using Native Client SDK

I'm trying to write ppapi plugin for Chrome which will use webcam (show preview and write file). I have installed NaCl sdk with pepper_35.
There available examples in /examples/api/ folder: media_stream_audio and media_stream_video.
The audio example works fine - requests access to microphone and shows some kind of preview.
The "media_stream_video" example must show web-camera video preview, but when I load example on the local web server (with make serve command), there appears red rect, and Chrome asks for the web camera access. When I click “allow” - webcam indicator lights-up, chrome show that web page uses the web camera, and I see the camera settings icon. But the preview doesn't work, there still red rectangle instead.
I checked this on Windows 8.1, Windows 7 and Mac OS X, with five different webcams, and have no idea what can be wrong.
Maybe someone already encountered with the same problem?
Installing the pepper_37(dev) version of NaCl SDK solved the problem. Looks like it is unstable version currently, but it works.

Sencha 2.0 App file size issue -

I have developed a small Sencha Touch 2.0 app. Here is the url:
http://apps.swarnendude.com/sencha/iphonetest/iphoneTest.html?url=http://apps.innofied.com/sencha/gts
The app works in perfectly fine in Android 2.3, iPad, iPhone, Blackberry Playbook. But the app crashes while I test in Blackberry Torch (OS: 6.0) giving this error:
"The page you requested could not be loaded. It is too large for this device"
The production version of the file sizes are:
sencha-touch.js: 90.5Kb
app-all.js: 401.4Kb
app-all.css: 151.5Kb
Other resources: 10Kb
So, total around 650Kb. I think the sizes can be reduced more but I am not getting any other options. I am using the least css configs in SASS file and in JS too (only which are required). Is there anyone getting the same problem? Any solution?
It seems that you attempted to minimize your app, so in this case, there's not much you could do.
I'm using Blackberry Bold and occasionally see this when I use native browser. But in some cases, Opera Mini and Bolt Browser are good suggestions to pass those errors.

Is there no WebGL implementation in Opera 12.0?

I am trying to get WebGL running with Opera 12.0 (Mac OS X Lion).
The Opera Website states that WebGL is supported, although if I check it via the WebGL check website, Opera doesn't really seem to work.
Everything I tried is working fine in latest Chrome.
Is there anything I have to change in Opera's prefs to enable WebGL or is it just not supported at all?
Open opera:gpu and see if your video card is block-listed.
If there is a text: Vega backend: Software, it means HW Acceleration got auto disabled because of previous crashes ;) Easiest fix is re-installation. Or separate side-by-side installation.
I have had a similar problem yesterday, now its fixed - and i can see:
http://www.khronos.org/webgl/wiki/Demo_Repository
http://maps3d.svc.nokia.com/webgl/
For google webgl experiments - many of them do not work even in chrome 17.
Make sure that you have webGL enabled in options which are acessible through url:
opera:config
just type webgl in search input

Safari browser - Mac vs Windows vs iOS

Can anyone let me know what is the difference between testing a Safari 5 in Windows vs Mac? Are there significant changes in how the page is rendered between windows vs Mac for the same version of Safari? If I test a page in Windows Safari, can I expect the page works exactly same in Mac Safari as long as Safari version matches?
Thanks
Not significant but there are subtle differences, it's difficult to list them as I think it will depend on the html/css and version.
I have noticed small differences on one of my sites in the past, but as I can't remember the details I've found another example that someone has documented.
Anyway, I've satisfied myself that the differences I've seen are too subtle to fully test every release on each machine (the budget is small!), only on major changes.
One small difference for instance is that the iOS version won't allow you autoplay of any media (audio or video) in its html5 player whilst the Windows and Mac versions do.
i notice few thing in windows safari and mac safari,when we choose an image in windows safari then its not display as preview but in mac safari its display as preview before upload.so File reader api is not supporting blog type.