473,386 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to make File Alert message

subashini Thiyagarajan
In Microsoft Outlook,whenver any new mail comes we get an alert msg in right corner above status bar.how to make it using asp when any file added in the database.

Any Experts?????????
Jan 4 '07 #1
3 2078
karthi84
271 100+
from where u r adding the data to the database and where u want the alert to be displayed.
Jan 4 '07 #2
sashi
1,754 Expert 1GB
In Microsoft Outlook,whenver any new mail comes we get an alert msg in right corner above status bar.how to make it using asp when any file added in the database.

Any Experts?????????
Hi there,

You need to count the current no. records from the database and assign the value to variable <intFirst>, you also need to have a function to count the no. of records on every page reload / fixed interval. The new value is again assigned to another variable <intSecond>, compare the values of IntFirst & IntSecond, if the values isn't same, popup an alert message. Hope you understand the logic, hope it helps. Good luck & Take care.
Jan 4 '07 #3
How can i compare the record count?

Actually i tried as per your suggestion,i created one new page and wrote script for counting the records i got it at the same time i stored in one more variable also.using meta tag i made the page to get refreshed each 5 sec.i achieved.


now i struck up in comparision of both variables.Also i have doubt when first var count change means immediately it changes other variable count also.how to do that?please i am not that expert in asp.pls expain.
Expand|Select|Wrap|Line Numbers
  1. <%
  2. dim strCon
  3. strCon = "DBQ=C:\Inetpub\wwwroot\manage\ivr.mdb; DRIVER=Microsoft Access Driver (*.mdb)"
  4. Set objConn = Server.CreateObject ("ADODB.Connection")
  5. objConn.open strCon
  6. Set Rec = objConn.execute("Select count(*) from Itemworkorder")
  7. curcount=Rec
  8. 'if cucount>rec then
  9. 'window.open(message.asp, windowname, 'width=450,height=300,scrollbars=yes');
  10. 'end if
  11. %>
  12.  
  13.  <html>
  14.  <head>
  15. <meta http-equiv="refresh" content="5"> 
  16. </head>
  17. <body>
  18. There are <%= Rec(0) %> records in the table.<%=curcount(0) %>
  19. </body>
  20.  </html>
  21.  
this is actually separate file where i need to include this coding in login page or where i am descriping and displaying the particular table content that page.

Actually i want whoever login this url.in any terminal one small addition record this pop up should reflect in all the systems as it is showing one new complaint received.
pls help
Jan 4 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Igor Solodovnikov | last post by:
Hi. I am trying to automatically backup transaction log when error 9002 happened. So i have created appropriate job and alert to catch this error. I have two instances of sql server under Windows...
26
by: Don | last post by:
I'm writing an html page with some JavaScript that reads a web page into a client-side temp file, then reformats it, then submits that same file as a URL to the browser for display, via...
5
by: Novice Computer User | last post by:
Hi. Can somebody PLEASE help. Here is a .php script. Right now, the minimum amount of time (i.e. duration) allowed is 1 month. However, I want to be able to reduce the minimum amount of time to...
1
by: stefano | last post by:
Hi, I have a file xml (p.xml) and I use XSLT to trasform p.xml to XHTML. this is the xml file: .... <test label="x"> <itemList> <testItem oknumber="2" > .... </testItem> </itemList>
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
3
by: SM | last post by:
Hello, Im trying to access elements in my XML file using the JavaScript DOM but i'm not sure how. I use AJAX to access the XML and then use the responseXML property to access the XML file data. I...
2
by: panos100m | last post by:
Hi the changes that i am making using dom (see function modify) take place only in memory untill the next reload ..but not in my xml file I am doing this for a customer and i am unable to install...
9
by: Matthew Wells | last post by:
OK, I've narrowed down the problem. This works when in the aspx page <script type="text/javascript" > function btnFirst_Click() { alert("Hello");...
8
omerbutt
by: omerbutt | last post by:
hi there i have a form with multiple input (type/text ) fields and three inputs(type/file) fields i have to submit the form via ajax because i have multiple forms on this page ,you can say it is a...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.