[FX.php List] Quick tip for iPhone programmers

Bob Patin bob at patin.com
Wed Jul 25 00:15:18 MDT 2007


If you're planning to do an iPhone web app with FX.php, I've found a  
great tip that will help to make your app look more like an  
application and less like a web page.

On the iPhone, you can easily hide the top toolbar (the address bar  
on a standard browser) by applying a tiny bit of Javascript:

Write a bit of JS that adjusts the window's scroll setting, and call  
it on the window load:


<body onload="hideBar();">

<script type="application/x-javascript">
	function hideBar(){
     	window.scrollTo(0, 1);
	}
</script>


...
</body>


Hope this helps someone,

Bob Patin
Longterm Solutions
bob at longtermsolutions.com
615-333-6858
http://www.longtermsolutions.com

   CONTACT US VIA INSTANT MESSAGING:
      AIM or iChat: longterm1954
      Yahoo: longterm_solutions
      MSN: tech at longtermsolutions.com
      ICQ: 159333060






More information about the FX.php_List mailing list