kazu2012 / persevere-framework

Automatically exported from code.google.com/p/persevere-framework
0 stars 0 forks source link

pjs.getUserName(); Always returns null #246

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Authenticating using dojo.xhrPost();
I do have full access as I should have after login, and xhr returns the 
username,
but pjs.getUserName(); always returns null.

Original issue reported on code.google.com by i...@alexanderweiss.nl on 12 Sep 2009 at 2:44

GoogleCodeExporter commented 8 years ago

Original comment by kris...@gmail.com on 18 Sep 2009 at 5:56

GoogleCodeExporter commented 8 years ago
Same issue here. Also, trying it after page load also fails - but, it does work 
when
manually trying it using Firebug (in FF)...there is a specific event to wait 
for,
just don't know which one.

// fails
dojo.addOnLoad(function() {
    console.debug(pjs.getUserName());
});

Original comment by deepak.n...@gmail.com on 8 Dec 2009 at 9:31

GoogleCodeExporter commented 8 years ago
Works when used after getStores() call:

// works
dojox.data.PersevereStore.getStores().
    addCallback(function(stores) {
        console.debug(pjs.getUserName());           
        });

Original comment by deepak.n...@gmail.com on 8 Dec 2009 at 9:34