Originally posted by Scott Klement
View Post
There is nothing wrong with your solution. We tried it out, and it does redirect just like you say. Other's may find this thread and like your solution best for their situation. We weren't aware of a solution like the one you provided before, so we appreciate your insight. But, at this point we are preferring the solution I mentioned above, which is the meta refresh redirect html element. It gives us an intermediate screen that we can let the user know they are being transported to an outside domain before the redirect happens, so there are no surprises. (Yes we could easily say it also on the prior page, but we are liking this right now)
All of the solutions provided only work if specific html or script is rendered to the page after the back end RPG code has ran and the page is loaded. Originally, we were wondering if there was an RPGLE / CGIDEV2 command that could be executed from within the program itself to cause the redirect to happen without needing to write anything else out to the page. It seems as though that may not be possible.
Anyways, we are satisfied now with the direction we are going. Appreciate your help on the matter!
Leave a comment: