ajax and ezhttptool.php

Author Message

florian bellenger

Monday 16 February 2009 9:35:41 am

Hello,

I would like to create/change a custom value of the session of the user whithout loading the page again.

I tried with ezxajax but it's not working.

So, I only used ajax.

I've created a custom php file that I manage to call with my XMLHttpRequest object.

Whithin my php file, I would like to use ezhttptool object (from "lib/ezutils/classes/ezhttptool.php") to change my session value but that's not working.

How would you do it?

Thank you for your help.

Florian.

André R.

Monday 16 February 2009 1:18:18 pm

It should work in a normal eZ Publish view or ezxajax code as long as the eZSession handler is loaded and handles the sessions, in views this is done automatically for you in index.php, and I guess the same goes for ezxajax functions.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

florian bellenger

Wednesday 04 March 2009 1:38:44 am

At the end, I tried to do it without ezxajax. I create my xmlHttpRequest object with a simple javascript function. Then, I open with it the url of a custom view I have created. Inside that view, I call a simple "change_attribute" identifier.

Florian.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.