Creating new PHP page

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
MartinW
Posts: 5
Joined: 15 Dec 2016, 13:02

Creating new PHP page

Post by MartinW »

Hi,

I want to add AJAX functionality to the bug_report_page in order to populate a drop down on-the-fly, similar to the Wiki page,https://www.mantisbt.org/wiki/doku.php/ ... quirements. The Wiki page talks about the process generally but has no specifics in terms of linking it all up. As XmlHTTP expects a page destination (rather than a method), I've added a page to do the work for me. However, I get a 401 (Unauthorised) error. I guess I need to add some 'front' processing to my new page but apart from auth_ensure_user_authenticated();, I'm unsure what else.

Can someone please tell me what I need to do to allow my new PHP page to be accepted by the system and therefore return my new value to the drop down box?

TIA
Martin
MartinW
Posts: 5
Joined: 15 Dec 2016, 13:02

Re: Creating new PHP page

Post by MartinW »

Thanks to anyone who may have read this and wondered. It would appear that the error has gone away after a holiday but more likely that the server was either just having a 'wobbly' or the refinements in my code sorted it out! All good now. :roll:
Post Reply