I'm doing some stuff with Jambi's Webkit classes (although I'm
certainly no expert).  I don't know what Dom 3 is or what javaxpcom
can do specifically (I'm not a professional programmer by trade).
What I'm using it for is as a basic HTML editor by setting
contenteditable to true, so my use sounds a little different than
yours.

I haven't had any troubles with Javascript, but the Javascript is
pretty basic so I can't say that I've taxed that area a whole lot.
I've done DOM manipulation without any problems in JavaScript.  The
biggest problem I've had is that Webkit produces HTML that can't be
parsed by QTs XML classes since Webkit.  I got around this by using
JTidy to clean up some of the tags.

It is difficult to get some of the actual HTML using Jambi.  For
example cursor manipulation on an editable page or finding the HTML of
selected text rather than just the text itself, but that could easily
be my ignorance.  I also really wish it had a built in spell checker
but I guess I can't have everything.  The most useful thing is that
you can expose Java classes to Webkit and access them in JavaScript.
That saves a bunch of effort passing data between Java & Webkit.

A couple of years ago I tried SWT but ran into too many problems and
the documentation wasn't very clear.  The issues were almost certainly
my lack of understanding.  Jambi was much easier and had better
examples.  I've used it equally well on Windows & Linux using both 64
& 32 bit builds.

I'm using the 4.5 release.  I tried the 4.6 release but the Windows
port had a few issues.  They were not critical, but I didn't have any
specific need to go to 4.6 so I stuck with 4.5.  When 4.7 is out I'll
check again.

If you are using Eclipse, the biggest problem I've had is debugging.
I can view some of the Qt classes, but just pointers to the classes
and I can't examine the contents themselves.  I'd appreciate it if
someone could tell me how.  :-)

I don't use the designer so I can't comment on that compared to other tools.

I hope this helps.

On Tue, Oct 19, 2010 at 5:35 AM, Li Li <[email protected]> wrote:
>    thank you.
>    I am trying to get started and follows the example.
> http://doc.trolltech.com/qtjambi-4.5.0_01/com/trolltech/qt/qtjambi-eclipse.html
>    I got plugin for eclipse from http://qt.nokia.com/downloads/ which
> is for jambi-4.5 and I got jambi 4.7 from
> http://sourceforge.net/projects/qtjambi/files/  when I specify the
> path for eclipse and validate it. it fails. it seems the plugin is not
> supporting jambi 4.7.
>    The version of 4.5 is maintained by Nokia with LGPL and 4.6-4.7 is
> maintained by community. Which version should I use? If there is no Qt
> Designer, will the work because much difficult?
>
> 2010/10/19 Helge Fredriksen <[email protected]>:
>> Hello Li,
>> Indeed, we support webkit. There have been some minor problems with
>> resolving https: addresses, but we believe that this is related to the need
>> to deploy the ssl binaries on the target platform (these symbols are not
>> statically linked into QtJambi binaries).
>> I didn't use the webkit stuff much myself except for running some examples,
>> so I recommend you to explore the API and see if you find the functionality
>> you are looking for.
>> Any qtjambi webkit experts out there? If not, you might ask on the
>> qt-interest list. The API calls in Qt should be more or less equivalent in
>> QtJambi.
>> Regards,
>> Helge Fredriksen
>>
>> On Tue, Oct 19, 2010 at 8:24 AM, Li Li <[email protected]> wrote:
>>>
>>> hi all,
>>>   I am searching for a method to embed a web browser in java
>>> application. There are a little solutions such as swt which embeds
>>> mozilla firefox by using javaxpcom binding. But new version of
>>> xulrunner seems to be hard supported by javaxpcom. And also webkit is
>>> becoming more and more popular. But there is no easy way to embed
>>> webkit into java in multiple platforms. I accidently found a qt port
>>> of webkit but it is written in c++. Luckily I found qt jambi projects
>>> and it is very active. I want to embed webkit into my java application
>>> which also can manipulate webkit more than navigate web pages, it also
>>> can inspect the dom three of web page or execute javascripts and many
>>> other things which need advanced api similar to javaxpcom. is qt jambi
>>> suitable for me? thank you all.
>>> _______________________________________________
>>> Qt-jambi-interest mailing list
>>> [email protected]
>>> http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
>>
>>
>
> _______________________________________________
> Qt-jambi-interest mailing list
> [email protected]
> http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
>

_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to