473,320 Members | 1,961 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,320 software developers and data experts.

WINDOW.EVENT

Senhores(as),
não estou conseguindo literatura que me auxilie construir uma
'function' para desabilitar os botoes responsáveis pelo 'refresh' no
browser. Como o botão 'F5', 'ctrl R' e botão direito do mouse.
poderiam me ajudar?
Desde já agradeço.

Dec 29 '05 #1
4 1458
spektro escreveu:
Senhores(as),
não estou conseguindo literatura que me auxilie construir uma
'function' para desabilitar os botoes responsáveis pelo 'refresh' no
browser. Como o botão 'F5', 'ctrl R' e botão direito do mouse.
poderiam me ajudar?
Desde já agradeço.


This is an English javascript group, if you want to receive an answer,
write in English =/

--------------------

"I couldn't find literature to construct a function to disable the
buttons responsible for the browser refresh. Like the key F5, Ctrl+R
and the right mouse button. Could anybody help me?

Thanks in advance.

--------------------

I tell you to not control the user... Why do you want to block such
feature?

If you want to block content refreshing just because the users are
making too many requests, make it on the server by analyzing the amount
of requests, you can make the user wait at least 1 minute before you
start feeding content to him again... You can also make something to
auto-update what your users like to refresh, by using the so called
httprequest, that would save some of your bandwidth, whatever...

But you just can't block the browser functions, it's wrong... The user
can close the browser and open it again, he may run your site in a
cellphone or a browser where the refresh key is F9, etc... The browser
is just a host application, the security and everything else is in your
hands ;]
--
Jonas Raoni Soares Silva
http://www.jsfromhell.com

Dec 29 '05 #2
On 29/12/2005 14:01, Jonas Raoni wrote:

[snip]
This is an English javascript group, if you want to receive an answer,
write in English =/


Actually, this is an international group and therefore posts in any
language are welcome. However, as there are language-specific groups
(such as the German, de.comp.lang.javascript), these can be a better
alternative in the first instance.

As there is no English-only group, c.l.j does receive predominately
English posts. A poster can, by all means, post in a different language,
but they would be more likely to obtain replies by including an English
translation alongside their preferred language.

See <http://www.jibbering.com/faq/faq_notes/clj_posts.html#ps1Lang>.

[snip]

Mike

--
Michael Winter
Prefix subject with [News] before replying by e-mail.
Dec 29 '05 #3
Michael Winter escreveu:
On 29/12/2005 14:01, Jonas Raoni wrote:
This is an English javascript group, if you want to receive an answer,
write in English =/ Actually, this is an international group and therefore posts in any
language are welcome.


Hmmm, I don't agree at all, if this group is international, then an
international language should be used... I could write everything in
portuguese, but I doubt people would like to see my strange posts and
it doesn't make sense expecting someone to translate for me...

However, as there are language-specific groups
(such as the German, de.comp.lang.javascript), these can be a better
alternative in the first instance.
Yeah, that's the why I think the language should be respected...
There's a brazilian javascript group on yahoo with more than 2k people,
he could have asked there for example :)

See <http://www.jibbering.com/faq/faq_notes/clj_posts.html#ps1Lang>.


Hmm, not today, I'm going to travel soon... I'll start the year lost in
a trash can xD

Happy new year for everybody hahaha!!!
--
Jonas Raoni Soares Silva
http://www.jsfromhell.com

Dec 30 '05 #4
Jonas Raoni <jo********@gmail.com> wrote:
Hmmm, I don't agree at all, if this group is international, then an
international language should be used... I could write everything in
portuguese, but I doubt people would like to see my strange posts and
it doesn't make sense expecting someone to translate for me...


I'll have to brush upon my Esperanto, I'm afraid. In any case, while
you might not be able to expect a response to your posts in
Portuguese, I don't believe there is any constraint from posting in
that language if you so choose. Of course, establishing topicality
would be somewhat tougher...

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Dec 30 '05 #5

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

Similar topics

1
by: Barry Svee | last post by:
I'm struggling with the JavaScript blur event. I have an activex control that I need to interact with when a window loses focus, namely to instruct it to give up control of a barcode scanner so...
6
by: Brian | last post by:
Hi everyone, I'm writing a function (in javascript) that needs to do one thing if the page has not loaded, and another (different) thing if the page has already loaded. I'm looking for a way...
10
by: Tom Szabo | last post by:
Is there an event when that triggers when the window is closing.... I am talking about when the user clicks on the cross on the right top corner of the window!!!
3
by: Søren M. Olesen | last post by:
Hi In IE there seem to be a global variable window.event, holding the current event....however this dowsn't work in FireFox... is there a similar way to get the current event?? TIA Søren
19
by: Darren | last post by:
I have a page that opens a popup window and within the window, some databse info is submitted and the window closes. It then refreshes the original window using window.opener.location.reload(). ...
14
by: Thomas Mlynarczyk | last post by:
Hi, I have a JavaScript application which opens a second window. Which is the best way to detect over which (if any) of the two windows the mouse is? First I thought document.onmouseout and...
6
by: Donius | last post by:
Is there a simple and clean way to get the window object that contains an element that is passed into a function? I want to throw some alerts / confirms, but don't want to switch away from...
1
by: Earl Teigrob | last post by:
I did a ton of searching to try and find a simple solution to this issue and finally wrote my own, which I am sharing with everyone. In my searching, I did find a very complete and robust solution at...
9
by: mike | last post by:
I have this script executing <script> function mike_test(event) { x = window.event.clientX; alert(x); } </script> <iframe src="blank.html" id="my_iframe1"> </iframe>
6
by: Luke Matuszewski | last post by:
As in topic... has anyone used it ? I tried to use it but i guess i failed... here is a code: <html> <head> <title></title> <script type="text/javascript"> function closedWin() {...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
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: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
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...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
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: 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...

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.