Search

Hello, I am using michael-e's storage extension. It works well. Now I try to add something with Ajax instead of submitting the form and leaving the page:

$.ajax({
  type: 'POST',
  url: '/system-letzter-besuch',
  data: {
    'storage[einstellungen][letzterbesuch][zeit]':'21:00',
    'storage-action[set]':'submit'
  }
});

Testing in Firebug I see that the data is being transferred, the same way when posting a form:

storage%5Beinstellungen%5D%5Bletzterbesuch%5D%5Bzeit%5D=21%3A00&
storage-action%5Bset%5D=submit

Which is reads as parameters

storage[einstellungen][letzterbesuch][zeit] 21:00
storage-action[set] submit

This looks all right. Nevertheless the data is not added to the storage (I check in the debug view). Does anybody have a hint for me? Thank you!

Ok, finally found the solution in other posts I read before but obviously not well enough: http://www.getsymphony.com/discuss/thread/66592/#position-7 http://www.getsymphony.com/discuss/thread/87597/#position-19

The url needs a trailing slash. Simple but tricky.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details