Welcome, Guest
Username Password: Remember me

Need: How To - Fullscreen
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: Need: How To - Fullscreen

Need: How To - Fullscreen 13 years, 1 month ago #3834

  • stephanb
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
Hello Forum,

please help. I am trying to switch off the adressbar expt. the Safai bar but without luck.
In a Handmade html Test my Iphone shows the Site withouot Safari Toolbar. But in MJ it doesn't

pls help

stephan

Re: Need: How To - Fullscreen 13 years, 1 month ago #3839

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4866
  • Karma: 105
Most used solution is to add

<script>
function hideURLbar(){window.scrollTo(0,1);}
addEventListener("load",function(){setTimeout(hideURLbar,0);},false);
</script>

somewhere in mobile iphone template.
Last Edit: 13 years, 1 month ago by dryabov.

Re: Need: How To - Fullscreen 12 years, 3 months ago #7100

dryabov wrote:
Most used solution is to add

<script>
function hideURLbar(){window.scrollTo(0,1);}
addEventListener("load",function(){setTimeout(hideURLbar,0);},false);
</script>

somewhere in mobile iphone template.


Excellent!
I copy / paste this script in to the index.php in the mobile_iphone folder.
I put it in the top, before <php> code and it workes fine!

Thanks!
Just what I was looking for.

Re: Need: How To - Fullscreen 12 years, 3 months ago #7102

  • lovre86
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
i've inserted the code to the index.php in the directory templates/i_phone_mod but it doesn't work.

Re: Need: How To - Fullscreen 12 years, 3 months ago #7108

hmm?
this is where I put the code : /mySite/templates/mobile_iphone/index.php

and in the top of the php code like this:


<script>
function hideURLbar(){window.scrollTo(0,1);}
addEventListener("load",function(){setTimeout(hideURLbar,0);},false);
</script>
<?php
/**
* Mobile Joomla!
* www.mobilejoomla.com
*
* @version 1.0 RC5
* @license www.gnu.org/licenses/gpl-2.0.htm GNU/GPL
* @copyright (C) 2008-2011 MobileJoomla!
* @date November 2011
*/


I am not sure this script is possible to use globaly on all mobile templetes, try first in the Iphone index file, and then into next type of mobile index file, like /mySite/templates/mobile_pda/index.php

Re: Need: How To - Fullscreen 12 years, 3 months ago #7109

dryabov wrote:
Most used solution is to add

<script>
function hideURLbar(){window.scrollTo(0,1);}
addEventListener("load",function(){setTimeout(hideURLbar,0);},false);
</script>

somewhere in mobile iphone template.


Is there a script availeble also for hiding the button bar at the bottom?

Last Edit: 12 years, 3 months ago by Blip Blop 75.

Re: Need: How To - Fullscreen 12 years, 3 months ago #7206

  • arnask
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
is there any way to get completely FULL SCREEN web app on iphone?

Re: Need: How To - Fullscreen 12 years, 2 months ago #7330

  • hjv
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
  • Karma: 0
You should paste the code between the <head> and the <body> otherwise the layout for the main textbox will alter.

Greetings, Hendrik Jan Vis

Re: Need: How To - Fullscreen 12 years, 2 months ago #7336

  • arnask
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
but its hiding only url bar. What about status and button bars?

Re: Need: How To - Fullscreen 12 years, 2 months ago #7337

  • hjv
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
  • Karma: 0
First I want to say that I'm not an expert in this subject.

So I didn't want the Back-button. Therefore I delete this code from the index.php and then saved it.

[size=4]<a class="back" href="javascript:history.go(-1)">
<?php echo JText::_('TPL_MOBILE_IPHONE__BACK'); ?></a>[/size]


It worked. So there is also code for the home button and so on. It is advisable to make a copy of your code and save it so you can always go back to the original situation.

Good luck, hjv
Last Edit: 12 years, 2 months ago by hjv.
  • Page:
  • 1
  • 2
Time to create page: 0.13 seconds

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.