PDA

View Full Version : [SOLVED] Need App tonight, please help!!!



steffenk
10 Apr 2010, 7:53 AM
Hi,

i tried following code i need for my party tonight:



Ext.onReady({
var g = new Grill({ size: 'large'; temperature: 'hot'});
var b = new BeerBarrel({size: '20 liters'});
var m = new Band({style: 'jazz', musicians: 5});
var p = new Guests({amount: 30});

var party = new Ext.App({
items: [g,b,m,p],
renderTo: new Ext.Garden({});
});
});


for some reasons it doesn't work, could you help me please?

aconran
10 Apr 2010, 2:33 PM
for some reasons it doesn't work, could you help me please?

Thanks for a good laugh :)

steffenk
10 Apr 2010, 3:11 PM
I fixed it for you:

var b = new BeerBarrel({size: '75 liters'});

You + 30 guests + 5 musicians = 36 together, so a 20 liters barrel won't last long :))

i feared to make such beginner mistake. Thanks.

And for reproduce ( i got wine instead of beer, heavy metal instead of jazz, and a balcony instead garden):
Run the script from your labtop, but first move outside the house. Be sure noone is looking at you, then quickly run the script: GREAT :) Let's party ;)