How to see Javascript error?  Something to turn on in the browser?

On Wed, Mar 5, 2008 at 10:22 PM, Igor Vaynberg <[EMAIL PROTECTED]>
wrote:

> ok, but do you see javascript errors after you press the link? because
> that outputs a window.close() javascript to close the window...
>
> -igor
>
>
> On Wed, Mar 5, 2008 at 9:03 PM, Gin Yeah <[EMAIL PROTECTED]> wrote:
> > There is no Javascript generated at the browser end at all:
> >
> >  <a href="?wicket:interface=Salumonunu:0:closeLink::ILinkListener::"
> >  wicket:id="closeLink">Close</a>
> >
> >  The popup is open with this:
> >
> >  Java:
> >
> >         PopupSettings ps = new PopupSettings()
> >             .setHeight(200)
> >             .setWidth(100)
> >             .setTop(50)
> >             .setLeft(200)
> >             .setWindowName("Salumonunu");
> >
> >         add(new PageLink("popupPageLink", AnotherPage.class
> >  ).setPopupSettings(ps));
> >
> >  html:
> >
> >             <li><a wicket:id="popupPageLink">Popup another page</a></li>
> >
> >
> >  AnotherPage.java:
> >
> >  public class AnotherPage extends ExtendFromBasePage {
> >     private static final long serialVersionUID = 1L;
> >     public AnotherPage() {
> >         add(new PopupCloseLink("closeLink") {
> >             private static final long serialVersionUID = 1L;
> >             @Override public void onClick() {
> >                 System.out.println("HERE HERE HERE");
> >             }
> >         });
> >     }
> >
> >
> >
> >  AnotherPage.html:
> >
> >  <html>
> >     <a wicket:id="closeLink">Close</a>
> >  </html>
> >
> >
> >
> >  The generated code in the browser:
> >
> >  <a href="?wicket:interface=Salumonunu:0:closeLink::ILinkListener::"
> >  wicket:id="closeLink">Close</a>
> >
> >
> >
> >
> >
> >  On Wed, Mar 5, 2008 at 5:37 PM, Igor Vaynberg <[EMAIL PROTECTED]>
> >  wrote:
> >
> >
> >
> >  > any javascript errors in your browser? is the popupcloselink inside
> >  > the popup window - which is another window that is NOT a modal
> >  > window...?
> >  >
> >  > -igor
> >  >
> >  >
> >  > On Wed, Mar 5, 2008 at 4:28 PM, MYoung <[EMAIL PROTECTED]> wrote:
> >  > >
> >  > >  I must be doing it wrong.  I have this in my  popup template:
> >  > >
> >  > >  &lt;a wicket:id="closeMe"&gt;Close&lt;/a&gt;
> >  > >
> >  > >
> >  > >  In java:
> >  > >
> >  > >  add(new PopupCloseLink("closeMe") {
> >  > >      @Override public void onClick() {
> >  > >            // HERE HERE
> >  > >     }
> >  > >  });
> >  > >
> >  > >  onClick() is called but the popup window stays.
> >  > >
> >  > >  Another question, how to get notify  when the popup is close by
> >  > clicking on
> >  > >  the close box on the browser window's title bar?
> >  > >  --
> >  > >  View this message in context:
> >  >
> http://www.nabble.com/Why-PopupCloseLink-doesn%27t-close-my-popup--tp15863742p15863742.html
> >  > >  Sent from the Wicket - User mailing list archive at Nabble.com.
> >  > >
> >  > >
> >  > >
>  ---------------------------------------------------------------------
> >  > >  To unsubscribe, e-mail: [EMAIL PROTECTED]
> >  > >  For additional commands, e-mail: [EMAIL PROTECTED]
> >  > >
> >  > >
> >  >
> >  > ---------------------------------------------------------------------
> >  > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >  > For additional commands, e-mail: [EMAIL PROTECTED]
> >  >
> >  >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to