display an alert messages recursively by clicking a checkbox

This is a discussion on "display an alert messages recursively by clicking a checkbox" within the JavaScript Forum section. This forum, and the thread "display an alert messages recursively by clicking a checkbox are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 21st, 2007, 09:39
New Member
Join Date: Aug 2007
Location: India
Age: 25
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
display an alert messages recursively by clicking a checkbox

Hi,
Am using datagrid concept in a JSP page. When I click on a checkbox from the datagrid a timer will start. after 5mins I need to display an alert message along with an ID which is the value of that checkbox. like that I can click on any checkbox at any time. I've already implemented a code for it. when am clicking 2 checkboxes am getting 2 alert messages but with recently selected checkbox value instead of individual IDs.
Here is the script i've used

var s;
function SelRecord(forms,str) {

var max=eval("forms."+str+".length");
if (max)
{
for (var idx = 0; idx < max; idx++) {
if (eval("forms."+str+"[" + idx + "].checked") == true) {
s=forms.rd[idx].value;
var t=setTimeout('alert(s+"dilatation complete")',5000);
}
}
}
}

Please.... Can anyone gimme a solution for this.....Hi,
Am using datagrid concept in a JSP page. When I click on a checkbox from the datagrid a timer will start. after 5mins I need to display an alert message along with an ID which is the value of that checkbox. like that I can click on any checkbox at any time. I've already implemented a code for it. when am clicking 2 checkboxes am getting 2 alert messages but with recently selected checkbox value instead of individual IDs.
Here is the script i've used

var s;
function SelRecord(forms,str) {

var max=eval("forms."+str+".length");
if (max)
{
for (var idx = 0; idx < max; idx++) {
if (eval("forms."+str+"[" + idx + "].checked") == true) {
s=forms.rd[idx].value;
var t=setTimeout('alert(s+"dilatation complete")',5000);
}
}
}
}

Please.... Can anyone gimme a solution for this.....
Reply With Quote

Reply

Tags
javascript

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Alert Box acrikey JavaScript Forum 4 Mar 25th, 2008 23:23
Form error messages help psycho wolvesbane JavaScript Forum 0 Mar 21st, 2008 14:50
Report Spam Received in your Private Messages Ed Webforumz Cafe 0 Feb 15th, 2008 14:03
php message board - delete inappropriate messages Gabriele PHP Forum 9 Aug 26th, 2007 13:01
Private Messages spinal007 Webforumz Suggestions and Feedback 4 Sep 26th, 2004 16:02


All times are GMT. The time now is 04:47.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43