• Me again!

    From Glucose Grin@VERT to All on Sunday, November 11, 2007 13:57:27
    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 Monday, November 12, 2007 11:42:12
    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 Saturday, November 17, 2007 21:07:12
    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