# Refresh dynamically loaded xml

**URL:** <https://forum.kirupa.com/t/refresh-dynamically-loaded-xml/274344>\
**Category:** Uncategorized\
**Created:** [October 28, 2008, 7:02pm UTC](https://forum.kirupa.com/t/refresh-dynamically-loaded-xml/274344 "2008-10-28T19:02:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jibble](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jibble/32/2265_2.png) [@jibble](https://forum.kirupa.com/u/jibble)\
**Post date:** [October 28, 2008, 7:02pm UTC](https://forum.kirupa.com/t/refresh-dynamically-loaded-xml/274344/1 "2008-10-28T19:02:42Z")

</div>

i have a dynamic textfield that is being populated from a data base…

now, i’d like to be able to refresh that content either onRelease or using something like setInterval…

I tried setInterval (see code below) but what i think is happening, being that xml has to load, is that it’s hogging it down causing a flicker/pause and eventually not pull anything up(assuming from the lag/load)

```auto

setInterval (refreshbox, 1000);
function refreshbox () {
theXML.load("http://www.mywebsite.com/xmlout.php");
}

```

is there a more efficiant way to approach this? Is there a way to only update the new stuff in the DB therefore eliminating almost all of the load time?

or it’s also quite possible my code just sucks and isn’t working properly 😛
