Solved

Jquery that checks with the server if new record is inserted in the database

Posted on 2013-05-28
2
354 Views
Last Modified: 2013-05-29
My Classic ASP page displays the records from SQL Server table. Is there a way that the page gets auto-refreshed only when a new record is inserted into the database?
This meta tag refreshes the page every minute, but I would like the page refreshed only when a new record was entered:
<meta http-equiv="refresh" content="60">

Thank you for your help.
0
Comment
Question by:romsom
2 Comments
 
LVL 15

Accepted Solution

by:
Jagadishwor Dulal earned 500 total points
ID: 39203299
Yes you can use ajax request. It doesnot refresh page but every certain interval will make request and load data when get new.
See reference:
http://www.w3schools.com/jquery/jquery_ajax_intro.asp
0
 

Author Closing Comment

by:romsom
ID: 39205139
Thank you very much.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
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…

831 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