# Iframe not updating when changing time parameter

**URL:** <https://discuss.elastic.co/t/iframe-not-updating-when-changing-time-parameter/66407>\
**Category:** Kibana\
**Created:** [November 17, 2016, 2:16pm UTC](https://discuss.elastic.co/t/iframe-not-updating-when-changing-time-parameter/66407 "2016-11-17T14:16:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joao\_Garin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joao_garin/32/13244_2.png) [@Joao\_Garin](https://discuss.elastic.co/u/Joao_Garin)\
**Post date:** [November 17, 2016, 2:16pm UTC](https://discuss.elastic.co/t/iframe-not-updating-when-changing-time-parameter/66407/1 "2016-11-17T14:16:51Z")

</div>

Hello all,

I am running Kibana 5.0.0 and using the share option for putting the dashboard in the page I want it to display in.

In that page I also have two dropdown boxes for some datepickers to put the time in the dashboard.

That works well for the snapshot sharing, but for the "Live" sharing where changes to the dashboard will reflect automatically on the page where it is embeded this does not work, whatever interval I put in the time parameter it will always show whatever is set on the dashboard in kibana.

The URL looks something like [https://urlofmyapp/app/kibana#/dashboard/Dashboard?\_g=(refreshInterval:(display:Off,pause:!f,value:0),time:(from:now-90d,mode:quick,to:now)](https://urlofmyapp/app/kibana#/dashboard/Dashboard?_g=(refreshInterval:(display:Off,pause:!f,value:0),time:(from:now-90d,mode:quick,to:now)))&embed&embed

and when I change the time to anything else it always shows the -90 days untill now

Any idea why this behaviour occurs?

Best regards  
Joao Garin

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [November 18, 2016, 12:20am UTC](https://discuss.elastic.co/t/iframe-not-updating-when-changing-time-parameter/66407/2 "2016-11-18T00:20:13Z")

</div>

Was the dashboard saved with "last 90 days" as the time frame?

Try changing your time range, copy the URL that gets generated, and paste it into a new window and see if it works that way. If it does, something could be wrong with your code.

> [@Joao\_Garin](#):
>
> [https://urlofmyapp/app/kibana#/dashboard/Dashboard?\_g=(refreshInterval:(display:Off,pause:!f,value:0),time:(from:now-90d,mode:quick,to:now)](https://urlofmyapp/app/kibana#/dashboard/Dashboard?_g=(refreshInterval:(display:Off,pause:!f,value:0),time:(from:now-90d,mode:quick,to:now)))&embed&embed

Looks like something weird is happening here. If you are just modifying the time range, then it would look something like:

```auto
https://url-to-kibana/app/kibana#/dashboard/Dashboard?embed=true&_g=(refreshInterval%3A(display%3AOff%2Cpause%3A!f%2Cvalue%3A0)%2Ctime%3A(from%3Anow-15m%2Cmode%3Aquick%2Cto%3Anow))

```

For some reason, you have 2 `&embed` in your URL, and there's no URL encoding on the Rison parts.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 16, 2016, 12:20am UTC](https://discuss.elastic.co/t/iframe-not-updating-when-changing-time-parameter/66407/3 "2016-12-16T00:20:19Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
