Google Groups Home
Help | Sign in
Error in layout.evaluate()
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
alfonsomigmc@gmail.com  
View profile
 More options Jan 4, 4:48 am
From: "alfonsomi...@gmail.com" <alfonsomi...@gmail.com>
Date: Fri, 4 Jan 2008 01:48:24 -0800 (PST)
Local: Fri, Jan 4 2008 4:48 am
Subject: Error in layout.evaluate()
Hi.
I am trying to test the example written in the quick start guide but
an error rises telling me this things:

arg has no properties
itemgetter(undefined)Base.js (line 234)
map(function(), [[0, 0], [1, 1], [2, 1.414], 4 more...])Base.js (line
355)
map(function(), [[0, 0], [1, 1], [2, 1.414], 4 more...])Base.js (line
254)
_evaluateLimits()Layout.js (line 295)
evaluate()Layout.js (line 166)
drawGraph()estadisticas.js (line 175)
fn(Object browserEvent=Event mouseout button=0 shiftKey=false, a#est
index.jsp)accordion.js (line 703)
EventManager(Object browserEvent=Event mouseout button=0
shiftKey=false)ext-all.js (line 17)
Event(click clientX=0, clientY=0)yui-utilities.js (line 13)
[Break on this error] return arg[func];

The error is located in layout.evaluate(), I think, due to if I delete
this line the code doesn't generate any error.

Could someone help me? I need to use js charting and plotkit seems to
me a good option.

Thanks in advance.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
nun  
View profile
 More options Jan 10, 7:57 am
From: nun <nung...@gmail.com>
Date: Thu, 10 Jan 2008 04:57:30 -0800 (PST)
Local: Thurs, Jan 10 2008 7:57 am
Subject: Re: Error in layout.evaluate()
Hi

I was having same issues - after trying several approaches, much
searching,  grEvenX's fix (repeated below) from

http://extjs.com/forum/archive/index.php/t-5742.html

fixed it for me (Mochikit 1.4, plotkit-0.9.1)

- replace PlotKit.Base.items function:

// OLD CODE
PlotKit.Base.items = function(lst) {
if (PlotKit.Base.usingPrototype()) {
var rval = [];
for (var x in lst) {
if (typeof(lst[x]) == 'function') continue;
rval.push([x, lst[x]]);

}
return rval;
}

else {
return MochiKit.Base.items(lst);

}
};

section around line 260 in PlotKit/Base.js with:

// NEW CODE
PlotKit.Base.items = function(lst) {
var rval = [];
for (var x in lst) {
if (typeof(lst[x]) == 'function') continue;
if (lst[x] == '______array') continue;
rval.push([x, lst[x]]);


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google