Download & Extend

Module doesn't work in subdirectories

Project:Ajax Checklist
Version:5.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

The Javascript code (ajax_checklist.js) assumes the Drupal installation will be the root of the webserver.

That is, if your URL is example.com/drupal/ you have to change every instance of "/ajaxchecklist/" to "/drupal/ajaxchecklist" in that file.

Comments

#1

Wow... THAT's what was wrong. FYI, fixing this bug will apparently also fix this one: http://drupal.org/node/354302.

#2

Release 5-1.3 should fix this. The equivalent code for D6 is in CVS but I haven't had time to test it yet.

#3

I had really trouble getting it running (Drupal V6.9, Subdirectory and prefixed tables). There's a bug in the Code for D6 in the CVS.

For me it worked replacing each "/?q=ajaxchecklist/" in ajax_cecklist.js with "?q=ajaxchecklist/"

#4

comment #3 is spot on.
In Drupal 6 you have to replace every instance of /ajaxchecklist with ?q=ajaxchecklist.

This will result in request urls building on top of your path like so: http://example.com/directory/node/281?q=ajaxchecklist/loadnid/281 and that works just fine.

nobody click here