473,325 Members | 2,805 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,325 software developers and data experts.

Java script Confoirmation box problem

Hai to aLL,

I have a java script funtion,In that function i show a confirmation box,
If the user click on "OK" certain action will be performed,

Now turned to my problem if the user is not responding with in five minutes my "ok" button click event action need to invoke automatticcaly.

Is it possible in java script , IF it possible any one can help me to solve the trap.

By Ahsraf
Nov 15 '07 #1
6 962
Plater
7,872 Expert 4TB
This is really a javascript problem not a .NET one, but I don't think the inputbox has a timeout or anything, I think it sits there and blocks "forever"
Nov 15 '07 #2
Hai plater.

Actualy the problem when the user didnt respond up to our browser 20 minutes i will pop one confirmation box,that says u are not responding last 20 minute are u wish to continue(its has ok and cancel button),Even though the user didnt respond for that confirmation five minute i need to activate the "cancel" event.(in that cancel event i had code for some actiont) , I think u got what actualy i meaned?

Hopefully Ashraf
Nov 15 '07 #3
Plater
7,872 Expert 4TB
I got it. But it's all javascript and not .NET.

What you could do is use some fancy html/css to make something that LOOKS like the inputbox, then just show/hide it when you want to. That wouldn't block the rest of the code from continueing on.
Nov 15 '07 #4
kunal pawar
297 100+
U can try this one,

In "Ok" event code u can checked session is expired or not if not then redirect to Cancel button action
Nov 16 '07 #5
Frinavale
9,735 Expert Mod 8TB
You know, I don't think you need to do any postback at all. If after 20 minutes the user has not replied then your message should pop up asking the user to submit the page. If the user doesn't do anything then their session should just expire (they should be logged out).

Are you having problems when the user is clicking "Ok" (indicate that they are still active on your page)?
Nov 16 '07 #6
Frinavale
9,735 Expert Mod 8TB
U can try this one,

In "Ok" event code u can checked session is expired or not if not then redirect to Cancel button action
Just to clarify, there is no .NET button event raised for a JavaScript's "OK" button in an Alert/Confirm box.
Nov 16 '07 #7

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

Similar topics

4
by: Andy R. | last post by:
Hello everyone, I've spent quite some time now, looking for some information on how to get this done, sadly none has helped me much, though. I have a bit of java scrpt on a webpage (.php) to...
3
by: StealthMonkey | last post by:
Let me prefix this by saying that I know next to nothing about Java (so please try to keep explainations simple). I use PHP for my server-side web programming. Here is my dilemma: I need a...
4
by: Don Grover | last post by:
I hope some one can help, I have a html table that is created with asp that has a row of repeated buttons down the side. these call a page passing a query string with invoice number. I need to...
18
by: Mickey Segal | last post by:
On comp.lang.java.programmer we are discussing problems created for Java programs by pop-up blockers (in the thread "showDocument blocked by new microsoft pop-up blocker"). Our problem is that...
34
by: kpg | last post by:
Hello all, I have an asp.net web application with tons of Java script files. I would like to protect the Java Script somehow so it can't be seen by a remote user. I found several 3rd party...
9
by: Stephen H. | last post by:
Hi, I have an existing web application with java beans that I wanne migrate to ASP.NET using C#. The existing web application has some jsp files that use java beans as follows: .... <%@...
7
by: dbabin | last post by:
I have a java script function enableServerList() {document.getElementById("ddlServers").disabled=false } function disableServerList() {document.getElementById("ddlServers").disabled=true } ...
4
by: Quill_Patricia | last post by:
I have a Python script which is used to load data into a database. Up to now this script has been run by customers from the Windows command prompt using "python edg_loader.pyc". Any error messages...
0
by: tosreejithp | last post by:
Hi, My first problem was i am not able to compiled a file from java script to java class.Now its clear and working fine..now i can convert a java script file to java class by Rhino Java Script...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.