ajax div swap causes page position to reset
I have this code which replaces the initial loaded graph (about hit data) with an updated version (refreshes every minute).
$('##dnsGraph').fadeOut("slow").load('dnsStatsNowG raph.cfm?dnsID=#dnsID#').fadeIn("slow");
The graph is 'below the fold' so when you look at it, the page is halfway scrolled down. When that div refreshes, it kicks the page back up to the top and you have to scroll down again.
Ideas?
__________________
Originally posted by: n0cmonkey
You're being difficult. You have not provided us with the information we need to troubleshoot the problem. You have not given us errors, you're vague about where the problem is, you are not answering the questions we ask. In short, you DON'T KNOW HOW TO THINK. Give back that piece of paper you think makes your intelligent, apologize, destroy your computer and go live in the woods kid.
|