• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Notification sending in my project using JSP

 
Apurv Gupta
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am working on a project of hospital management where i an supposed to send a notification to the doctor as soon as the receptionist clicks on the Patient's name.
We are using jsp and mssql.
We have thought to divide the page into html frames and refresh a frame after every 15 minutes.
If this can work then please Help me with its code.
If not then please let me if there is any other way to send a notification.
Your answers will be highly appreciated..
Cheersjavascript:emoticon('');
 
Paul Clapham
Sheriff
Posts: 21155
32
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see what frames and refreshing have to do with that.

When somebody clicks on a button, it should send a request to the server, as HTML buttons normally do. Then the server should send the notification.
 
Apurv Gupta
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually in my HTML i have i <div> that i need to refresh timely.
This div retrieves values from the database.
Let us suppose that the database values are changed periodically.
So I just want to get updated values from the database without refreshing the whole page.
Is this possible???
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64994
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'd use Ajax and an interval timer for that.
 
Apurv Gupta
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you please suggest a code for that.....
Thanks..
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64994
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read NotACodeMill. If you are new to Ajax, there are lots of tutorials. I'd start with this article.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic