Does anyone knows why IE does not accept a string-variable as a parameter to the method setItem? Works fine on Chrome.
Example on IE:
This works:
var itemName = 'anyname';
localStorage.setItem(itemName, 'anything');
This doesn´t:
var itemName = 'anyname';
var stringName = 'some string content';
localStorage.setItem(itemName, stringName );
This gives 'Invalid argument error'.
Any help on that? Thanks! :)
EDIT. That post relates about another problem, the example given in that post(the one that does not work for him) actually works for me! My problem shows that the method setItem does not accept a string variable but accepts a normal enclosed quoted string. Also the solution given in the related post is not acceptable to my problem, I can´t expect that the end user will install a IE11 bug-fix.