I went back and evaluated my code and the code that he provided above
worked perfectly once I got it in there correctly.  Thank you for your
help.  I am by no means a professional programmer.

Flip, believe it or not, you shamed me into seeing what I was doing
wrong.  (I know very little about javascript, but a few things are
staring to make a little sense)

Thanks again.

On Feb 17, 6:44 pm, Ziga Ham <[email protected]> wrote:
> something like this maybe:
>
> initialize: function(options){
>                this.setOptions(options);
>                this.container = $(this.options.container) || document.body;
>
>                this.oldLotstatus = false;
>
>                this.onRaw('postmsg', this.onMsg);
>                this.onRaw('postmsg', this.test);
>                this.addEvent('load',this.start);
>        },
>
>        start: function(core){
>                this.core.start({'name': $time().toString()});
>        },
>
>        test: function(raw){
>                var lotstatus = decodeURIComponent(raw.data.lotstatus);
>
>                if (this.oldLotstatus != false && this.oldLotstatus
> != lotstatus) test();
>                //or just (this.oldLotstatus != lotstatus) if you want
> function to be called at first info too
>
>                test();
>        },
>
> the one starting with this. is "global" - property of class
> the one without this. is current value
>
>
>
> On Thu, Feb 18, 2010 at 12:49 AM, flipkick <[email protected]> wrote:
> > hm,
>
> >   test: function(raw){
> >>                 test();
> >>         },
>
> >>  What isn't working is this:
>
> >> test: function(raw){
> >>                var lotstatus = false;
> >>                lotstatus = decodeURIComponent(raw.data.lotstatus);
>
> >>                if (oldLotstatus != false&&  oldLotstatus !=
> >> raw.data.lotstatus) {
> >>                 test(); //call testFunction
> >>         }
> >>        }
>
> > this code doesn't make any sense to me. you can't overload a function in
> > javascript. also lotstatus is never used and oldLotstatus is not defined.
> > IMHO you should give your work to a qualified programmer or get commercial
> > support by weelya. otherwise you'll get more and more problems which are
> > very, very basic. i don't mean this in a disrespectful way. and no, i'm not
> > from weelya ;-)
>
> > flip
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "APE Project" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<ape-project%[email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/ape-project?hl=en
> > ---
> > APE Project (Ajax Push Engine)
> > Official website :http://www.ape-project.org/
> > Git Hub :http://github.com/APE-Project/
>
> --
> Best regards,
> Žiga Ham

-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

Reply via email to