I have a dialog page that's saving the address and port of a server in localStorage:
localStorage.SERVER['address'] = address;
localStorage.SERVER['port'] = port;
I've cut my subsequent request down to just console logging the data in localStorage to check things are working.
$("#login_submit").click(function(event) {
event.preventDefault();
console.log(localStorage.SERVER['address'] + ' ' + localStorage.SERVER['port']);
}
What's happening though is that this executes fine when I submit the form without anything in localStorage (I get 'undefined undefined'). However after i've saved some values in the localStorage SERVER object the form reverts to behaving as normal and tries to open
http://mydomain/?username=&password=
and doesn't log anything to the console.