Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2015-07-30 13:17:10

martin.bocek
Member
Registered: 2015-03-30
Posts: 14

Extension - AJAX problem

Hello,

I have made simple extension using mostly JS which displays some recommendations after user votes in chat. I would like to get some configuration using AJAX call. All I want to do is to get JSON object with my config dependent on current chat from server. I was not able to figure out how does aplication framework work for these cases.

I have tried to trace core ajax calls, for example 'chat/syncusers' in my plugin structure, but when I try to call my extensions URL (http://domain.net/index.php/cse/PLUGINm … /getconfig), I am redirected to homepage.

Remdex, could you please give me some clue how to structure my plugin? I have not found any similar situation in your extensions github repository.

Thanks a lot!

Offline

#2 2015-07-30 17:49:06

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Extension - AJAX problem

Hi,

Take a look at this extension.
https://github.com/LiveHelperChat/osTicket it has single module https://github.com/LiveHelperChat/osTic … lhosticket
And url this extension get is
osticket/createanissue

Also https://github.com/LiveHelperChat/osTic … module.php module file defines what permisions has to have user to be able to access this URL. To allow everyone access module url https://github.com/LiveHelperChat/osTic … le.php#L11 just remove this line.

That's all, hope it helps smile

Offline

#3 2015-07-31 07:02:55

martin.bocek
Member
Registered: 2015-03-30
Posts: 14

Re: Extension - AJAX problem

Thank you, this should save me a lot of time smile

Offline

Board footer