Hi everybody,
I am trying to incorporate ajax for all the links opened in the central column ( I have done similar things for other platforms ex. joomla). I am using the xajax library and the main loading concept as follows:
1) jscript at the end of the page (below the closing body tag) changes ALL the links on the page to be loaded via the xajax function (let's say load_xajax('target') to a specified div.
2) I remove all the headers, left and right columns from the targets to get a "raw" code to be loaded onto that div.
3) the "raw" code is loaded to the dedicated div below the breadcrumb
OK, everything works perfectly except one problem - I cannot extract the raw target code without body, head ets tags. If I am using the flags:
$flag_disable_left = true;
$flag_disable_right = true;
$flag_disable_header = true;
$flag_disable_footer = true;
it still generates the complete html page with all the tags (body, head and so on) and css links. As a result I am getting a page with the double html and body tags.
I tried to play with $body_code, but still cannot extract a valid target code to insert into the ajax div.
My question: how to extract the same code that is placed in the center column (require($body_code);)?
I would appreciate some advice from zen gurus.
Thanks
Andy



