-
23 Feb 2011 3:20 PM #1
Uncaught Exception on try to call a method
Uncaught Exception on try to call a method
Hi,
I'm new in Ext.Direct, so i was trying some examples to learn about it.
First of all I made a server-side using Python with the first code in this blog post and tested with the second part.
http://crabeater.blogspot.com/2009/1...in-python.html
Then i went to the JS side. I used this codes:
and laterCode:provider = new Ext.direct.RemotingProvider({ "url": "localhost:7999", "namespace": "Remote", "type": "remoting", "id": "TestUtils", "actions": { "TestUtils": [ {"name": "today", "len": 1}, {"name": "upper", "len": 1} ] } }); Ext.Direct.addProvider(provider);
the first alert returns true, what is a good signal, but before the second alert appears an error happens:Code:alert(provider.isConnected()); Remote.TestUtils.upper({word:'foo'}, function (result, response){ alert(result.toSource); alert(response.toSource());})
uncaught exception: [Exception... "Component returned failure code: 0x805e000a [nsIXMLHttpRequest.open]" nsresult: "0x805e000a (<unknown>)" location: "JS frame :: http://127.0.0.1:8000/ContWEB/resour...xt/ext-base.js :: i :: line 7" data: no]
Does anyone could help me?
I've tried in FF and Chrome, both occured the same error.
I'm not using AdBlock Plus.
What am I missing?
-
24 Feb 2011 1:06 PM #2
Now i've changed to "url": "http://localhost:7999/".
Now the server is receiving the request, but it's coming as a OPTIONS.
-
21 Apr 2011 5:14 PM #3
Uncaught Exception on try to call a method
Uncaught Exception on try to call a method
Hi, Ive been trying to call some indicators using method but cant seem to get it to work. Any idea?
Code:
Similar Threads
-
Uncaught TypeError: Cannot call method 'split' of undefined (ext-touch-debug.js:9555
By fermina in forum Sencha Touch 1.x: DiscussionReplies: 4Last Post: 30 Jun 2011, 11:00 AM -
Uncaught TypeError: Cannot call method 'setValue' of undefined
By kortovos in forum Sencha Touch 1.x: DiscussionReplies: 1Last Post: 9 Nov 2010, 1:10 AM -
Uncaught TypeError: Cannot call method 'indexOf' of undefined
By cwebb in forum Sencha Touch 1.x: DiscussionReplies: 11Last Post: 9 Sep 2010, 6:59 PM -
uncaught exception: Permission denied to call method XMLHttpRequest.open
By blackperl in forum Ext 2.x: Help & DiscussionReplies: 4Last Post: 26 Feb 2009, 6:16 AM -
uncaught exception: Permission denied to call method XMLHttpRequest.open
By lalit_ce in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 13 Jan 2009, 2:05 AM


Reply With Quote
