Needs work
Project:
Ajax Nodeloader
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
27 Mar 2012 at 18:14 UTC
Updated:
27 Jun 2012 at 22:36 UTC
I try the module in 3 examples :
1. Add ".nodeloader" to a Menu Item (thanks to menu attributes)
2. create a basic page with a link to another page with ".nodeloader"
3. create a jCarousel view and overwrite title links with ".nodeloader"
the result from all is that the ajax-loader.gif is shown in the left upper corner and nothing else happens.
do you have demo somewhere ?
(using drupal 7.12)
Comments
Comment #1
Nick Denry commentedDo you use ".nodeloader" instead of "nodeloader" class?
Comment #2
mogop commentedSorry for my mistake I wrote ".nodeloader" from a Code Point of View :)
I add "nodeloader" trough "Menu Attributes" module
Comment #3
Nick Denry commented1. Ok, first of all please upgrade to the lastest version of module, some code was (re)writen since March 27, 2012
2. Be sure, that your link is opening without "nodeloader" class
3. Be sure, that your title and body are placed at default css selectors like default drupal css theme ("div#squeeze > h2" and "div.node > div.content") by default for Drupal 6 or ("#page-title" and "div.node > div.content") for Drupal 7. If not - you slould use custom css selectors via rel attribute like in example.
4. Still need some info
- If it possible, point your site where module is used on.
5. Example with site using Ajax Nodeloader with Drupal 7.12 and menu_attributes:
http://sumki-best.ru/
Thank you for your reports, I'm trying to improve this module every time.
Comment #4
Nick Denry commentedCan't reproduce. Will re-open issue if repeated.
Comment #5
mogop commented1. Done !2. Done!3. Don't get it! - what "title" and "body" and custom selectors? I'm reading the README file but still can't understand what to do with rel attribute / or do I really need to add anything. I'm using default Drupal 7 theme.
4. http://youtu.be/DZ0zWuIqWQU - i'm using wampserver 2.1 with php 5.3.4, apache 2.2.17, mysql 5.1.53
In your site you don't use rel attribute in the menus.
Comment #6
Nick Denry commentedThanks for your detailed report.
By default you don't need point rel attribute, module should load your title to default "#page-title" css theme selector and your content (body + node fields in pre-configured order) in default "div.node > div.content" css selector. This is "default" selectors, and now you can change them in module settings on admin page.
Rel attribute is used for custom links, if you want to display title or content in absolutely another css selectors, rather than defaults.
Do u get that now?
I've fixed some bugs in AJAX request mechanism for sites, that used multilanguage content and language prefixes (like "en", "ru" and so on), and maybe this solve your problem somehow if it depends on prefixes, but.
As I can see your problem depends on fact you're using server configured on localhost without qualified domain name. Let me explain.
Ajax Nodeloader uses custom registered menu to return JSON object from node path, for example (test.com is local domain):
http://test.com/node_load/node/2, where /node_load/ is specific path to return any node content, and /node/2 is the your link href. But, I assume, that configuration of your server try to check out existance of /node_load/ directory or processing this directory as another site or so on. So, to get module working, you must be sure that /node_load/ path proccessed by Drupal, but not by your apache2 configuration (rewrites in .htaccess or so on).
Maybe, better and easier solution - make your site works on qualified local domain with "document root" like "test.com" or so on which will be processed like "site" but not like apache2 subdirectories.
Anyway, you can send me return code of AJAX request from firebug console after you're cliking the link. (in video format uploaded on youtube).
I've make little video for you as example: http://youtu.be/mQ1feguPqkI
Waiting for your responce,
thanks.
Comment #7
mogop commentedI've got problem creating VirtualHosts with WAMP on Win7 so I'm going to create LAMP on my Ubuntu any time soon and I'll give another shot to the module.
Comment #8
mogop commentedfresh LEMP install with drupal 7.14 No Clean Urls
http://youtu.be/NhycCrVKwOY
Comment #9
Nick Denry commentedOk, I see, never try it without Clean URLs, so I must test it an implement "no clean urls" functionality.
Hope finish it in a few days. Stay connected.
Comment #10
Nick Denry commentedHave implemented support for non-clean URLs sites at 7.x-1.x branch. It yet not tested with multilanguage content, but think it solves your problem.
Implementation for 6.x-1.x and multilanguage sites test in next few days.
Please check it, will wait for your response. Thanks.
Tested on Apache/2.2.16 with mod_rewrite disabled.
Comment #11
mogop commentedJust try 7.x-1.x and it works ;) but ... I noticed some bugs (or maybe is from me)
I have 2 content types Basic page and Article as you can see the article has submitted
1. If there is a published content in the front page when I click a link with .nodeloader it loads the content from the link but the title and submitted
2. If I navigate to an article content and after that click on a link with .nodeloader (basic page) the submitted
3. If I'm on a basic page and click on a article link with .nodeloader submitted
http://youtu.be/UPZjyzvHfzI
Comment #12
Nick Denry commentedWell great report, but I don't think that things you've point are bugs at moment.
All of them became from initial restricted module functionality.
Module was developed for loading only nodes content but not full-ajaxify Drupal pages for few commercial sites, and I've thought that will be good perform a module for that task.
So, it works well for basic sites, but not full-ajaxify things as comments or so on. But, anyway, you've point me the way to expandand and extend module functionality and test some things.
So, now I'm planning realise:
Fix security issue with view unpublished nodes.But If you need another functionality - tell me, and I'll try to realise it soon (if it's not brake module concept).
I'll check your report for possible module bugs.
Stay connected.