Creating new PHP page
Posted: 15 Dec 2016, 14:08
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
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