Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [atf-dev] How the ATF interacts with Mozilla browser?

Yes, this is possible and it works well. You need to inject the javascript into the DOM, and then from java do a setURL() to your script.

For the other direction (javascript back to java), we created a simple DOM monitor that looks for and acts on the presence of certain attributes that get set dynamically through javascript.

Take good care,
David
Sent from my BlackBerry® wireless handheld

-----Original Message-----
From: "Yihao Zhang" <yihao.ross@xxxxxxxxx>

Date: Wed, 5 Sep 2007 15:35:34 
To:atf-dev@xxxxxxxxxxx
Cc:"Adam L. Peller" <adam@xxxxxxxxxx>
Subject: Re: [atf-dev] How the ATF interacts with Mozilla browser?


Hi: 
  
After I watched the web seminar of ATF, I found that ATF can partially meet the requirements of our project. However, I have no idea about whether ATF can meet the following requirement: 
  
I need a Java application to invoke a JavaScript function running in Mozilla browser. Besides that, the result can be sent back to the Java application. Is it possible to do this?  Could anybody give me a certain answer? 
  
Thank you all for any suggestion on that. 
  
Ross 
  


  
2007/9/5, Adam L. Peller <adam@xxxxxxxxxx <mailto:adam@xxxxxxxxxx> >: So JavaXPCOM is what we're using underneath.  If the ATF abstractions
are also useful, that's great!  Those ATF classes may also serve as 
your JavaXPCOM examples, if the documentation is that sparse.

Good luck.

Ross

On 9/4/07, Yihao Zhang <yihao.ross@xxxxxxxxx <mailto:yihao.ross@xxxxxxxxx> > wrote:
> Hi Adam:
 >
> I have tried the JavaXPCOM. However, due to the lackness of  examples, I
> have no idea how to actually use it in my application.
>
> BTW, I found some interesting stuff in ATF. IWeb interface is a connection 
> between the actual Mozilla browser and the MozBrowserEditor class which is
> one of the core classes in ATF. Anyway, I will continue my research and I am
> trying to debug the ATF.
>
> Thank you for your advice. 
>
> Ross
>
>
> 2007/9/5, Adam L. Peller <adam@xxxxxxxxxx <mailto:adam@xxxxxxxxxx> >:
> > Ross,
> >
> > The Java to XPCOM bridge was developed by one of the ATF developers, 
> > but as part of the Mozilla project so it can be used independently
> > from ATF.  Try
> http://developer.mozilla.org/en/docs/JavaXPCOM <http://developer.mozilla.org/en/docs/JavaXPCOM> 
> >
>
>
>
> --
> Yihao Zhang
>
> P.O.BOX 430
> Xidian University
> No.2 South Taibai Road
> Xi'an, Shaanxi 710071
> P.R.China
>
> Cell-phone: (+86)-158-1023-9521 
> Email: yihao.ross@xxxxxxxxx <mailto:yihao.ross@xxxxxxxxx> 
> IM: dreamdust111@xxxxxxxxxxx <mailto:dreamdust111@xxxxxxxxxxx> 

 _______________________________________________
atf-dev mailing list
atf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/atf-dev


Back to the top