Hi Aseem,

You should probably send the request to Heroku's support.
Since you are asking them to do something.


This list is more of a community support effort, and less of a Heroku please do 
things.

That sounds like a great feature

Best of luck,
Keenan



On Monday, May 28, 2012 at 10:18 PM, Aseem Kishore wrote:

> 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 (http://example.com)";
> 
> Where "example.com (http://example.com)" is the TLD of the current URL. So 
> e.g. if I'm at www.foo.com (http://www.foo.com), it'd be "foo.com 
> (http://foo.com)", and if I'm at my.custom.url.com 
> (http://my.custom.url.com), it'd be "url.com (http://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] 
> (mailto:[email protected])
> For more options, visit this group at
> http://groups.google.com/group/heroku?hl=en_US?hl=en

-- 
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

Reply via email to