Icon View Thread

The following is the text of the current message along with any replies.
Messages 11 to 14 of 14 total
Thread Project manager
Tue, Mar 12 2013 6:17 AMPermanent Link

Matthew Jones

Bob,

Did you ever do that flattening, and is it code you could share? I am facing a
problem with login (and the onLoginNeeded callback), and it appears that you have
trodden the path I'm having to walk. Any assistance you are able to give would be
most welcome.

Tim, you say "The problem here is that EWB does not support class methods yet", but
if that has changed, please let me know.

/Matthew Jones/

> *Subject:* Re: Project manager
> *From:* Bob Devine <bobd@nospam.com>
> *Date:* Fri, 27 Jan 2012 19:48:25 +0000
>
> Hi Tim
>
> Ok, thanks, that explains why what appeared to be a sensible
> approach didn't work. It's not a major problem - I can write a
> simple JS module that flattens the RO one with the few classes I
> need re-exposed.
>
> Cheers, Bob
>
>
> On 27/01/2012 12:39, Tim Young [Elevate Software] wrote:
> > Bob,
> >
> > << However, I should have mentioned that the (RemObjects) file I'm
> > trying to use has a 2-level namespace. I've managed to get RO
> > working
> > where I've created a JavaScript wrapper class for the various RO
> > SDK
> > objects, and I pass callbacks into that from EWB. I'm now trying
> > to call
> > directly into the RO SDK (once I get this working I'll post both
> > approaches as a sample).
> >
> > A snippet of the RO SDK is as follows: >>
> >
> > The problem here is that EWB does not support class methods yet,
> > which
> > is what the JSONMessage, HTTPClientChannel, etc. members are, once
> > translated from JS. In EWB, they would need to be expressed as
> > class
> > constructors that return instances of the individual class types
> > that
> > are being declared. Basically, you're going to have this problem
> > with
> > any structure in JS that nests constructors.
> >
>
>
Tue, Mar 12 2013 4:20 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

<< Tim, you say "The problem here is that EWB does not support class methods
yet", but if that has changed, please let me know. >>

Yes, EWB supports class methods/properties/variables now:

http://www.elevatesoft.com/manual?action=viewtopic&id=ewb1&topic=Methods

under "Class Methods".

If you have any other questions, please let me know.

Tim Young
Elevate Software
www.elevatesoft.com
Wed, Mar 13 2013 2:57 PMPermanent Link

Robert Devine

Hi Matthew

It's been a while since I looked at this, although I'll be back on it in
the near future. I posted some RO and DA code in the demos and binaries
newsgroups - have you seen those?

I'll also be looking at session aspects, maybe next week though. I'll
post any RO/DA stuff I come up with on the demo newsgroup.

Cheers, Bob



On 12/03/2013 10:17, (Matthew Jones) wrote:
> Bob,
>
> Did you ever do that flattening, and is it code you could share? I am facing a
> problem with login (and the onLoginNeeded callback), and it appears that you have
> trodden the path I'm having to walk. Any assistance you are able to give would be
> most welcome.
>
> Tim, you say "The problem here is that EWB does not support class methods yet", but
> if that has changed, please let me know.
>
> /Matthew Jones/
>
>> *Subject:* Re: Project manager
>> *From:* Bob Devine <bobd@nospam.com>
>> *Date:* Fri, 27 Jan 2012 19:48:25 +0000
>>
>> Hi Tim
>>
>> Ok, thanks, that explains why what appeared to be a sensible
>> approach didn't work. It's not a major problem - I can write a
>> simple JS module that flattens the RO one with the few classes I
>> need re-exposed.
>>
>> Cheers, Bob
>>
>>
>> On 27/01/2012 12:39, Tim Young [Elevate Software] wrote:
>>> Bob,
>>>
>>> << However, I should have mentioned that the (RemObjects) file I'm
>>> trying to use has a 2-level namespace. I've managed to get RO
>>> working
>>> where I've created a JavaScript wrapper class for the various RO
>>> SDK
>>> objects, and I pass callbacks into that from EWB. I'm now trying
>>> to call
>>> directly into the RO SDK (once I get this working I'll post both
>>> approaches as a sample).
>>>
>>> A snippet of the RO SDK is as follows: >>
>>>
>>> The problem here is that EWB does not support class methods yet,
>>> which
>>> is what the JSONMessage, HTTPClientChannel, etc. members are, once
>>> translated from JS. In EWB, they would need to be expressed as
>>> class
>>> constructors that return instances of the individual class types
>>> that
>>> are being declared. Basically, you're going to have this problem
>>> with
>>> any structure in JS that nests constructors.
>>>
>>
>>
>
Wed, Mar 13 2013 3:10 PMPermanent Link

Matthew Jones

Bob,

I think it is your code that I am actually using. Indeed, I'd forgotten there was a
wbs script file from here until I started putting together an example for Tim. I've
made a change, but not made it work, but I hope that the extended knowledge will be
useful to many once it is sussed.

My issue is putting in place my own onLoginNeeded replacement, but I can work
around it for the moment.

/Matthew Jones/
Previous PagePage 2 of 2
Jump to Page:  1 2
Image