CallJS.ReadExecutionReturn produces an log error

0 favourites
  • 1 posts
From the Asset Store
Use this game pack to create your own game, modify the existing game or simply take a look and see how it was made.
  • Hi all, I am doing a project in which I use pure JS, and execute this by using the CallJS plugin. This went okay for one event sheet, but on the other I always get an error in my console log

    [quote:1374n9ny]CHROME: Uncaught TypeError: Cannot call method 'toString' of undefined

    FIREFOX: TypeError: x is undefined

    I have an export on

    In the first text field enter the following string:


    The following is the code that produces the return value:

    var returnstring;
    function retrieveStorylist(){
    input = prompt('Voer hier het unieke gebruikersnummer in');
        type:    'GET',
        url:     ''+input+'/',
        success: function() {
    	   setting =''+input+'/');
    	   setTimeout(function(){setting.close()}, 1000);
    			type:	'GET',
    			url:	''+input+'/list',
    			xhrFields: {
    				withCredentials: true
    			success: function(text){
    				if (text === ''){
    					alert('Er is iets fout gegaan .... Meldt dit bij Improvive (Roel, Quincy of Tariq).');
    				else {
    					/*text = JSON.parse(text);*/
    					numlist = text.length;
    					var inb = {
    						'c2array': true,
    						'size': [text.length, 3, 1],
    							return [
    				returnstring = JSON.stringify(inb, null, 4);
    								error: function(){
    									alert("Er is iets fout gegaan, controlleer het nummer en probeer het opnieuw");
    return returnstring;[/code:1374n9ny]
    What goes wrong? :c
    (I chose not to include an capx because the event sheet is basically
    returnvalue = CallJS.ReadExecutionReturn
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)