need info on how this warning about navigating away works ?

i want to know how this warning about navigating away works..

how this listener works ? can we control this ?

1 answer

1 vote

In a nutshell it works like this.

When a page loads all the values of all form inputs are serialised. If you do an action like navigating away from the page, the serialised values are compared with the current values. If they differ you get a dirty form warning.

Obviously some methods of navigating away from the page, like pressing the cancel or submit buttons, are exempted from this.

Some types of forms such as the quicksearch are also exempted.

If you want to disable it for forms in a plugin, I thought you could add some indicator class but I can't find it right now... using class=userpref-form should work but I don't think is the correct approach.

Does that help, or can you be more specific about your requirements?

so if i use popup , tht is included in navigating away operations ??

also can i disable for particluar page ?

Can you explain more what you mean. Popping up a form doesn't unload the page so no.

You can disable using the class I mentioned above.

i have one hyperlink in one page, which opens popup, which will add fill some value to page in which hyperlink is there. now i am gettin warning abt navigating away. this happens only in internet explorer. so i need whethr this is internet explorer prob or any modification required in process of creating popup?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Marketplace Apps

Tips on how to choose the best estimation method for your planning

Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...

65 views 0 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you