This is an simple example to show you how to create a viewport in ExtJs4.
The Viewport renders itself to the document body, and automatically sizes itself to the size of the browser viewport and manages window resizing. There may only be one Viewport created in a page.
The Viewport does not provide scrolling, so child Panels within the Viewport should provide for scrolling if needed using the autoScroll config.
Unlike the panel component of Ext JS, Viewport does not have a tbar option. ...
I am working on a Ext-JS web application which needs to send data to the PHP server side to store. It took me a while to find out how to decodes the receiving JSON string in PHP.
Assume you have a model and calling save to send a ajax request.
If you use $_POST variable to pass the JSON string, you won’t see anything. It is just an empty array. This is because the Content-Type in the Request packet is different now, application/json. The JSON expression string in the...
The way to create a custom menu in mouse right click event function in ExtJS 4 is little different with pre-version. It seems in Ext 4.0.2 they changed event name and arguments order.
First, let's see how we create the menu in Ext 3. I get this example from aditia rahman:
Let's write a DataView to add a listener.
When the data view is rendered it disabling the default right click web browser menu, this is called in listeners “render” event and “contexmenu” event is for detectin...
This example will show you how to declare a global var and arrays in Extjs MVC application.
You know where to find this code :
Global application variable :
Simple, right? Now you can access this variable everywhere in your mvc application.
If you need arrays , try this:
Thank you for taking the time to visit my blog! Take a second to peek around and check out some of my previous posts. Of course, I would love to find out what you think as well, so make sure to comment. See you around!