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

Joshua Brunner - April 9, 2008 - 08:28

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

Joshua Brunner - April 9, 2008 - 09:20

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.
AttachmentSize
ajaxeditable-232542-1.patch 2.3 KB

#3

doc2@drupalfr.org - May 6, 2008 - 11:18
Status:active» needs review

#4

Hanno - May 21, 2008 - 23:12

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

yngvewb - August 6, 2008 - 14:36

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?

 
 

Drupal is a registered trademark of Dries Buytaert.