button
-
I want to make a button which should be enable only once in 24hrs...................how it will be possible..........plz guide me a bit............:)
-
I want to make a button which should be enable only once in 24hrs...................how it will be possible..........plz guide me a bit............:)
-
I want to make a button which should be enable only once in 24hrs...................how it will be possible..........plz guide me a bit............:)
use javascript...
SetInterval("enableBtn()", 1000);
function enableBtn()
{
var current = new Date();
var start = "1:00 PM";
var constant= new Date("1/1/2007 " + start);diff = current - constant;
if (diff < 0)
{
var btn = document.getElementById("btn");
btn.disabled = false;
}
}Hope this helps.
Abhishek Sur
My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB
**Don't forget to click "Good Answer" if you like to.
-
I want to make a button which should be enable only once in 24hrs...................how it will be possible..........plz guide me a bit............:)
You are going to expect users to keep a webpage open for 24 hours at a time? YOu don't need any AJAX or JavaScript, just enable/disable the button when the page is rendered.
only two letters away from being an asset
-
I want to make a button which should be enable only once in 24hrs...................how it will be possible..........plz guide me a bit............:)
KhandelwalA wrote:
I want to make a button which should be enable only once in 24hrs.
How u said 24 hrs?From users point of view? :) I don't think that its a good idea.As Mark said a user can't keep a page open for 24 hrs.
Arun Jacob http://codepronet.blogspot.com/
-
I want to make a button which should be enable only once in 24hrs...................how it will be possible..........plz guide me a bit............:)
Why would you do that?
Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
-
You are going to expect users to keep a webpage open for 24 hours at a time? YOu don't need any AJAX or JavaScript, just enable/disable the button when the page is rendered.
only two letters away from being an asset
Mark Nischalke wrote:
You are going to expect users to keep a webpage open for 24 hours at a time?
:jig: :laugh:
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.