Thread: Ajax Requests
View Single Post
Old 09-25-2012, 10:29 AM
  xplorer's Avatar 
xplorer xplorer is offline

X-Cart team
Join Date: Jul 2004
Posts: 925

Default Re: Ajax Requests

Yes, it is possible, but it depends on what you do.

You can't directly call a PHP method from JavaScript, but you can run an action in a controller class as follows:

Code: URLHandler.buildURL({target: 'example', action: 'test'}), function(XMLHttpRequest, textStatus, data, valid) { } );

This will run \Xlite\Controller\[current-area]\Example::doActionTest().

Please could you explain the desired behavior in details?
Reply With Quote