Javascript onblur webpage update issues.

P

proudpapa2005

Thanks for having a look!
The issue I am dealing with here is that I am trying to update a
webpage when the focus goes away from the page. For example I have a
xml database and a form that users add data to. Put simply anyways. The
problem is I cannot find a way to use the windows.onblur or onblur with
any other object that updates the page when it is supposed to.
I had some simple code that updates the XML and attempted to use
onblur.
I was using SetTimeout to update the page every minute or so. The
update method works fine, I just cannot come up with the right onblur
code that will only update the page when the focus is lost. If the page
has focus at all i would like the updates to stop, and resume once it
loses focus. It contains input fields, and drop down boxes, etc..and I
think that messes with onfocus onblur of the window. Could someone
point me in the right direction on this.
Any assistance would be greatly appreciated!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top