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
Creating new PHP page
Moderators: Developer, Contributor
Re: Creating new PHP page
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.