Solved

Update DIV tag with AJAX using a timer

Posted on 2010-09-07
1
448 Views
Last Modified: 2012-05-10
Hi

I am new to Ajax and getting there, but am now stuck !

I have created a web service that can be called by Ajax to return a value. What I want now, is a timer to call that web service at a fixed interval

What I have done, works perfectly when you click a button, it calls the javascript function, which calls the web service and updates the value

I have done this by putting this into the Page_Load on the asp.net: ListBox1.Attributes.Add(@"onchange", "GetNotificationsCount('value');");

I have searched the internet and everything related to Timers seems to involve UpdatePanels and I can't work out how to get that to then link to a javascript function

So, what I need, is a timer that will call the GetNotificationsCount function at a defined interval, is this possible, if so how ?

Thank you very much
0
Comment
Question by:seancurt
1 Comment
 
LVL 18

Accepted Solution

by:
Anil Golamari earned 500 total points
ID: 33622191
http://forums.asp.net/p/1377285/2901229.aspx ( Sample code)

http://dotnetslackers.com/columns/ajax/ASPNETAjaxWebService.aspx ( sample web service example which implement timer)

Hope these links helps you.

Good Luck
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

705 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now