Clicking HyperLink Twice or more...

99 views
Skip to first unread message

Santosh kumar

unread,
Aug 12, 2010, 8:49:52 AM8/12/10
to google-we...@googlegroups.com
Hi,

I am using GWT HyperLinks in my Project, i want some clarification about these links.
when i click on the link for the first time it works fine. Immediately when i click the same link its not working.
Like control is not coming to that link.. is their any logic to get the control to the link when its get clicked continuously.
please can any one answer to my doubt ???   


--
Thanks & Regards

S a n t o s h  k u m a r . k

aditya sanas

unread,
Aug 12, 2010, 9:37:16 AM8/12/10
to google-we...@googlegroups.com
Hi,

check for click handlers that you are registering for that particular link
Ideally it should work fine...
meanwhile if you are losing that event handler after first click then and then only this problem could be faced.
I never faced such kind of situation with the links
I used Anchor from GWT...

--
Aditya


--
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-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Santosh kumar

unread,
Aug 12, 2010, 10:50:15 AM8/12/10
to google-we...@googlegroups.com
Hi aditya,

Actually the issue is when i click the continuously the same link  it should work..
in the sense it should work as it was clicked for the fist time ...??
it should start its work from the first ... like (refresh)... i hope u got my doubt ...!!!

miller

unread,
Aug 12, 2010, 11:15:25 AM8/12/10
to Google Web Toolkit
Have you checked for javascript errors on the first click?

On Aug 12, 9:50 am, Santosh kumar <kopp....@gmail.com> wrote:
> Hi aditya,
>
> Actually the issue is when i click the continuously the same link  it should
> work..
> in the sense it should work as it was clicked for the fist time ...??
> it should start its work from the first ... like (refresh)... i hope u got
> my doubt ...!!!
>
> On Thu, Aug 12, 2010 at 7:07 PM, aditya sanas <007aditya.b...@gmail.com>wrote:
>
>
>
>
>
> > Hi,
>
> > check for click handlers that you are registering for that particular link
> > Ideally it should work fine...
> > meanwhile if you are losing that event handler after first click then and
> > then only this problem could be faced.
> > I never faced such kind of situation with the links
> > I used Anchor from GWT...
>
> > --
> > Aditya
>
> > On Thu, Aug 12, 2010 at 6:19 PM, Santosh kumar <kopp....@gmail.com> wrote:
>
> >> Hi,
>
> >> I am using GWT HyperLinks in my Project, i want some clarification about
> >> these links.
> >> when i click on the link for the first time it works fine. Immediately
> >> when i click the same link its not working.
> >> Like control is not coming to that link.. is their any logic to get the
> >> control to the link when its get clicked continuously.
> >> please can any one answer to my doubt ???
>
> >> --
> >> Thanks & Regards
>
> >> *S a n t o s h  k u m a r . k*
>
> >> --
> >> 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-we...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsubs cr...@googlegroups.com>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/google-web-toolkit?hl=en.
>
> >  --
> > 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-we...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsubs cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> Thanks & Regards
>
> *S a n t o s h  k u m a r . k*

Thomas Broyer

unread,
Aug 12, 2010, 1:13:24 PM8/12/10
to Google Web Toolkit


On 12 août, 14:49, Santosh kumar <kopp....@gmail.com> wrote:
> Hi,
>
> I am using GWT HyperLinks in my Project, i want some clarification about
> these links.
> when i click on the link for the first time it works fine. Immediately when
> i click the same link its not working.
> Like control is not coming to that link.. is their any logic to get the
> control to the link when its get clicked continuously.
> please can any one answer to my doubt ???

Hyperlink calls History.newItem on clicks, and History.newItem won't
fire a ValueChangeEvent if the target token is the same as the current
one (as, obviously, there would be no "change in value").
You might want to use a Label (or maybe Anchor if you want it to
really work like a link, with the ability to open in a new window/tab,
copy link URL, etc.) with a ClickHandler in which you'd call
History.newItem *and* do what you want to do (or: call newItem(token,
false) and then fireCurrentHistoryState if you really want to keep
your logic ValueChangeHandlers)

Sree ...

unread,
Aug 12, 2010, 10:45:13 PM8/12/10
to google-we...@googlegroups.com
Looks like there is some problem with latests GWT upgrade!! or am I doing it wrong?

This happens for me also. I use buttons in my page. First click on the buttons works, 2nd click donesn't and again 3rd click works. Its used to work perfectly until i updated my GWT to latest version. I haven't changed anything with my code. 

No errors seen in firebug.

--
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-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.




--
-Thanks
-Srikanth.G
-Google India Ltd
-Hyderabad
Reply all
Reply to author
Forward
0 new messages