The custom error and maintenance pages are served by Heroku using an
iframe. The actual returned document looks like this:
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<style type="text/css">
html, body, iframe { margin: 0; padding: 0; height: 100%; }
iframe { display: block; width: 100%; border: none; }
</style>
<title>Offline for Maintenance</title></head>
</head>
<body>
<iframe src="http://example.com/path/to/maintenance.html">
<p>Application Error</p>
</iframe>
</body>
</html>
Within my error page, I'd love to know what the actual URL in the browser
is for a user-help feature. But I can only do that if both frames agree on
the document.domain <https://developer.mozilla.org/en/DOM/document.domain>.
I can do this within my page, but the HTML returned by Heroku is out of my
control. Thus, I'm emailing to request if Heroku could add one line of
JavaScript to this returned HTML:
document.domain = "example.com";
Where "example.com" is the TLD of the current URL. So e.g. if I'm at
www.foo.com, it'd be "foo.com", and if I'm at my.custom.url.com, it'd be "
url.com".
Hope this is feasible! Thanks for the consideration. =)
Aseem
--
You received this message because you are subscribed to the Google
Groups "Heroku" group.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en_US?hl=en