Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

webkit and opening new window



Hi,

I have downloaded and successfully ran the sample code for webkit in java.
But I have problem with opening new window.
What is happening is that in the loaded page I have a flash showing.
When the flash is clicked(this works in safari) it opens a new window with other page.
I've changed in org.dm.webkit.WebKitJava
webKitView.setNewWebViewCreatingPolicy(WEB_VIEW_POLICY_NONE);
to
webKitView.setNewWebViewCreatingPolicy(WEB_VIEW_POLICY_IN_NEW_WINDOW);


and again the same result. I keep debugging it and in the native method in CC_DMWebKitView
createWebViewWithRequest I saw that NSURLRequest request is null and so the method do nothing.
So I changed to continue execution of the method even with null request, I've recompiled the native part
and ran again the sample and now when you click on the flash a new window opens
but no url is loading.


Any idea what is wrong or any idea of workaround for this ?

Thanks in advance,
damencho

P.S. The main goal of my work is to catch the url that will be loaded in the newly created window and
without opening the window to load this url in the native browser.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden


This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.