Hi Bob: Thank you for your kindly help. I have already CVS all the source code and basicly figured out the JS mechanism in ATF.
One more question about ATF. I think the browser embeded in ATF is the Mozilla browser instance which means that it is not the actual Mozilla browser running in it. Is that correct? So, I am wondering whether I can invoke or embed a actual Firefox browser through JavaXPCOM using the ATF mechanism? Besides that, I found the Mozilla browser is running in the SWT frame. Is it possible that we discard the SWT package and let the browser run in a Swing or AWT application? Thanks a lot. Ross 2007/9/7, Robert Goodman <[EMAIL PROTECTED]>: > > > Yihao > > Forgot to put the link to the page that describes how to get the source - > http://www.eclipse.org/atf/source/index.php > > thanks > Bob > > Robert Goodman > IBM Emerging Technologies > [EMAIL PROTECTED] > 512-838-8824 T.L. 678-8824 > > > *Robert Goodman/Austin/[EMAIL PROTECTED] > Sent by: [EMAIL PROTECTED] > > 09/06/2007 08:12 PM Please respond to > AJAX Toolkit Framework discussion <atf-dev@eclipse.org> > > To > AJAX Toolkit Framework discussion <atf-dev@eclipse.org> cc > Subject > Re: [atf-dev] How the ATF interacts with Mozilla browser? > > > > > > > Yihao > > The latest ATF Milestone has a view that allows an user to type in > JavaScript and have it evaluated in the context of the browser. You might > want to look at how that was implemented. This page tells you how to get the > source. The code for the JavaScript evaluation view in plugin > org.eclipse.atf.mozilla.ide.ui. and the packages are > org.eclipse.atf.mozilla.ide.ui.jseval and > org.eclipse.atf.mozilla.ide.ui.jseval.model > > Thanks > Bob > > Robert Goodman > IBM Emerging Technologies > [EMAIL PROTECTED] > 512-838-8824 T.L. 678-8824 > > *"Yihao Zhang" <[EMAIL PROTECTED]>* > Sent by: [EMAIL PROTECTED] > > 09/05/2007 08:52 PM > Please respond to > AJAX Toolkit Framework discussion <atf-dev@eclipse.org> > > To > [EMAIL PROTECTED], "AJAX Toolkit Framework discussion" < > atf-dev@eclipse.org> cc > Subject > Re: [atf-dev] How the ATF interacts with Mozilla browser? > > > > > > > Hi, David: > > Thank you for your answer. It helps me a lot. > > I feel a little bit confused about injecting javascript into the DOM and > setURL() to the script. How can we inject javascript into the DOM and why > does the java application need to do setURL() to the script? Could you > explain more on that? > > I think that through JAVAXPCOM, we could get a Mozilla instance and > through that instance, we can get all interfaces provided by XPCOM. Is that > true? Besides that, is there any interface provided by JAVAXPCOM or XPCOM > to let Mozilla communicate with the Javascript running in it? > > Thank you very much. > > Ross > > > 2007/9/5, David Thomson <[EMAIL PROTECTED] <[EMAIL PROTECTED]>>: > > 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(r) wireless handheld > > -----Original Message----- > From: "Yihao Zhang" <[EMAIL PROTECTED] <[EMAIL PROTECTED]>> > > Date: Wed, 5 Sep 2007 15:35:34 * > **To:[EMAIL PROTECTED] <To:atf-dev@eclipse.org> > Cc:"Adam L. Peller" <[EMAIL PROTECTED] <[EMAIL PROTECTED]>> > 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 applicationto 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 <[EMAIL PROTECTED] <[EMAIL PROTECTED]> > <mailto:[EMAIL PROTECTED] > * <[EMAIL PROTECTED]>> >: 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 <[EMAIL PROTECTED] <[EMAIL PROTECTED]><mailto: > [EMAIL PROTECTED] <[EMAIL PROTECTED]>> > wrote: > > Hi Adam: > > > > I have tried the JavaXPCOM. However, due to the lackness ofexamples, 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 <[EMAIL PROTECTED] <[EMAIL PROTECTED]> <mailto:* > [EMAIL PROTECTED] <[EMAIL PROTECTED]>> >: > > > 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>< > *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: [EMAIL PROTECTED] <[EMAIL PROTECTED]> <mailto:* > [EMAIL PROTECTED] <[EMAIL PROTECTED]>> > > IM: [EMAIL PROTECTED] <[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED] > * <[EMAIL PROTECTED]>> > > _______________________________________________ > atf-dev mailing list* > [EMAIL PROTECTED] <atf-dev@eclipse.org>* > **https://dev.eclipse.org/mailman/listinfo/atf-dev*<https://dev.eclipse.org/mailman/listinfo/atf-dev> > > > _______________________________________________ > atf-dev mailing list* > [EMAIL PROTECTED] <atf-dev@eclipse.org>* > **https://dev.eclipse.org/mailman/listinfo/atf-dev*<https://dev.eclipse.org/mailman/listinfo/atf-dev> > > _______________________________________________ > atf-dev mailing list > atf-dev@eclipse.org > https://dev.eclipse.org/mailman/listinfo/atf-dev > _______________________________________________ > atf-dev mailing list > atf-dev@eclipse.org > https://dev.eclipse.org/mailman/listinfo/atf-dev > > > _______________________________________________ > atf-dev mailing list > atf-dev@eclipse.org > https://dev.eclipse.org/mailman/listinfo/atf-dev > >
_______________________________________________ atf-dev mailing list atf-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/atf-dev