473,473 Members | 2,120 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Pause/freeze session for sec(s), can b done in JavaScript?

Hi, :) I have a program which I need to have temporarily freeze user
input for about 8 seconds. Is there a method using JavaScript only to
freeze the mouse-cursor in a invisible position on the screen for a
pre-set duration? Sincerest Regards, AmySol

Nov 28 '06 #1
3 2293
wrote on 28 nov 2006 in comp.lang.javascript:
Hi, :) I have a program which I need to have temporarily freeze user
input for about 8 seconds. Is there a method using JavaScript only to
freeze the mouse-cursor in a invisible position on the screen for a
pre-set duration? Sincerest Regards, AmySol
If you are talking clientside javascript in a browser on a windows p.c.,
the answer is:

no.

The mouse is not owned by you or even by the browser window where your page
is displayed, so that window has no rights on the browser and neither have
you.

["need"? "want"!]
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Nov 28 '06 #2
co*******@gmail.com wrote:
Hi, :) I have a program which I need to have temporarily freeze user
input for about 8 seconds. Is there a method using JavaScript only to
freeze the mouse-cursor in a invisible position on the screen for a
pre-set duration?
In MSIE you can use an image for the mouse cursor; you could set that
to a transparent one:

<body style="cursor: url(img/transparent.ani)">

And/or you could constantly focus the cursor on, say, a form element
that is hidden somewhere. Focus it 10 times a second or something like
that. Rather dirty, but should work.

--
Bart

Nov 29 '06 #3
Bart Van der Donck wrote:
co*******@gmail.com wrote:
>Hi, :) I have a program which I need to have temporarily freeze user
input for about 8 seconds. Is there a method using JavaScript only
to freeze the mouse-cursor in a invisible position on the screen for
a pre-set duration?

In MSIE you can use an image for the mouse cursor; you could set that
to a transparent one:

<body style="cursor: url(img/transparent.ani)">

And/or you could constantly focus the cursor on, say, a form
element that is hidden somewhere.
Would that be good UI design. A wait cursor would be most appropriate,
along with scripting to ensure that user input would be disregarded
during the critical period.
Focus it 10 times a second or something like
that. Rather dirty, but should work.
Attempting to focus form fields that are hidden (by type, CSS display
and/or visibility) tends to throw exceptions in some environments (so
would not work to control user input).

Richard.
Nov 29 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: ericm | last post by:
Hello all, I am looking for a little guidence. I have written a page in which I am trying to identify when a function key (f1-f12) is pressed. When the key is pressed a pre-defined event will...
8
by: Harry Simpson | last post by:
Got a web app that keeps the 20 sec session timeout default. Only deal is the user doesn't know the session timed out till they submit the page. On one page that i actually don't care if it times...
2
by: John Mullin | last post by:
We are having a problem which appears similar to a previous posting: http://groups.google.com/groups?hl=en&lr=&frame=right&th=d97f552e10f8c94c&seekm=OZw33z9EDHA.2312%40TK2MSFTNGP10.phx.gbl#link1 ...
4
by: Roger Withnell | last post by:
I would like to freeze column and row headings on a webpage, simulating freeze panes as in an Excel spreadsheet. Don't seem to be able to do it with Frames. Is there a way with Javascript...
6
by: Peted | last post by:
Hi wondering what is the best way to do this Need a user to click a button, that sends 3 or 4 string based commands via a TCP/ip socket link I can connect to the ip device no problems, am...
4
by: ToxSox | last post by:
Hello. This is my first post here and i have a big problem with my script! One page (child.htm), was delivered not by me and i can't change it. This page calls a methode in a object of my page....
4
by: keyser soze | last post by:
this is unbeliveable... i'm trying to set a session var "x" from a local var "y" .... session("x")= y response.write( session("x") ) --it outputs the content! response.end --stop here...
16
by: Kapteyn's Star | last post by:
Hello all, I want a function to make the program pause for a few seconds but K&R have not listed anything for this i even looked in index. can anyone help? Thank you very much. --...
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.