Topic Closed
fly06
263 Posts
20.9K Downloads
1 Themes
8 Plugins

Hi,

I'd like to refresh the html content of a gadget using ajax (by clicking on a refresh button for instance).

How can I reach the gadget php file from the js code (ajax) if my plugin does not contain a Special link?

(I don't need any Special link in this plugin).

 

9 years ago#7128

fly06
263 Posts
20.9K Downloads
1 Themes
8 Plugins

Problem solved.

Thanks.

9 years ago#7135

jogai
264 Posts
How?
9 years ago#7142

fly06
263 Posts
20.9K Downloads
1 Themes
8 Plugins

Let's say that you have an Ajax.php file in your plugin directory.

In this Ajax.php file you start by recreating a gpEasy context and once it's done you can safely call your gadget by using the GetGadget() method of the gpOutput class.

The jQuery ajax request can now point directly to this Ajax.php file.

I hope that answers your question. 

9 years ago#7144

Topic Closed

 

News

elFinder 2.1.50 in Upcoming Release
12/28/2019

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1
8/12/2017

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

Log In

  Register