Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Contributor
Lawrence_Liu
Posts: 29
Registered: ‎09-05-2012
My Device: BlackBerry Q10 Z10
My Carrier: China Mobile

How to capture event of input datetime-local value change?

Dear All,

 

I found that on current Z10 device, it's not possible to capture datetime-local input value change,

 

the follow events were tried but non of them were triggerred by the system

 

  • onchange
  • ontextinput
  • oninput

Is there any advice on how to capture the datetime-local input value change?

 

Appreciate for any valuable and helpful information on this.

 

Regards.

Lawrence.

Please use plain text.
Contributor
Lawrence_Liu
Posts: 29
Registered: ‎09-05-2012
My Device: BlackBerry Q10 Z10
My Carrier: China Mobile

Re: How to capture event of input datetime-local value change?

Just a reference,

 

The follow post was found but with no answer regarding the resolution.

 

http://208.74.204.192/t5/BlackBerry-PlayBook/onchange-event-for-time-date-html-input-field-wan-t-wor...

Please use plain text.
Administrator
astanley
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: How to capture event of input datetime-local value change?

I think its because the dialog control that appears when you apply focus to this type of input field is not generated by WebKit.  it is a native dialog.  As a result, WebKit may not 'know' when it is dismissed and the value changes.

 

I feel this is a bug that should be resolved.  Can you file an issue here:

https://www.blackberry.com/jira/secure/Dashboard.jspa

 

What about the onfocusout event?  Does that event work when you leave focus of the control?  It so it may be a temp workaround to help you handle whatever page logic you are trying to implement.

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Please use plain text.
Contributor
Lawrence_Liu
Posts: 29
Registered: ‎09-05-2012
My Device: BlackBerry Q10 Z10
My Carrier: China Mobile

Re: How to capture event of input datetime-local value change?

[ Edited ]

Dear Astanley,

 

Thanks for your attention and help on this topic.

 

I have tested onfocusout and it's also didn't got triggerred.

 

As I known by now, there's no known event been triggerred for datatime-local at this moment.

 

I will create a bug in the system you mentioned.

 

Regards.

Lawrence Liu

Please use plain text.