Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Code execution when leaving form

Post Reply
nekpap
Posts: 27
Joined: Wed Dec 03, 2014 7:41 am

Code execution when leaving form

Unread post by nekpap »

Hi,

Is there any way to execute code (javascript or php) when a user leaves a form?

Could I use JavaScript onbeforeunload event (how)?

Thanks
Nektarios
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Code execution when leaving form

Unread post by admin »

nekpap,

onbeforeunload is already being used.

Steven
nekpap
Posts: 27
Joined: Wed Dec 03, 2014 7:41 am

Re: Code execution when leaving form

Unread post by nekpap »

Sorry, but I don't understand!

How can I use onbeforeunload into nubuilder?

Into Form Custom Code->Javascript?

Can you please be more specific?

Thanks
Nektarios
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Code execution when leaving form

Unread post by admin »

Nektarios,

I know no way you can use onbeforeunload, that won't break the way nuBuilder is already using it.

Steven
nekpap
Posts: 27
Joined: Wed Dec 03, 2014 7:41 am

Re: Code execution when leaving form

Unread post by nekpap »

Thank you Steven!
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Code execution when leaving form

Unread post by admin »

nekpap,

You could investigate this .. http://api.jquery.com/unload/

Steven
Post Reply