Re: IE DropDown onChange behavior not triggered on first time

2013-02-11 Thread Paul Bors
I'm on Wicket 1.5.x w/ IE 9 and the following behavior attached to a
DropDownChoice works just fine for me:

new AjaxEventBehavior("onchange") {
  private static final long serialVersionUID = 1L;
  @Override
  protected void onEvent(AjaxRequestTarget target) {
System.out.println("onchange of: " + getComponent().getId());
  }
}
~ Thank you,
   Paul Bors

On Mon, Feb 11, 2013 at 11:21 AM, divad91  wrote:

> Sorry, i am using wicket 1.4.21.
>
> My onchange behavior does not change the value. My behavior only prepend
> javascript only for a specific value.
>
> I am not changing the value programatically. On first page acces, if I
> select any option in the drowndown, the onchange event will not be trigger
> except if I click anywhere else on the page.
> If I come back in the same page, the same scenario will work without
> clicking anywhere else in the page.
>
> Thanks
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/IE-DropDown-onChange-behavior-not-triggered-on-first-time-tp4656237p4656241.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: IE DropDown onChange behavior not triggered on first time

2013-02-11 Thread divad91
Sorry, i am using wicket 1.4.21.

My onchange behavior does not change the value. My behavior only prepend
javascript only for a specific value. 

I am not changing the value programatically. On first page acces, if I
select any option in the drowndown, the onchange event will not be trigger
except if I click anywhere else on the page.
If I come back in the same page, the same scenario will work without
clicking anywhere else in the page.

Thanks




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/IE-DropDown-onChange-behavior-not-triggered-on-first-time-tp4656237p4656241.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: IE DropDown onChange behavior not triggered on first time

2013-02-11 Thread Paul Bors
Well, are you using Wicket 1.5.x or Wicket 6.x?
Wicket 6.x comes with jQuery already so you might have a conflict between
those two libraries? (I'm not sure about this, never run into it)
Btw, in IE on onChange is preatty much equivalent to an onBlur since the
onChange dosen't bubble:
http://msdn.microsoft.com/en-us/library/ms536912%28VS.85,loband%29.aspx
Are you changing the value of the select programatically (updating the
value via JS)?
http://social.msdn.microsoft.com/Forums/pl/iewebdevelopment/thread/3f6a7ea0-0779-441f-ad58-7a0b974643ea
~ Thank you,
Paul Bors

On Mon, Feb 11, 2013 at 10:45 AM, divad91  wrote:

> Hi,
> I have a strange behavior on dropdowns with Internet Explorer and wicket
> onchange behavior.
>
> I have a basic DropDownChoice with a basic onchange
> AjaxFormComponentUpdatingBehavior.
>
> The first time I enter the page, the onchange event will not be triggered
> on
> first click.
> To make the onchange trigger, I need to select a value in the drop down and
> click anywhere else on the page. This behavior occurs only on the first
> page
> access.
>
> I found a work around by adding an hidden ajax link in the page and binding
> the onchange event via jQuery.
>
> I was just wondering if anyone else had this problem ?
>
> Thanks
> Dav
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/IE-DropDown-onChange-behavior-not-triggered-on-first-time-tp4656237.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


IE DropDown onChange behavior not triggered on first time

2013-02-11 Thread divad91
Hi,
I have a strange behavior on dropdowns with Internet Explorer and wicket
onchange behavior.

I have a basic DropDownChoice with a basic onchange
AjaxFormComponentUpdatingBehavior.

The first time I enter the page, the onchange event will not be triggered on
first click.
To make the onchange trigger, I need to select a value in the drop down and
click anywhere else on the page. This behavior occurs only on the first page
access. 

I found a work around by adding an hidden ajax link in the page and binding
the onchange event via jQuery.

I was just wondering if anyone else had this problem ?

Thanks
Dav



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/IE-DropDown-onChange-behavior-not-triggered-on-first-time-tp4656237.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org