dmolsen / MIT-Mobile-Web

The Mobile Web Project was initially developed during the summer of 2009 and is a fork of the original v0.9 release of the MIT Mobile Web project that can still be found on SourceForge. The project was updated in May 2010. It is a product designed to make it easier for higher education institutions to deliver mobile-optimized information and services. It helps deliver task-based content like maps, events, and directory information optimized for device "families." Full documentation can be found at http://mobilewebosp.pbworks.com/ Updates to the project can be found on Twitter at http://twitter.com/mobilewebosp/
http://mobilewebosp.pbworks.com
MIT License
57 stars 19 forks source link

iOS 5 Javascript/AJAX internal links broken (webkit) #24

Closed MorgThom closed 12 years ago

MorgThom commented 13 years ago

I'm sure someone has noticed this because it seems to effect all universities running MWOSP version 2, including m.wvu.edu.

For example, go to m.wvu.edu on an iOS5 device, then go to the maps section, all links on that page do not load on iOS5.

dmolsen commented 13 years ago

Sorry but I can't seem to replicate the problem on m.wvu.edu. Do you have another example I might be able to test on?

Sent from my iPhone

On Nov 1, 2011, at 12:16 PM, MorgThomreply@reply.github.com wrote:

I'm sure someone has noticed this because it seems to effect all universities running MWOSP version 2, including m.wvu.edu.

For example, go to m.wvu.edu on an iOS5 device, then go to the maps section, all links on that page do not load on iOS5.

Reply to this email directly or view it on GitHub: https://github.com/dmolsen/MIT-Mobile-Web/issues/24

MorgThom commented 13 years ago

Thanks Dave,

Well I first noticed it where I am developing: m.montana.edu. Go to News >> More from MSU (that link doesn't work, nor do the last two news stories above it) (only on iOS 5 is this a problem, I have also tried multiple iOS5 devices)

It's an annoying bug to troubleshoot as the links will work a few times but after a few pushes, followed by backing out to the homescreen or module index, eventually (or shortly) the links will not work. They just pop up the url bar for a split second, and remain highlighted in a loading state.

After a restart of mobile Safari, I can't replicate the problem on m.wvu.edu or any other links on m.montana.edu other than the three in the news section mentioned above. So I'm thinking it's a problem on my end with one of the news links that causes safari to break and stop loading Javascript until restarted/reloaded.

If you have any suggestions, I'd appreciate it, otherwise I won't waste more of your time, thanks for your great work- we love it!

wli2 commented 13 years ago

There were a few examples I've noticed on m.wvu.edu. ie "youtube" link. "Next Page" seems not working for ios5 ... Thanks!

edminster commented 12 years ago

I struggled with this for awhile. It ended up being a problem with jqt and ios5. In jqtouch.js:

in the 'handleTouch' function there is: startX = event.changedTouches[0].clientX, startY = event.changedTouches[0].clientY,

these lines need to change to: startX = event.changedTouches[0].pageX, startY = event.changedTouches[0].pageY,

dmolsen commented 12 years ago

@edminster-

thanks much for debugging that. very helpful :)

MorgThom commented 12 years ago

Thanks so much edminster!