[TIMOB-1379] webView iphone / simulator cannot handle Raphaeljs
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2011-04-15T02:50:49.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | iphone, webview |
Reporter | Victor |
Assignee | Reggie Seagraves |
Created | 2011-04-15T02:50:48.000+0000 |
Updated | 2017-03-09T23:17:33.000+0000 |
Description
update: invalid, see comments and http://github.com/DmitryBaranovskiy/raphael/issues/issue/185/">http://github.com/DmitryBaranovskiy/raphael/issues/issue/185/
Dear Appcelerator developers,
I've come across a weird webView issue:
For some reason the great raphaeljs cross browser svg library won't
work in Titanium's webView, although it does not give any problems
in the regular mobile safari (both in iphone simulator and on
device)
To reproduce you can simply view the differences between
browsing to this official Raphael touch example in (mobile)
safari:
http://raphaeljs.com/touches.html">http://raphaeljs.com/touches.html
and compare this to creating a webView in an empty Titanium mobile
project which has the url property set to the same location:
var win = Ti.UI.currentWindow;
var webView = Ti.UI.createWebView({url:'http://raphaeljs.com/touches.html'})">http://raphaeljs.com/touches.html'});
win.add(webView);
Somehow the script breaks on the Titanium webView. When I try to include a local copy of the raphael.js source file in a Titanium project the jsLint won't continue because of too much warnings. Someone told me to edit the compiler.js source file to switch of the jsLint feature, but this won't change anything to the webView not being able to render it.
see the related forum question:
http://developer.appcelerator.com/question/46241/jslint-prevents-raphaeljs-to-be-used">
http://developer.appcelerator.com/question/46241/jslint-prevents-ra...
This ticket can be set to invalid, I could trace the weirdness back to an issue with the Raphaeljs source code. It tested with a regex for a particular 'Version/' in the navigator.userAgent property which is apparently changed/different than the mobile safari userAgent. More information about this non-titanium issue which also affects the simple 'add to homescreen' feature of mobile safari can be read here: http://github.com/DmitryBaranovskiy/raphael/issues#issue/185">http://github.com/DmitryBaranovskiy/raphael/issues#issue/185
Closing ticket as invalid.