13 Replies Latest reply on Oct 1, 2015 10:11 AM by Stephane Jean

    How do I get BadLinkURI to show on Error 404

    Jay Jensen

      We are using RhoElements in out enterprise to allow our users to access various intranet sites tailored for mobile. We have an upcoming deployment of a new http module on each sites server but it has not been implemented yet but we are deploying our mobile devices with the icon to that loads RhoElements and browses to that sites specific intranet site. It has DebugButtons set to 0 so the user cannot access any other sites. The issue I am having is how to configure the xml so that BadLinkURI loads a BadLink.html file that is locally stored on the mobile device when the sites server returns a "404 error - page can not be found" The reson for this is once we get the 404 error we can not exit out of RhoElements because of the Debug Buttons. This is all in case the user accidentally clicks on the icon or in the future if there is somehting that goes wrong with the server and the module does not load for what ever reason. The Server exists and the handheld is online and can reach it just the http module will not be installed until a later date and my understanding is the NavTimout and BadLinkURI do not work this way when it is the start page. Any Ideas?

        • Re: How do I get BadLinkURI to show on Error 404
          Joydeep Chakraborty

          Hi Jay,

          Which device are you using?


          Badlink feature of RhoMobileSuite is not designed to handle 404 error. Badlink feature is designed to know whether server is reachable or not. In case of 404 it can reach out to server and server returns 404 error page as server can not find the requested page. So 404 error can not be redirected to Badlink page.


          In such cases,you can redesign the 404 error page in the server and add a HTML button to navigate back. So in your case if somebody accidentally encounters 404 error,then they can press back and come back to last visited page.


          <button onclick="goBack()">Go Back</button>



          function goBack() {