Forum  Commercial Foru...  Commercial Foru...  stange eventhandler behaviour on mobile browsers
Previous Previous
 
Next Next
New Post 12/2/2011 5:20 AM
Unresolved
  Visualizer
665 posts
1st Level Poster




stange eventhandler behaviour on mobile browsers 
Modified By Visualizer  on 12/2/2011 9:21:08 AM)

 I tested this one on an iPhone (ios5) and and HTC - Android.

I'm trying to build a mobile application like the iPhone contacts app. I managed to get it working like it should. You can see a video here.

If you click the searchTextBox the click eventhandler fires this hides the top panel, show the cancel button and shows an opacity panel to mask the rest of the page.

If you execute this on a mobile browser the behaviour is not as it should be, see video here.

When the click eventhandler is executed the keyboard pops-up, then the rest of the code is executed, the keuboard disapears again. So you have to click again on the textbox to put the focus there and to make the keyboard visible.

You can easily reproduce this by putting a field on a form, add a click eventhandler where you do something else that refreshes the screen.

Tom

 

 
New Post 12/2/2011 8:32 AM
  palli
11838 posts
1st Level Poster




Re: stange eventhandler behaviour on mobile browsers 

Hi Tom,

Sorry to say, but this will have to wait for Ori's processing after the weekend.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 12/4/2011 10:16 PM
  Visualizer
665 posts
1st Level Poster




Re: stange eventhandler behaviour on mobile browsers 

 No problem, i will wait Ori's response.

Tom

 
New Post 12/6/2011 4:37 AM
  ori.cohen
4390 posts
1st Level Poster




Re: stange eventhandler behaviour on mobile browsers 

Hello Tom,

This is a known bug in Visual WebGui.
The only resolution for this is initiating an asynchronous focus assignment via server-client invocation.
This is the code to run:

Control objControl = sender as Control;
if (objControl != null)
{
    this.InvokeMethod("Controls_Focus", objControl.ID, true);
}

For some reason I do not understand this works on PC browsers and not on mobile Safari...

Please check your application logic, maybe it is not a must to update the UI of the TextBox's container on a TextBox click.

Regards,

Ori Cohen
Support Manager, the Visual WebGui team

 
New Post 12/7/2011 6:34 AM
  Visualizer
665 posts
1st Level Poster




Re: stange eventhandler behaviour on mobile browsers 

Where should this code be putted?

In the GotFocus event?

Tom

 
Previous Previous
 
Next Next
  Forum  Commercial Foru...  Commercial Foru...  stange eventhandler behaviour on mobile browsers
Azure banner
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS