Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 24. Nov 2024, 10:26

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: disabling F5?
PostPosted: 23. Nov 2009, 05:03 
Offline

Joined: 15. Nov 2009, 18:48
Posts: 9
Is it possible to implement a javascript code in order to disable refresh? I was interested in something like:

<script language="javascript">
function document.onkeydown()
{
if ( event.keyCode==116)
{
event.keyCode = 0;
event.cancelBubble = true;
return false;
}
}
</script>

Just trying to add another detour ant for people who do that and then save image. I understand there is a way to disable refresh or ctrl-R?

Lastly is there a way to modify the javascript message given on the right click?

Thanks~!


Top
 Profile  
 
 Post subject:
PostPosted: 23. Nov 2009, 10:16 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
you can add this to the existing key events.

And the text for the right click you have to change in the code. I'll move this to the language file in the next version.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 23. Nov 2009, 17:47 
Offline

Joined: 15. Nov 2009, 18:48
Posts: 9
Thanks. I am unable to find the existing onkeydown or event.keycode events?


Top
 Profile  
 
 Post subject:
PostPosted: 23. Nov 2009, 18:52 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
js/twg_image.js

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 23. Nov 2009, 19:01 
Offline

Joined: 15. Nov 2009, 18:48
Posts: 9
Thanks! I implemented the above code and F5 is still functional. I will look into it further.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 48 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy