locked
.NET and IE userdata Javascript RRS feed

  • Question

  • Hi!

    I am trying to persistently store data in a users browser using JS and IE UserData. Everything worked perfectly until I installed Visual Studio.

    This is part of the code:
            var el = document.createElement('div');
    
            el.id = id;
            el.style.display = 'none';
            el.addBehavior('#default#userdata');
    
            // append element to body
            document.body.appendChild(el);
    
            // in a class assign this.el to the el variable.
            [..]
    
            this.el.setAttribute(key, val);
            this.el.save(esc(this.name))
    The setup works *perfectly* until Visual Studio is installed. I only noticed the errors because there is a try() catch() around the code that reports the UA and error if something bad happens.

    Apparently the code fails when at:
    this.el.save() with undefined method save. And indeed this.el.save is undefined.

    Sometimes the error is just simply "Object error".


    • Moved by liurong luo Thursday, June 25, 2009 7:36 AM not a Visual Studio Debugger issue. (From:Visual Studio Debugger)
    Tuesday, June 23, 2009 5:25 PM

Answers