QApplication::Redirect() + WebKit browsers...
Mon, 05/18/2009 - 08:11
Hey guys, I was wondering if anyone else has encountered the problem where JavaScript redirects do not function correctly in WebKit powered browsers. I've found in my current application that when a QApplication::Redirect() is called and decides to send a JavaScript redirect that WebKit browsers do not redirect, but rather just display a balnk page containing the JavaScript redirect code.
Just for clarification, this is on Qcodo 0.3.43 (The project was started about a year ago... :-/ )
Anyone else encountered this?

Okay, can no one help with this? Has no one ever experienced this issue? I noticed that it also happens in Opera...
I just thought I'd add some extra info...
This seems to be related to QEnterKeyEvent()
The scenario is thus:
I have a login page with a
Username textbox, password textbox and login button (Which is actually a qpanel with a class overlaying an image)
The password textbox has:
$this->txtPassword->AddAction(new QEnterKeyEvent(), new QAjaxAction('btnLogin_Click'));
The login button has:
$this->btnLogin->AddAction(new QClickEvent(), new QAjaxAction('btnLogin_Click'));
In Opera and WebKit browsers, hitting enter in the password textbox seems to perform a server-side submit of the form in ajax mode. The end result is an empty page displaying the redirect JS produced by QCodo. (Page content is in the QCodo AJAX output form)
In Firefox and IE7 hitting enter woks fine.
In all browsers, clicking the login button works fine.
Opera in particular has a bug where hitting enter will fire the onclick, but then also cause a full form submission.
http://trac.qcu.be/projects/qcubed/ticket/21 has more info. If you find a solution, please post it! :)
Odd. Has anyone else noticed it in webkit, though?