Re: Strange window popup with Anchor widget in 1.6.4

2009-04-22 Thread Clive Cox

Thanks Salvador, this seems to have worked.
What is confusing is the constructor I used has in the javadoc:
"Creates an anchor for scripting. The anchor's href is set to
javascript:, based on the expectation that listeners will be added to
the anchor."
This seems to imply what I was trying to do, but maybe href set to
"javascript:" doesn't work. Is this a bug?


On Apr 22, 8:58 am, Salvador Diaz  wrote:
> The anchor widget is just a regular  tag so if you use that
> constructor, clicking on it will open a new browser window. To get an
> anchor that doesn't do that use the 
> constructorhttp://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/g...)
> with "#" as the href.
>
> Salvador
>
> On Apr 21, 7:53 pm, Clive Cox  wrote:
>
> > With 1.6.4 on linux in Hosted mode, if I have something like:
>
> > Anchor anchor = new Anchor("some text");
> > anchor.addClickHandler(new ClickHandler()
> > {
> > public void onClick(ClickEvent event)
> > {
> > //do something
> >  }
>
> > });
>
> > I get a new blank browser window popup and and several warnings in the
> > hosted mode console like:
>
> > [WARN] Confirmation was required to visit untrusted URL:
> > 'jar:resource:///chrome/toolkit.jar!/content/global/console.xul
>
> > Any ideas what's going on?
>
> > The click handler seems to still get fired.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Strange window popup with Anchor widget in 1.6.4

2009-04-22 Thread Salvador Diaz

The anchor widget is just a regular  tag so if you use that
constructor, clicking on it will open a new browser window. To get an
anchor that doesn't do that use the constructor
http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/Anchor.html#Anchor(java.lang.String,%20boolean,%20java.lang.String)
with "#" as the href.

Salvador

On Apr 21, 7:53 pm, Clive Cox  wrote:
> With 1.6.4 on linux in Hosted mode, if I have something like:
>
> Anchor anchor = new Anchor("some text");
> anchor.addClickHandler(new ClickHandler()
> {
>         public void onClick(ClickEvent event)
>         {
>             //do something
>          }
>
> });
>
> I get a new blank browser window popup and and several warnings in the
> hosted mode console like:
>
> [WARN] Confirmation was required to visit untrusted URL:
> 'jar:resource:///chrome/toolkit.jar!/content/global/console.xul
>
> Any ideas what's going on?
>
> The click handler seems to still get fired.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Strange window popup with Anchor widget in 1.6.4

2009-04-21 Thread Clive Cox

With 1.6.4 on linux in Hosted mode, if I have something like:

Anchor anchor = new Anchor("some text");
anchor.addClickHandler(new ClickHandler()
{
public void onClick(ClickEvent event)
{
//do something
 }
});

I get a new blank browser window popup and and several warnings in the
hosted mode console like:

[WARN] Confirmation was required to visit untrusted URL:
'jar:resource:///chrome/toolkit.jar!/content/global/console.xul

Any ideas what's going on?

The click handler seems to still get fired.





--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---