Needs review
Project:
AJAXify
Version:
5.x-1.x-dev
Component:
Documentation
Priority:
Critical
Category:
Support request
Assigned:
Reporter:
Created:
5 Jan 2008 at 21:32 UTC
Updated:
29 May 2008 at 12:31 UTC
Jump to comment: Most recent file
Comments
Comment #1
baja_tz commentedsubscribe
Comment #2
scroogie commentedFrom reading the code I understand you choose this field (Node Title (Ajax Load)) in a view and specify the source element to be retrieved and the sink element in which to put the content. It then rewrites the link to retrieve the content with this module, which mimicks index.php behaviour and then parses the output to find the right element. It uses SimpleXMLElement though, which means its PHP5 only.
Comment #3
wolfraem commentedditto
Comment #4
vacilando commentedSubscribe...
Comment #5
tancWould be extremely useful to have some documentation. Can the developer or someone else provide it?
Comment #6
zeta ζ commentedDefine a link on your page with the following property;-
onclick="return ajaxify('target', 'ajaxify/source');— It’s a good idea to havehref="source"too.You should now have something similar to
<a onclick="return ajaxify('div#ajax_node', 'ajaxify/div.node/node/2'); href="example.com/node/2">...</a>If there are other possibilities, or If this doesn’t work for you, please post here. Someone might eventually put this in some official documentation.
Comment #7
teebo commentedHi,
I'm getting a hard time trying to make this work... and I really need it!
This is what I'm implementing: onclick="return ajaxify('div#column2Content', 'ajaxify/div#column2Content/node/12');"
Where the column2Content layer has all teh content variables ($title, $content...) in page.tpl.php .
I'm getting a fatal error.
Any clues why?
Comment #8
zeta ζ commentedCan you confirm that you have;
<a onclick="return ajaxify('div#column2Content', 'ajaxify/div#column2Content/node/12');">...</a>and
<div id="column2Content">...</div>in the same page as the link above, and in node 12?If yes, only thing I can think of is that if your link is inside
<div id="column2Content">...</div>, that might cause confusion to the script.What is the error returned?
Comment #9
teebo commentedThanks for answering so fast.
Yes, I confirm. My div with id="column2Content" is my content container. So every node (actually, page.tpl.php) has it.
I even installed a dummy Drupal (v.5.7) with nothing else but AJAXify and JQuery update (all three with the latest versions).
To make it work, I had to apply every ~"patch" from the issues ( http://drupal.org/project/issues/ajaxify ). And even then, it's not 100% reliable. UNFORTUNATELY because I really want to get this module working.
I even tried with different JQuery files (from 1.1.4 to 1.2.3).
Do you have an example / site where AJAXify is completely functional?
Here is the Fatal error:
I also often get this error simply by browsing a node (not called initially via AJAXify):
This is my configuration:
MySQL database 5.0.45
PHP 5.2.5
PHP register globals Disabled
Unicode library PHP Mbstring Extension
Web server Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.7l DAV/2 PHP/5.2.5
Thanks again for your input.
Comment #10
zeta ζ commentedYou’re welcome to have a look at http://www.scymi.org/bif/ there is not much data in there, and it is only phase I. But click on a link like Reuters, and it will populate the upper box with a node.
The only change I’ve made is in the patch: Not sure, but I think it was specific to what I was doing; shouldn’t hurt though.
Comment #11
teebo commentedBest solution is Javascript tools Dynamicload with Page Array.
Comment #12
ogharib commentedHi teebo,
You have to make sure that the output of your "ajaxify/div#column2Content/node/12" page has an XML structure.
I had the same problem, but the error message disappeared when I found a <br> that I replaced with <br />.
Note that: if you are using TinyMCE module, you would need to set (in "Cleanup and output" section in the module's settings page):
"Verify HTML" to "true" (this will make TinyMCE use <br /> instead of <br>)
Do not forget to update your old nodes to apply the "Verify HTML" option on them.
I hope that would help.
Comment #13
ogharib commentedHi zeta ζ,
Your submitted patch in #10 solved a "too much recursion" problem that I had faced a few days ago.
Thanks.