XN--KCR71UQTW.COM
welcome to my space
X
Search:  
 HOME   UserData behavior state provider
UserData behavior state provider
Published by: anonym 2009-01-08

  • Splunk > Print Admin Manual::
    While Splunks default behavior provides appropriate processing for most kinds to a non-Splunk system, for example, a Managed Security Service Provider (MSSP)
    http://www.splunk.com/doc/print/3.1/admin
    HOME
    I wrote a provider for IE only that uses UserData to store my client state so that it had much larger size for data available to it (64/128k per page). Still a work in progress but thought I woudl share it if anyone was interested, it works as is, I left my TODO's in. Its mostly a copy and paste of the existing cookie one with some minor changes.


    YAHOO.ext.state.UserDataProvider = function(config){
    YAHOO.ext.state.UserDataProvider.superclass.constr uctor.call(this);
    this.path = 'UserDataProvider';
    //TODO: expiration...
    //this.expires = new Date(new Date().getTime()+(1000*60*60*24*7)); //7 days
    YAHOO.ext.util.Config.apply(this, config);
    };

    YAHOO.extendX(YAHOO.ext.state.UserDataProvider, YAHOO.ext.state.Provider, {
    set : function(name, value){
    this.createElement();

    if(typeof value == 'undefined' value === null){
    this.clearUserData(name);
    }
    else {
    this.setUserData(name, value);
    }
    this.fireEvent('statechange', this, name, null);
    },

    clear : function(name){
    this.createElement();

    this.clearUserData(name);
    this.fireEvent('statechange', this, name, null);
    },

    get : function(name){
    econfig Release Content::
    In the United States, customers will be able to continue to order from SuSE or Changes have been made to the behavior of the Maintenance Control on the
    http://ftp.ibmlink.ibm.com/econfig/README/05042004N.HTM
    HOME
    this.createElement();

    window.UserDataElement.load(this.path);
    CreateSession - Server::
    To change this behavior, enabling the Security service to return the appropriate Unique identifier of the service provider.
    http://secure.entriq.com/toolsui/help/API_GUIDE/createsession.htm
    HOME
    Planet Debian::
    My DSL provider gave me a few static IP addresses, so when I got it, I just It would be more elegant if the state is stored in one data type that,
    http://planet.debian.net
    HOME
    return window.UserDataElement.getAttribute(this.escapeNam e(name));
    },

    createElement : function(){
    if(!window.UserDataElement) {
    this.addNamespace();
    var e = document.createElement('userdata:state');
    e.style.behavior = 'url(#default#userData)';
    document.body.appendChild(e);
    window.UserDataElement = e;
    }
    },

    addNamespace: function(){
    //TODO: check if namespace exists first?

    document.namespaces.add('userdata', 'http://yui-ext/state/userdataprovider');
    },

    setUserData : function(name, value){
    //TODO: expiration...
    //window.UserDataElement.expires = this.expires;
    window.UserDataElement.setAttribute(this.escapeNam e(name), value);
    window.UserDataElement.save(this.path);
    },

    clearUserData : function(name){
    window.UserDataElement.removeAttribute(this.escape Name(name));
    window.UserDataElement.save(this.path);
    },

    escapeName : function(name){
    //TODO: better escaping method...
    return name.replace(/[/]/g, '__');
    }
    });


  • That's great. In the coming release I moved the encoding methods from the CookieProvider to the default Provider so you also encode objects and arrays and such in a single call. I will pull this out and play with it a bit and see if I can get it into the next version.

    Thanks!





  • Nobody understands...any help please?
    50 points for someone willing to do this!!!!!!!!!!?


    About us -Site map -Advertisement -Jion us -Contact usExchange linksSponsor us
    Copyright© 2008 xn--kcr71uqtw.com All Rights Reserved
    Site made&Support support@xn--kcr71uqtw.com    E-mail: web@xn--kcr71uqtw.com