• Me again!

    From Glucose Grin@VERT to All on Sun Nov 11 08:57:00 2007
    Hey kids. Kavn't posted here in like 3 years, but I have another question, finally!

    I'm trying to load a .js in the background, and have it return some data to it's parent. I've got this in my logon.js

    queue=(load(true,"queuetest.js"));
    while (queue.length>0)
    {
    console.putmsg(queue.pop);
    }

    Does this make any sense?

    in queuetest.js I tried using some methods of parent_queue, ie. parent_queue.push(bla), but it dosn't look like parent_queue exists. Am I over my head here?

    Glucose GRin

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Glucose Grin@VERT to All on Mon Nov 12 06:42:00 2007
    Re: Me again!
    By: Glucose Grin to All on Sun Nov 11 2007 01:57 pm

    I'm trying to load a .js in the background, and have it return some data to it's parent. I've got this in my logon.js

    Okay, I actually RTFM a bit and found the synchronet defined queue object. My bad :)

    I guess I got something else to play with for the next few years.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to Glucose Grin on Sat Nov 17 16:07:00 2007
    Re: Me again!
    By: Glucose Grin to All on Sun Nov 11 2007 01:57 pm

    Hey kids. Kavn't posted here in like 3 years, but I have another question, finally!

    I'm trying to load a .js in the background, and have it return some data to it's parent. I've got this in my logon.js

    queue=(load(true,"queuetest.js"));
    while (queue.length>0)

    there is no "length property of the Queue class. See http://synchro.net/docs/jsobjs.html#Queue_properties.

    {
    console.putmsg(queue.pop);

    Perhaps you mean Queue.read()?

    }

    Does this make any sense?

    Not really. :-)

    in queuetest.js I tried using some methods of parent_queue, ie. parent_queue.push(bla), but it dosn't look like parent_queue exists. Am I o my head here?

    I'm not sure where you got the "push", "pop", and "length" ideas from, but they're not the correct method and property names.

    digital man (xbox-live: digitlman)

    Snapple "Real Fact" #180:
    The first VCR was made in 1956 and was the size of a piano.
    Norco, CA WX: ---.-øF, --% humidity, NaN mph --- wind, --.-- inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net