Execute js in html loaded page with sencha.

Update : scroll for part 2 ! Part 1 : evil eval trick Ok. So I load html in a sencha panel like this : Ext.Ajax.request({ url:’mypage.html’, success:function(response, options) { Ext.getCmp(‘myPanel’).update(response.responseText, true); }, failure:function(response, options) { // Redirect to success for status == 0 for local files if (response.responseText && response.status == 0) this.success(response, options); [...]

imgzr.js : jQuery image selector based on screen width

Update: february 24, 2012 : changing the img source only when needed. Update: january 17, 2012 : now with REAL screen orientation detection and browser resize. Update: january 13, 2012 : now with screen orientation detection. how to use Include : jquery. Include jquery smartresize : https://github.com/louisremi/jquery-smartresize/ Include the imgzr.js file. $(function () { $(‘body’).imgzr(); }); It will look [...]