Forum  Commercial Foru...  Commercial Foru...  detecting full screen on iPhone
Previous Previous
 
Next Next
New Post 11/24/2011 5:36 AM
Resolved
  Visualizer
672 posts
1st Level Poster




detecting full screen on iPhone 

 I want to detect on an iPhone if the VWG app is running in fullscreen mode or just in Safari.

http://www.bennadel.com/blog/1950-Detecting-iPhone-s-App-Mode-Full-Screen-Mode-For-Web-Applications.htm

I'm not really int JavaScript and VWG, how can this be done with VWG.

Is it possible to add it to the standard  VWG framework. 

Tom

 
New Post 11/24/2011 7:51 AM
  ori.cohen
4401 posts
1st Level Poster




Re: detecting full screen on iPhone 

Hello Tom,

What you need to do is to create a custom Visual WebGui control that will add a JavaScript function that performs this check and then create and send an event with that information to server-side, to be handled.
You can call this JS function via server-client invocation.

You should probably start by creating a simple SkinnableControl and then registering it to your application.
For information on skinnable controls, please view this article here.
For information on registering controls, please view this article here.
For information on client-server events, please view this article here.
For information on server-client invocation, please view this article here.

Regards,

Ori Cohen
Support Manager, the Visual WebGui team

 
New Post 11/24/2011 11:06 PM
  Visualizer
672 posts
1st Level Poster




Re: detecting full screen on iPhone 

 I was allready afraid of that :)

It would be nice if it could be available in the VWG framework so you just can read some session vaiable to ask if it's running in full screen.

Tom

 
New Post 11/25/2011 11:30 AM
  palli
14324 posts
1st Level Poster




Re: detecting full screen on iPhone 

Hi Tom,

It should be very easy to implement something like this, and if you supply the JavaScript, I hereby offer my help in implementing a simple solution that you can implement relatively easy in your applications.

Just say the word, and of course send the JavaScript :-)

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 11/28/2011 8:28 AM
  Visualizer
672 posts
1st Level Poster




Re: detecting full screen on iPhone 

 Hi Palli, that would be great!

The code is here:

http://www.bennadel.com/blog/1950-Detecting-iPhone-s-App-Mode-Full-Screen-Mode-For-Web-Applications.htm

Thanks in advance!

Tom

 
Previous Previous
 
Next Next
  Forum  Commercial Foru...  Commercial Foru...  detecting full screen on iPhone
.NET HTML5 Web, Cloud and Mobile application delivery | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2012 Visual WebGui®       Visual WebGui weblog on ASP.NET Gizmox Blog Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS