This.Document.Body.contentEditable = .T. && This is a good context menuI have tried to wrap that command in TYPE commands attempting to issue it only when "this.document.body" is an object type, but no joy.
* Navigate to a blank page *This.Navigate2("About:Blank") * Prevent an OLE error, and wait until the object * gets the blank page open before showing or accessing LOCAL lnLoadTimeout lnLoadTimeout = 6 && seconds WITH This.OBJECT .Navigate("about:blank") * Wait for load completion lnStartSeconds = SECONDS() DO WHILE .ReadyState <> 4 ; AND (SECONDS()-lnStartSeconds <= lnLoadTimeout ) DOEVENTS ENDDO ENDWITHBecause i dont see an explicit call to DownloadComplete in the class, I assume that the method is called by the .Navigate method natively.
IF FILE("&lcHTMLfile") WITH Thisform.Chtmleditor1.oIE .Navigate("&lcHTMLFile") DO WHILE .ReadyState != 4 DOEVENTS ENDDO .Document.Body.contentEditable = .T. ENDWITH ENDIFThe class's DownloadComplete method which issues the problematic "document.body.contentEditable" command appears to be redundant based on my situation, but i'm wondering if i am moving the problem from one method to another. Plus its hard to produce, but consistant enough to cause headaches.