The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

mikel1982 (1) [Avatar] Offline

Hello world example does not work with Sencha Im getting exception:

Uncaught Error: [ERROR][Anonymous] Using Ext.Msg without requiring Ext.MessageBox

This example should have reference to:
sencha-touch-all-debug.js instead of sencha-touch-debug.js

IMHO since its a Hello World example it should work with just copy&paste
laurie (1) [Avatar] Offline
Re: Hello world
Hi Mikel, had the same issue.

Try the following code (with a requires line added for messagebox) and it'll work fine.

<!DOCTYPE html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" >
<script type="text/javascript" >
<script type="text/javascript">

Ext.require([ 'Ext.MessageBox' ]);
onReady : function() {
'Hello there from Sencha Touch!'


jesus.garcia (463) [Avatar] Offline
Re: Hello world
Thanks for the heads up. I'll look into this and update the chapter contents and the example to allow this work w/ just copying and pasting.