Kitchensink IE Frame and events problem #208

Open
pyjsorg opened this Issue Apr 27, 2012 · 3 comments

1 participant

@pyjsorg

This is taken from issue 507.

 Go to the Popups page and click ShowDialog AND click an arrowhead to change the image, then close the dialog. If you now go to Text, you cannot get a cursor in the fields. Very odd! This is even odder. Now go to Frames and click an arrowhead to change the image. If you now go back to Text, it's working again! I think you can go round that cycle ad infinitum.
 Looks like something to do with the way frames are used in ShowDialoue, but I wouldn't have a clue where to start looking for it. 

Is the same for IE, not for FF/Chrome.

Looks like it's a browser problem then. That would figure, since all that clicking the arrowheads is doing is following link in the html, so it's really nothing to do with Pyjamas. I wonder if there's a way of working around it?

Original issue: http://code.google.com/p/pyjamas/issues/detail?id=511 (November 08, 2010 07:08:23)

@pyjsorg

From cornelis...@gmail.com on November 08, 2010 07:11:03:
This problem exists in IE (pyjs) and mshtml (pyjd).

@pyjsorg

From jpcharle...@gmail.com on April 18, 2012 11:15:28:
This problem is still around for IE8/MSHTML (I haven't tested IE9).

There is, however, a simple work around. In Popups/MyDialog, if you save the original URL of the Frame and then, in onClick, reset the Frame to that saved URL before hiding it, the problem does not occur. Oddly enough, restoring the Frame to its original URL by manually clicking the triangular buttons in either direction does NOT fix the problem.

It might be worth incorporating this work around in the KitchenSink example with a note about why it's there. I have attached a diff which modifies Popups/.py and also the README file which was a note of the original problem.

@pyjsorg

From luke.lei...@gmail.com on April 18, 2012 12:20:43:
bizarre!
hmmm... i wonder if this is worth raising on the gwt mailing list?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment