Skip to content

Instantly share code, notes, and snippets.

@alexburner
Created December 31, 2011 22:34
Show Gist options
  • Save alexburner/1545542 to your computer and use it in GitHub Desktop.
Save alexburner/1545542 to your computer and use it in GitHub Desktop.
testing weird titanium debug message
Ti.UI.setBackgroundColor( '#000' );
var clearBtn = Ti.UI.createButton({
title: 'Clear'
});
var addBtn = Ti.UI.createButton({
title: 'Add'
});
var win = Ti.UI.createWindow({
title: 'Root Win',
tabBarHidden: true,
leftNavButton: clearBtn,
rightNavButton: addBtn
});
var tab = Ti.UI.createTab({
title: 'Root Tab',
window: win
});
var grp = Ti.UI.createTabGroup({
tabs: [ tab ],
zIndex: 0
});
grp.open();
var webview = Ti.UI.createWebView({
top: 0,
left: 0,
right: 0,
bottom: 0
});
win.add(webview);
clearBtn.addEventListener('click', function () {
webview.html = '<html></<html>';
});
addBtn.addEventListener('click', function () {
webview.html = '<html><head></head><body>HELLO WORLD</body></html>';
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment