Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Access values from cookies using sencha extjs

I am pretty new to sencha as well as JavaScript. So can you please help me with how to use Sencha ExtJS and extract information from cookies. I have set the state of a gridpanel in cookies and now I want to extract the value of columnOrder and other information from cookies.

Any code or reference will be really appreciated.

like image 731
Tejas Avatar asked Nov 22 '10 19:11

Tejas


People also ask

What is Sencha ExtJS?

ExtJS stands for Extended JavaScript. It is a JavaScript framework and a product of Sencha, based on YUI (Yahoo User Interface). It is basically a desktop application development platform with modern UI.

How do I run ExtJS?

Run Ext JS Web Application:Open command prompt in windows and navigate to the directory where you have your Ext JS application as shown below. Now, enter Sencha web –port xxxx start command as shown below. Use any unused port number.

Is ExtJS open source?

ExtJS 4.0. 2a is open source under GPL v3.


1 Answers

First thing - if you haven't found these already, here is a link to the Ext docs:

http://docs.sencha.com/extjs

Second - here is a link to Ext.util.Cookies:

http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.util.Cookies

Example of use:

// write cookie
var myCookie = Ext.util.Cookies.set('YourCookieName', 'YourValue');

// read cookie
Ext.util.Cookies.get('YourCookieName');
like image 91
Dave Avatar answered Oct 08 '22 23:10

Dave