?
Solved

Multiple Refreshes on single PHP pager

Posted on 2013-01-06
2
Medium Priority
?
559 Views
Last Modified: 2013-01-06
I have a php/mysql page where I need to diplay form sections with different auto refresh times. One area needs to refresh every 10 sec and another section needs to refresh every 30 seconds, and of course, without a page reload. I'm thinking I can do it by refreshing certain <div> id's but not sure.
Right now I have the entire page reloading via an ajax load() routine every 10 sec and it works fine but the users now need different reload times.
Another issue is that I have an iframe with separate queries that works okay but when the parent page refreshes, it reloads, very ugly.  
Any suggestions would be appreciated.
0
Comment
Question by:kevbob650
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 12

Accepted Solution

by:
sivagnanam chandrakanth earned 2000 total points
ID: 38749769
You can auto refresh multiple div's different timing, so in that case your iframe will not reload and thus solving the problem of iframe issue...see the examples below

http://www.9lessons.info/2009/07/auto-load-refresh-every-10-seconds-with.html

http://www.brightcherry.co.uk/scribbles/jquery-auto-refresh-div-every-x-seconds/
0
 

Author Closing Comment

by:kevbob650
ID: 38749822
That's what I needed. I couldn't find it when searching!  Thanks sivagnanam_c
0

Featured Post

Stack Overflow Podcast - Developer Story

Welcome to the Stack Overflow podcast recorded Thursday July 20 at Stack Overflow Headquearters in NYC. Your hosts today are podcast regulars Jay Hanlon, David Fullerton, and Ilana Yitzhaki, plus the quite irregular Matt Sherman (Stack Overflow Engineering Manager extraordinaire)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question