6
I have a registration field that are required to be completed via HTML5. However, by clicking the unsubscribe button, HTML5 does not let Javascript return to the previous page! = ( Requires me to fill in that required field.
How to proceed?
'click button#back': function (evt) {
evt.stopImmediatePropagation();
Backbone.history.navigate("/InstanciaManager", {trigger : true});
},
Welcome to Stackoverflow! You can use something with localStorage or sessionStorage to do this. See Webstorage
– Wallace Maxters
Post the HTML code. Maybe you have not set the button as
[type=button]
. This can cause problems as some browsers may identify that you are trying to make a Submit with the button that did not specify thetype
. Own experience :)– Wallace Maxters
Thanks mutlei and Wallace, it worked! =)
– Daniela Morais
What worked?
– Wallace Maxters
The type of the button and change the order in JS! Also, there was another problem p work.. hahaha Thanks, guys
– Daniela Morais