Scripting issue

  • chris

    chris - 2012-01-19

    Here is the following script I am having trouble with…
    function addImage(obj)

        var chain = new Array();
        var show, season;
        var location = obj.location.split('/');
        var rootindex = 0;
        var conchain = null;

        for (var i = rootindex; i < location.length; i++)
           if (location_ == 'Photos')
                rootindex = i;
                contchain = 'Photos');

        if (rootindex >= location.length)

        if (location != 'Photos')

        for (i = rootindex; i < location.length - 1; i++)
        addCdsObject(obj, createContainerChain(chain));

    I am basically wanting to exit out of the routine if I reach the end of the string with no hit on picture or
    Photos is not in the location.

    It ignores this and adds pictures from anywhere that the other routines find a picture.
    What am I forgetting? or doing wrong… Also is there a flag to turn print on… I have enabled debug and also just ran with no debug on and I get no output when I call print('foo') from within any of my routines.

    Chris _

  • chris

    chris - 2012-01-23

    Fixed…. turned scripting on  again and it started to work.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks