whats the frequency of the letter e in:
q: get list at site collection level using sp.js i have this code which is meant to get data from a list at the site collection level.
var clientcontext = new sp.clientcontext.get_current();

    var olist = clientcontext.get_site().openweb().get_lists().getbytitle(listname);
    var query = query here;

    var camlquery = new sp.camlquery();
    camlquery.set_viewxml(query);
    colllistitem = olist.getitems(camlquery);

    clientcontext.load(colllistitem);

    clientcontext.executequeryasync(onquerysucceeded, onqueryfailed);

i had modified the lines below which gets data from the current web 
var clientcontext = new sp.clientcontext.get_current();


    var olist = clientcontext.get_web().get_lists().getbytitle(listname);

to this
var clientcontext = new sp.clientcontext.get_current();

    var olist = clientcontext.get_site().openweb().get_lists().getbytitle(listname);

usually you open the site then the web and then get to the list but it doesnt seem to work in js.
can you please point out what i need to do fix it?
thanks,

a: use .get_site().get_rootweb() instead of get_site().openweb()

user
The given text has one hundred and twenty-seven "e"s.
assistant