Building on a RHEL4 machine. with pyjs-pyjs-ade2da9 downloaded today. (pyjs-pyjs-0.8-0-g2829c12.zip)
This fails in Firefox 3.6.26 on RHEL4 using file:///home/.../output/Hello.html when loading the page with a 'elem is null' AttributeError when executing this command: self.setHTML(0, 0, html) $ rm -rf *.js output; ./build.sh --strict This works in Firefox on RHEL4 using file:///home/.../output/Hello.html $ rm -rf *.js output; ./build.sh --strict --no-compile-inplace A clock icon comes up when one clicks on a pyjamas icon But this working version when run on IE version 8.0.6001.18702 using http://domain/EngShare/home/.../Hello.html gives the following error when one clicks on a pyjamas icon Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; MS-RTC LM 8) Timestamp: Thu, 31 May 2012 21:08:48 UTC Message: Exception thrown and not caught Line: 29191 Char: 19 Code: 0 URI: http://domain/EngShare/home/.../Hello.ie6.cache.html $p['printFunc'](['hello', $p['dir'](event)], 1); $pyjs.track.lineno=65; iHTMLImageElement = (typeof event['target']=='undefined'? 29191 (function(){throw TypeError("event['target'] is undefined");})(): (($attr1=($attr2=event)['target']) == null || (($attr2.__is_instance__) && typeof $attr1 == 'function') || (typeof $attr1['__get__'] == 'function')? $p['getattr']($attr2, 'target'): event['target'])); $pyjs.track.lineno=81; I The problem is caused by this line (see attached code) iHTMLImageElement = event.target If I move the triple quotes up one line so the above line is included between the triple quotes the problem disappears on IE.. This line does not cause an error with Firefox 3.6.26 def onCellClickedEvent(self, sender, row, col, event, td): iHTMLImageElement = event.target ''' img_src = iHTMLImageElement.getAttribute('data-img_src') ... --- On Thu, 5/31/12, C Anthony Risinger <[email protected]> wrote: From: C Anthony Risinger <[email protected]> Subject: Re: [pyjs-users] PopupPanel instance fails on IE (Windows XP and 7) To: [email protected] Date: Thursday, May 31, 2012, 12:22 AM On Wed, May 30, 2012 at 6:41 PM, Norman Shelley <[email protected]> wrote: > > I have a small app which brings up an instance of a class which inherits from > PopupPanel and shows an image and waits for a click to hide it. It works well > on Firefox but it fails on IE (Windows XP and 7) at line 17450 (version 0.8 > of pyjs). which browser versions (you dropped some names but omitted versions)? what is the exact cmdline used to translate/build (try --strict)? can you reproduce with latest code? could you please provide a test case so we may begin investigations? nothing fancy ... just need to reproduce. be sure to try latest tip; useful to know if problem is already solved. thanks, -- C Anthony
helloworld.tgz
Description: GNU Zip compressed data
