Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

javascript - Insert iFrame and then have it load before all other content on FF -


i have browser plugins insert iframe webpage. iframe inserted possible (using domcontentloaded) contents of iframe render page.

in firefox doesn't happen however. though iframe seems inserted early, content of page/images/etc load prior iframe's content.

is there way around firefox behavior iframe content can load or first?

not sure if matters here 2 methods equivalent results:

method 1. inserting iframe on domcontentloaded

method 2:

nsiwebprogresslistener()  onstatechange: function (abrowser, awebprogress, arequest, astateflags, astatus) {    const state_start = components.interfaces.nsiwebprogresslistener.state_start;    const state_stop = components.interfaces.nsiwebprogresslistener.state_stop;     if (astateflags & state_stop) { //document undefined @ state_start         try {            //create iframe         } catch (e) {}    } return true; }, 

the listener domcontentloaded fires later 1 think on ff. problem solved using firefox's onlocationchange (which fires on url change) settimeout loop set 50ms.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -