This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
3 Replies Last post: Jan 25, 2010 1:55 PM by Vladimir Ikryanov  
Bruce Sonnenfeld   6 posts since
Dec 26, 2009
Currently Being Moderated

Jan 24, 2010 11:56 PM

final NewWindowParams params has blank params.getUrl() value

I am adding a NewWindowManager" to my jxBrowser component.

 

When it gets to the "evaluateWindow(final NewWindowsParams params)" method, the params.getUrl() is always blank instead of the Url the link is going to.

 

Any expalation as to what I'm doing wrong?

 

Thanks

 

Some code snippet (*** shows bad lines):

 

public NewWindowContainer evaluateWindow (final NewWindowParams params) {
                    return new NewWindowContainer() {
                        public void insertBrowser(final Browser browser) {

                              final JFrame popupFrame = new JFrame();
                            Container contentPane = popupFrame.getContentPane();
                            contentPane.add(browser.getComponent(), BorderLayout.CENTER);
               
***                                String url = params.getTargetName();    // THIS IS BLANK!!!
***                                url = params.getUrl();                // THIS IS BLANK!!!

 

                                Rectangle r = params.getBounds();
                                r.width = newBrowserWidth;
                                r.height = newBrowserHeight;
                            popupFrame.setBounds(r);
                            popupFrame.setVisible(true);

Vladimir Ikryanov TeamDev Ltd. 879 posts since
Apr 24, 2006
Currently Being Moderated
1. Jan 25, 2010 12:52 PM in response to: Bruce Sonnenfeld
Re: final NewWindowParams params has blank params.getUrl() value

Hi Bruce,


You receive blank TargetName and URL parameters for Mozilla engine because it doesn't provide them when new popup window should be opened. It works for IE engine and we will find a way to implement support of these parameters for Mozilla engine too in one of the next version of JxBrowser. Probably in 2.3 (March).


Regards,

Vladimir Ikryanov

Vladimir Ikryanov TeamDev Ltd. 879 posts since
Apr 24, 2006
Currently Being Moderated
3. Jan 25, 2010 1:55 PM in response to: Bruce Sonnenfeld
Re: final NewWindowParams params has blank params.getUrl() value

Hi Bruce,


Unfortunately we couldn't provide a workaround for now But we will let you know as soon as possible when the issue is solved.


Regards,

Vladimir Ikryanov

More Like This

  • Retrieving data ...