Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPad - cannot scroll inside frame

I cannot scroll a pdf called inside a frame in iPad Safari

<frame src="ebook.pdf" title="Content Frame" name="content" id="content" 
frameborder="0" border="0" noresize scrolling="yes" marginwidth="0" marginheight="0" 
noresizescrolling="AUTO" framespacing="0" /> 

I have already tried 2 things:

  1. 2-finger scroll
  2. Using object/embed instead of frame

But this does not work.

In fact I have tried a lot of things...overflow, height, etc..

Please help me. Thank you in advance.

like image 939
copenndthagen Avatar asked Apr 26 '11 13:04

copenndthagen


People also ask

Why is my iPad not letting me scroll?

Try double tapping on either side of the screen at edges. Use a two finger press inside the window that you're trying to scroll and move them up or down simultaneously. Or pinch your thumb and forefinger together and move it up or down.

Why is my iPhone not scrolling properly?

Solution 1: Clean the Screen If you are wondering as to why is my iPhone XR scrolling slow, then it might be probably the untidy screen. When we use the phone daily, the screen gets untidy. This might create issue for scrolling and hence the issue. The solution to this is simple cleaning the screen.

How do you scroll through a window on an iPad?

If you keep the two fingers together within the window and move them it should scroll the content within the window.


2 Answers

According to this article http://support.apple.com/kb/ht1484 you cannot scroll anything inside a frame when using Safari on the iPad. The frames always get resized to fit their content (this also applies to iframes). To do this, Safari even dismisses the values for "cols" or "rows" you made in the frameset-tag and seems to use whatever value is needed. Unfortunately, the frame does not resize properly for PDFs so they get cut off.

I think your best choice might be to link the pdf directly...

like image 151
Philipp Horn Avatar answered Sep 20 '22 06:09

Philipp Horn


I think the problem is that you are trying to display a PDF. The 2-finger swipe approach should work for regular HTML frames.

One option is to use Google Docs Viewer (http://docs.google.com/viewer) in your application.

like image 22
Artilheiro Avatar answered Sep 22 '22 06:09

Artilheiro