Nov 20, 2008, 12:41 AM
[CLOSED] problems loading Store similar to how coolite does for static data
I'm trying to simulate the coolite store that is created and am having troubles. I keep getting an "object not found" on the store creation. The offending code is below, and I've also attached my example code that is a complete failing stand alone html file (js with tags).
var sessionData = [
{
Username : 'Crockford',
"Title": " The Good Parts (Part 1)",
"Description": "JavaScript is a language with more than its share of bad parts. It went from non-existence to global adoption in an alarmingly short period of time. It never had an interval in the lab when it could be tried out and polished. JavaScript has some extraordinarily good parts. In JavaScript there is a beautiful, highly expressive language that is buried under a steaming pile of good intentions and blunders. The best nature of JavaScript was so effectively hidden that for many years the prevailing opinion of JavaScript was that it was an unsightly, incompetent abomination. My intention here is to expose the goodness in JavaScript, an outstanding dynamic programming language. Within the language is an elegant subset that is vastly superior to the language as a whole, being more reliable, readable, and maintainable.\r\n\r\nThis will be presented in two timeslots.",
"Createdate": "2008-06-23T09:19:50",
"Id": 12
},
{
Username: "pkellner",
Title: "Building High performance ASP.NET web applications",
Description: "<p>Topics will include appropriate use of Cache and Session State, as well as how and when to use them. Viewstate management and methods to minimize its use will be discussed. Code to pop up a warning when a threshold is met in development will be shown. When and how to take advantage of Server Farms will be discussed, as well as trouble shooting techniques to find problems. The evils of Server Affinity, as well as a common pattern for caching database queries will be shown to be wrong. Time permitting, we will talk about using Microsoft?s Ajax.asp.net with UpdatePanel and webservices and how these affect performance and scalability.</p>\r\n",
Createdate: "2008-06-19T20:10:36",
"Id": 2
},
];
this.Store1 = new Ext.Store({
id: "Store1",
reader: new Ext.data.JsonReader({
fields: [{
name: "Title"
},
{
name: "Username"
},
{
name: "Description"
},
{
name: "Createdate"
}],
id: "Id"
}),
autoLoad: false
});
Store1.proxy = new Ext.data.PagingMemoryProxy(sessionData, false);