Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old September 26th, 2007, 01:41 AM
Registered User
 
Join Date: Sep 2007
Location: Pune, Maharashtra, India.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Refresh part of page using Ajax .

Hi Friends
        I am new in ajax.
I like to refresh iframe which is in .aspx page.
Using ajax How is it possible to automatically refresh this iframe with in 5 minutes?
Thanks in advance

Thanks
Sachin
  #2 (permalink)  
Old September 29th, 2007, 11:39 PM
Friend of Wrox
Points: 1,749, Level: 16
Points: 1,749, Level: 16 Points: 1,749, Level: 16 Points: 1,749, Level: 16
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2007
Location: San Diego, CA, USA.
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts
Default

whatever object you need to refresh can probably be handled with a simple setTimeout function...

myObject = setTimeout(myFunction, 1000)

The time is in milliseconds, so this function refreshes each second. Just multiply by how many seconds you want (off the top of my head, I think 300000 for 5 minutes?)

-------------------------

Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.
  #3 (permalink)  
Old October 2nd, 2007, 07:27 AM
Authorized User
 
Join Date: Apr 2007
Location: Surat, Gujarat, India.
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to tarduk2004
Default

In ajax there is also one control Timer put it on the page like

<asp:Timer id="Timer1" runat="server" OnTick="Timer1_Tick" Interval="1000">
        </asp:Timer>
change the interval property what u want(It in miliseconds ).
Now timer tick event is there write what ever you want to do after specific time in this event.

U will get this event by clicking on timer control.


TarDuk - A Memory Beyond The Life.
  #4 (permalink)  
Old October 3rd, 2007, 06:46 AM
Registered User
 
Join Date: Sep 2007
Location: Pune, Maharashtra, India.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thnks this is really helpfull to me

Thanks
Sachin


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to refresh a part of a webpage sbkumar Javascript How-To 3 June 6th, 2008 11:28 AM
Part of page won't print? Ron Howerton HTML Code Clinic 2 May 28th, 2008 10:01 PM
Can we validate only a part of a web Page mallikalapati ASP.NET 2.0 Professional 2 March 28th, 2008 08:12 AM
I want to refresh data in GridView using Ajax manojujn ASP.NET 2.0 Professional 0 February 10th, 2007 12:41 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.