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

Nick Denry’s picture

Assigned: Unassigned » Nick Denry
Status: Active » Postponed (maintainer needs more info)

Do you use ".nodeloader" instead of "nodeloader" class?

mogop’s picture

To load node without reloading page you should add class "nodeloader"
to link for node you want to load , i.e.:

<a href="/hode/1" class="nodeloader">Test link</a>

Sorry for my mistake I wrote ".nodeloader" from a Code Point of View :)

<li class="menu-445 last">
<a class="nodeloader" title="About Us" href="/sweetdreams/about-us">About us</a>
</li>

I add "nodeloader" trough "Menu Attributes" module

Nick Denry’s picture

1. 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.

Nick Denry’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Can't reproduce. Will re-open issue if repeated.

mogop’s picture

1. 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.

Nick Denry’s picture

Status: Closed (cannot reproduce) » Active

Thanks for your detailed report.

3. Don't get it! - what "title" and "body" and custom selectors? [...] what to do with rel attribute / or do I really need to add anything.

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?

4. http://youtu.be/DZ0zWuIqWQU - i'm using wampserver 2.1 with php 5.3.4, apache 2.2.17, mysql 5.1.53

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.

mogop’s picture

I'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.

mogop’s picture

fresh LEMP install with drupal 7.14 No Clean Urls

http://youtu.be/NhycCrVKwOY

drupal 7.14
3.2.0-25-generic #40-Ubuntu  x86_64
nginx version: nginx/1.2.1
mysql  Ver 14.14 Distrib 5.5.24, for debian-linux-gnu (x86_64) using readline 6.2
PHP 5.3.10-1ubuntu3.2 (fpm-fcgi) (built: Jun 13 2012 17:23:57)
Nick Denry’s picture

Status: Active » Needs work

Ok, 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.

Nick Denry’s picture

Status: Needs work » Postponed (maintainer needs more info)

Have 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.

mogop’s picture

Just 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

and comments when basic page doesn't have them. I've added two identical menus the horizontal menus have .nodeloader class when those on the left don't.

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

remains from the previous content
2. If I navigate to an article content and after that click on a link with .nodeloader (basic page) the submitted
and comment box remains from the article
3. If I'm on a basic page and click on a article link with .nodeloader submitted
and comments and tags are not loaded, and the content is reordered (the
s for body, submitted, image are rearranged)

http://youtu.be/UPZjyzvHfzI

Nick Denry’s picture

Status: Postponed (maintainer needs more info) » Needs work

Well 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.
  • HTML 5 History API support.
  • Improve hashtag handling.
  • Ajax blocks loading.

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.