Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1379] webView iphone / simulator cannot handle Raphaeljs

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionInvalid
Resolution Date2011-04-15T02:50:49.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsiphone, webview
ReporterVictor
AssigneeReggie Seagraves
Created2011-04-15T02:50:48.000+0000
Updated2017-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...

Comments

  1. Victor 2011-04-15

    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

  2. Lee Morris 2017-03-09

    Closing ticket as invalid.

JSON Source