PDA

View Full Version : Firefox (icewaesel) 5.0 and "hello world" not working ?



ikul
4 Jul 2011, 12:49 AM
Hello,
I wanted to try Sencha Touch but I can`t get "Hello world" to work, on my desktop machine. I work on my android phone though. All demos provided on touch side also doesn`t work. Is is some kind of setting in my firefox, has somebody experienced similar problem?

OS: debian sid
Browser: Firefox (icewaesel) 5.0
Lib: sencha-touch-1.1.0

Exception which i got in firebug console:

uncaught exception: [Exception... "Not enough arguments" nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location: "JS frame :: https://lukaszczyk.org/projects/todoek/lib/touch/sencha-touch-debug-w-comments.js :: <TOP_LEVEL> :: line 16971" data: no]Line on which error occured


window.addEventListener('hashchange', this.onChange);

in Ext.History object


Code to reproduce:


<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Hello World</title>

<script src="lib/touch/sencha-touch-debug-w-comments.js" type="text/javascript"></script>
<link href="lib/touch/resources/css/sencha-touch.css" rel="stylesheet" type="text/css" />

<script type="text/javascript">
new Ext.Application({
launch: function() {
new Ext.Panel({
fullscreen: true,
html: 'Hello World!'
});
}
});
</script>

</head>
<body>
</body>
</html>

aCa
4 Jul 2011, 12:59 AM
Sencha Touch only work on webkit browsers. That mean it work on phones like Android and iPhone, but to use on your desktop machine you should test with webkit browsers like Chrome and Safari.

hbbalfred
12 Jul 2011, 9:00 PM
I have a same problem and tried to use Ext.setup instead of the new Ext.Application


Ext.setup({
onReady: function()
{
new Ext.Panel({
fullscreen: true
,
html: 'Hello World!'
});
}
});


I don't know why, but it works on firefox