Hi,

I got the following error in a pop up that ajaxeditable_submit was not found.
NB: I am not using clean urls.

Error, unable to make update:

404 Not Found

Not Found

The requested URL /ajaxeditable_submit was not found on this server.


Apache/2.0.52 (Red Hat) Server at www.kdvchecker.nl Port 80

type: "POST"

CommentFileSizeAuthor
#2 ajaxeditable-232542-1.patch2.3 KBJoshua Brunner

Comments

Joshua Brunner’s picture

Hi, the paths are hardcoded in the file: modules/ajaxeditable/ajaxeditable.js. you have to correct the paths on the following lines:

My version look like this:
17: $(this).load("/my-drupal-path/?q=ajaxeditable_html/"+$(this).attr("nid")+"/"+$(this).attr("field"),null,ajaxchanger);
32: url: "/my-drupal-path/?q=ajaxeditable_submit",
38: (this.element).load("/my-drupal-path/?q=ajaxeditable_html/"+$(this.element).attr("nid")+"/"+$(this.element).attr("field"),null,ajaxchanger);

Greetings Joshua

Joshua Brunner’s picture

StatusFileSize
new2.3 KB

Heere is a patch that solves the Problem. It create links like /path-to-my-drupal/?q=this_works_also_without_clean_urls

Changes:

  • Add JS var Drupal_ajaxeditable_base_path in ajaxeditable.module
  • Using of Drupal_ajaxeditable_base_path in ajaxeditable.js on Line: 17, 32 and 38.
doc2@drupalfr.org’s picture

Status: Active » Needs review
hanno’s picture

this patch worked for me, but only when using extra ' in this line before and behind base_path():
drupal_add_js("var Drupal_ajaxeditable_base_path = '" . base_path() . "';", 'inline');

yngvewb’s picture

This patch made ajaxeditable work (with the update from #4)! It works on FF 3 and Opera 9.5, but not in IE 7. Does it works for you in IE?