[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Multiple Refreshes on single PHP pager

Posted on 2013-01-06
2
Medium Priority
?
562 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
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
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…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Suggested Courses
Course of the Month17 days, 17 hours left to enroll

830 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