Topic Closed
projects
13 Posts

We are creating a simple plugin and envisioned the following structure:

  • A Gadget for inclusion on any page
  • A Special page from which the gadget can update its content (via AJAX calls)

The problem is that the Special page always appears themed with all the surrounding HTML to make it look nice. But in this case, we need to return only the JSON response for use by the gadget, without any formatting.

Is it possible to make a Special page be "blank" so that it renders only plaintext content?

Edit: It appears that adding "die();" to the Special page yields the output in plaintext, but is this approach undesirable for some reason?

Edited: 3 years ago#10639

a2exfr
242 Posts
27.2K Downloads
2 Themes
10 Plugins

HI

You have a lot of ways to this.

I belive this will help you

3 years ago#10640

projects
13 Posts

Hello a2exfr, thank you for your response and the link to the other post. This is exactly what we were looking for!

Have a great day.

3 years ago#10645

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

HH-Support

Company located in T├│rshavn, Faroe Islands. * Webpage Design * Consultant & Provider of a wide range of programs for visually impaired and dyslextics.

Find out more about our Provider Spotlight

Log In

  Register