Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

JS alert for leaving site 17 Sep 2012 08:01 #3698

Hello,

Since a few days i allways get an alert message whenever i change from item view to collection for example or even when i click on a download link. Its an alert message asking me if i want to leave site or want to stay....

Any ideas?

Please Log in or Create an account to join the conversation.

Re: JS alert for leaving site 17 Sep 2012 08:17 #3699

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Yes, it is a security you can remove in your template file.

If you want to leave a form, you must use the toolbar.

Because when you use the checked out wizard, the cancel button check in the record.
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

Re: JS alert for leaving site 17 Sep 2012 08:31 #3700

Ahh ok, works now...
Thank you very much.

Please Log in or Create an account to join the conversation.

Re: JS alert for leaving site 17 Oct 2012 14:10 #4633

llo,
I have the same problem.
I added a link from displaying an item to go on reservation form by retrieving data displayed through the "session".
But when clicking on the link, I get the message alert.

I do not understand where I need to disable it.
in my situation it would in the fly file ?
Sarki

Please Log in or Create an account to join the conversation.

Last edit: by sarki.

Re: JS alert for leaving site 19 Oct 2012 05:07 #4651

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
This message is when you leave a form without using the toolbar button.

Is you page containing a form ?

You can remove the JS source in your main tmpl file :
//Secure the user navigation on the page, in order preserve datas.
	var holdForm = true;
	window.onbeforeunload = function closeIt(){	if (holdForm) return false;};
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

Re: JS alert for leaving site 20 Oct 2012 07:40 #4682

Hello,
A big thank you, this is exactly what I needed to complete this project :)
Sarki

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.133 seconds

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started