List PHP Plug in works one time only

gbarnes

New Member
I have a list with two PHP plug-in buttons. Both work perfectly once, but do not fire if clicked once the table has reloaded. In fact if I just have no PHP and enter code to raise a JS alert in the JS box below te PHP box it looks like the click event is not firing at all. This is confirmed for IE and Firefox.

To see this, go to contrelec.co.uk, log in using username/password fabrik/fabrik, select Saved Quotations from the menu. Click on the tick button, then once reloaded click again or try the thumbs-up button; neither will work.

I can get the buttons working by clicking MY ACCOUNT in the left hand menu, then Saved Quotations. Refreshing the page in the browser does not work. If I add something like ?x=1 to the URL they start to work, so it looks like there might be a caching issue, although I have tried disabling caching in the list.

Hope this info is useful,

Gary
 
List with 2 php plugins is working on my site (with and without list navigation ajaxfied).

Which exact Joomla and Fabrik version?
Did you try with standard Protostar template?
Any special setup (e.g. list in content plugin)?
 
Joomla is 3.3.1
Fabrik is 3.?

The list is loaded by a plug-in, but I get get the same problem on the admin page where it is not.
I've tried it with different templates.

I've now put in a flaky fix to reload the page via the Javascript element:

var url=location.href;
var page=url.split("?")[0];
window.setTimeout(function(){ window.location=page+ '?ux=' + Math.random(); }, 4000);

The 4s delay (4000) has to be long enough for the alert box to appear which suspends operation then the timeout begins after closing the alert. Too short and the page refreshes before the alert appears (although the PHP code runs OK).

Then I updated Fabrik. and removed the JS.
Oh dear.:eek:
Now it doesn't work at all, and just gives me the Loading banner in Firefox.
IE seems to be OK.

Updated Joomla to 3.3.3 and it still doesn't work in Firefox, IE is OK, Chrome is OK.
Verified lack of operation in Firefox on another machine, so it looks like it is browser related.

PS: By 'working' I mean that it still only works once without the JS fix.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top