ajaxeditable_submit not found
Hanno - March 10, 2008 - 21:24
| Project: | ajaxeditable |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
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"

#1
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
#2
Heere is a patch that solves the Problem. It create links like /path-to-my-drupal/?q=this_works_also_without_clean_urls
Changes:
#3
#4
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');
#5
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?