I like to bring an old intranet application on the iPhone. Included is a function to hide the menu area which is located in a frame:
<frameset id="myFrameSet" cols="150,*"> <frame id="menuFrame" SRC="menu.aspx" /> <frame id="mainFrame" SRC="main.aspx" /> </frameset>
top.document.getElementById('myFrameSet').cols = "20,*";
This works in all current desktop browsers very well. But not in Safari on an iPhone or iPad. Debugging this it seems to change the "cols" attribute correctly, but the frame size remains where it was before.
Any suggestions on this? Or any different way to change a frame size client side?