Links on page disable all Callbacks

thread: 8 messages  |  last: a year ago  |  started: wednesday, august 18, 2010, 11:48 am pdt


#1  |  Geert Heremans (Antwerp,Belgium) Belgium
Wednesday, August 18, 2010, 11:48 AM PDT

Hello Guys,

It has been to long....

I now come to you with a new problem.

I have a datagrid in which I render some links (to an php file that generates a PDF). The links work fine and a PDF gets printed

However when I click on one of the links all QCodo generated buttons don't posback to the server anymore! So nothing works.

Maybe it's worth to mention that the datagrid gets renderd inside a QPanel that in itself gets loaded with Ajax.

Any help will be greatly appreciated!

best regards
GEert

#2  |  Patrick Ranger (Montreal, Qc) Canada
Wednesday, August 18, 2010, 12:53 PM PDT

Hi Geert,

Are there any events that disable actions on the buttons at some point in the process flow? What triggers the loading of the panels?

Patrick

#3  |  Geert Heremans (Antwerp,Belgium) Belgium
Wednesday, August 18, 2010, 1:02 PM PDT

Hi Patrick,

Thank you for taking the time to respond.

There are no disableactions what so ever on the panel/form.

This problem has been reported before by vexed panda:
http://www.qcodo.com/forums/forum.php/0/2143/?search=ajax+not+working

Hope there is a solution for this and I don't need to redirect.

#4  |  Mike Ho (Sunnyvale, CA) United States of America Qcodo Administrator
Wednesday, August 18, 2010, 1:13 PM PDT

Which browser(s) are you seeing this issue -- is it on all browsers?

#5  |  Geert Heremans (Antwerp,Belgium) Belgium
Wednesday, August 18, 2010, 1:18 PM PDT

Hi MIke,

Only firefox. It's a link to a PDF and Safari opens it in the same window.
Firefox gives the “save as” dialog.

best regards
Geert

#6  |  Geert Heremans (Antwerp,Belgium) Belgium
Thursday, August 19, 2010, 6:47 AM PDT

Fixed it by adding target=_blank to the links :-)

#7  |  Zbyszek Czarnecki (Warsaw, PL) Poland
Thursday, August 19, 2010, 9:24 AM PDT

I've made a enhancement to QLinkButton to allow setting target attribute from php:

http://github.com/klucznik/qcodo/commit/b4372d787d8fde711e6fc9c7be045fc009054911

might be useful.

#8  |  Mike Ho (Sunnyvale, CA) United States of America Qcodo Administrator
Friday, August 27, 2010, 10:20 PM PDT

Thanks!  This getting pushed into core as we speak, with one small change I'll be putting in (moving the QTarget abstract class into the _enumerations file)



Copyright © 2005 - 2012, Quasidea Development, LLC
This open-source framework for PHP is released under the terms of The MIT License.