jquery-archive / jquery-mobile

jQuery Mobile Framework
https://jquerymobile.com
Other
9.7k stars 2.41k forks source link

BlackBerry OS5 Broken - "The page you requested could not be loaded" #1846

Closed adambiggs closed 12 years ago

adambiggs commented 12 years ago

When visiting jquerymobile.com/test on a BlackBerry 9000 running v5.0.0.900, the front page loads fine, but as soon as I try to navigate to any other page, this error pops up:

"The page you requested could not be loaded; it is too large for the device."

I also see the same thing when trying to load my PhoneGap application onto the device. My first page loads fine, but as sonn as I try to navigate to another page the app fatally crashes with the following error:

"Error displaying content for

local:///index.html

Error message: The page you requested could not be loaded; it is too large for the device."

jblas commented 12 years ago

Doing a few searches on the net shows that this is a common problem that isn't specific to jQuery Mobile. I did see a Black Berry representative point someone at this page in one of the forum posts I saw:

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/What_Is_-_HTTP_413_Request_Entity_Too_Large.html?nodeid=1372369&vernum=0

adambiggs commented 12 years ago

I should mention that my PhoneGap application consists of only an index.html file, which includes all the pages. Why would these connection limits affect loading local pages in the same HTML file?

adambiggs commented 12 years ago

I'm also seeing this error on jquerymobile.com/test in the Storm2 9550 (5.0.0.469) and Bold 9700 (5.0.0.469) simulators. But in the 9700 simulator it actually does load the new page after dismissing the alert.

I'm trying to find another OS5 device to test this on.

Surly someone else must have encountered this... Or am I doing something wrong to cause this?

toddparker commented 12 years ago

Hi Adam - I just tried this and can reproduce the issue too. This was working recently so there must have been a recent regression on BB5. We're on it!

toddparker commented 12 years ago

It could be that your index page is just too large to start with, esp if there are multiple pages in it. It's odd that our demos are getting this now tho.

adambiggs commented 12 years ago

That's what I thought too but if the size of my index page were the issue, I don't think the first page of my app would be displayed and initialized by jQM would it? My index page is around 500 lines which doesn't seem massive to me, but I'll try to do some tests with smaller page sizes and report back

toddparker commented 12 years ago

@adambiggs - So backtracking though the dailies, I can see on my 9330 Curve that things worked great up to the 12th of June: http://code.jquery.com/mobile/nightlies/20110612/demos/

And I see this error on the 13th forward: http://code.jquery.com/mobile/nightlies/20110613/demos/

We're looking thru the commits but can you confirm these results on your side?

_t

adambiggs commented 12 years ago

@toddparker I'm seeing the same thing on my test device. Page transitions are working fine before the 13th.

toddparker commented 12 years ago

Ok, try this: open the 13th, click a link then dismiss the error. The link is still blue and apparently focused. Open the BB menu and select "open link". The page will load! The plot thickens.

adambiggs commented 12 years ago

haha yep that works... BB5 is the new IE6 :(

adambiggs commented 12 years ago

@toddparker - FYI I tested my PhoneGap app with a much smaller index file (only 2 pages - < 100 lines) and got the same result.

toddparker commented 12 years ago

Digging deeper, the path.makeUrlAbsolute of the Ajax nav re-factor is causing it to freak out. Getting closer...

adambiggs commented 12 years ago

Great work guys! I can confirm this is now fixed on my BB5 test device.

scottjehl commented 12 years ago

awesome!