jessica.morgana Posted December 4, 2013 Share Posted December 4, 2013 Hi Everyone, Probably a dumb question here, but I need to insert a url into an <iframe> and can do this successfully. The url that I am pointing to however is a little strange. The url when we are accessed in our organisation's network is something like http://servername/eservice however should you need to access the exact same page out of our organisation's network it is http://ecityname.rockingham.wa.gov.au/eservice/ . I would like to have in the <iframe> text the ability to show either of these based on what it can bring up (depending if you are in the network or not). I guess it would be a 'or' statement of sort. I am not sure if this can happen so any comments or suggestions would be great! Link to comment Share on other sites More sharing options...
Ingolme Posted December 4, 2013 Share Posted December 4, 2013 Why not use the external URL all the time? It should work even if you're inside the network. If you can do that, it's much better than any other solution. Other solutions are complicated and less reliable. Link to comment Share on other sites More sharing options...
justsomeguy Posted December 4, 2013 Share Posted December 4, 2013 Another solution would be to try to send a request to the internal server using ajax, and checking for a 404 response. You could save that value in a cookie so that you don't have to keep testing it. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now