is not a function, it is object why?

Questions, tips and tricks and techniques for scripting in Servoy

is not a function, it is object why?

Postby DEK4 » Sun Aug 05, 2012 2:11 pm

Hello...

i recieve this error:
Code: Select all
Exception Object: org.mozilla.javascript.EcmaError: TypeError: XMLFileProcess is not a function, it is object.


i don't know why it works perfectly i haven't od any changes to the functions.
User avatar
DEK4
 
Posts: 111
Joined: Wed Oct 12, 2011 9:26 am

Re: is not a function, it is object why?

Postby logicimpresa » Sun Aug 05, 2012 3:10 pm

DEK4 wrote:Hello...

i recieve this error:
Code: Select all
Exception Object: org.mozilla.javascript.EcmaError: TypeError: XMLFileProcess is not a function, it is object.


i don't know why it works perfectly i haven't od any changes to the functions.


Can you show the code where the error is?

Gianluca
User avatar
logicimpresa
 
Posts: 65
Joined: Sun May 01, 2011 3:58 pm
Location: Bernate Ticino (MI) - Italy

Re: is not a function, it is object why?

Postby DEK4 » Sun Aug 05, 2012 11:55 pm

SOLVED.

the problem was variables, i declare it in this way:

Code: Select all
/** @type {XMLList} */ var _c


the correct way is:
Code: Select all
/** @type {XMLList} */
   var _c


thanks
User avatar
DEK4
 
Posts: 111
Joined: Wed Oct 12, 2011 9:26 am


Return to Methods

Who is online

Users browsing this forum: No registered users and 6 guests