Thank you for this useful module however I cannot get it working properly yet.
I have a block with some php-code executing and returning block content. When I load a page with this block as anonimous user the block is just empty. However, if I check page source I see that block content is actually there:
<div id="block-block-11" class="clear-block block block-block">
<div class="content"><div id="block-block-11-ajax-content" class="ajaxblocks-wrapper"><noscript> <block content here></noscript></div></div>
But it is not showing on the page and firebug (Chrome and FF) shows only:
<div id="block-block-11" class="clear-block block block-block">
<div class="content"></div>
</div>
How to make this block to actually show its ajax-loaded content on the final cached page?
Can it be a problem because I use XHTML 1.0 Strict doctype?
Comments
Comment #1
alladdin commentedComment #2
maximpodorov commentedDoes Firebug show http request to /ajaxblocks?some_values address?
Comment #3
alladdin commentedYes, I can see it: http://www.thaiholiday.ru/ajaxblocks?_=1308025877309&blocks=block-11&pat...
Response:
Response Headers:
Request headers:
JSON:
In page source:
Comment #4
maximpodorov commentedCould you try ajaxblocks 6.x-1.x-dev version? It fixes the bug that can be the reason of your problem.
Comment #5
alladdin commentedNo, unfortunatelly it didt help.
Can this problem be in block's php code?
Block:
And this code to work properly needs some code in settings.php:
Comment #6
maximpodorov commentedIf TrustlinkClient constructor inspects the current page URL, it will receive wrong address (/ajaxblocks). Could you try to copy this code (TrustlinkClient initialization) to the block PHP code?
Comment #7
alladdin commentedUnfortunatelly I cannot because I have 3 different blocks with code:
Which results in 3 different links on same page. When I do like you suggest, I get 3 same links.
Your module works. The problem is my php-code. I will try to find solution.
Thank you for your kind help.
Comment #8
alladdin commentedMaxim,
I couldnt find any contact email so will ask here.
Is it possible that you make paid modification for this module and/or to my code to make it working together?
Comment #9
maximpodorov commentedYou can send me email through contact form on my account page. Please give all details of your problem.
Comment #10
alladdin commentedStill cannot find it. In attachment is screenshot of your profile page.
Please send me a word to kashlakov@yandex.ru
Comment #11
maximpodorov commentedSorry, contact form was turned off. I fixed this.