Use divs sized and placed using CSS for your containers. I do this and then use an AJAX call to fill them if I need remote data rather than the src attribute of the frame tag.
Lee On Apr 14, 9:37 am, marcoeg <[email protected]> wrote: > Hi there, > > I am developing a web iphone application that uses frames and I would > like to prevent rubber-band scrolling. This is to make it behave like > a native application with the browser in full screen mode. > > Disabling the touchmove event as suggested elsewhere in the list it > works, but not if a frame is included: > > <html lang="en"> > <head> > <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> > <meta http-equiv="X-UA-Compatible" content="chrome=1" /> > <meta name="viewport" content="width=device-width; initial-scale=1.0; > maximum-scale=1.0; user-scalable=0;" /> > <meta name="apple-mobile-web-app-capable" content="yes" /> > <meta name="apple-mobile-web-app-status-bar-style" content="black" /> > > <script language="javascript" type="text/javascript" src="./libraries/ > jquery-1.4.2.min.js"></script> > > <script> > $(document).ready(function() { > document.addEventListener('touchmove', function(e) { > e.preventDefault(); > }); > }); > </script> > </head> > <body> > <frameset id="mainFrameset" cols="22%,78%" frameborder="#"> > <frame name="menuFrame" id="leftFrame" > scrolling="no"> > <frame name="mainFrame" id="rightFrame" > scrolling="no"> > </frameset> > </body> > </html> > > Removing the frameset will not show the rubber band scrolling. > > Has anyone got a workaround or a suggestion? > > Thanks in advance. > > Marco G. -- You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
