DataZombies / jQTouch

jQT extensions jqt.activityIndicator, jqt.bars (with numeric badges), jqt.checkGroup & jqt.segmentedControl.Get updates via Twitter http://twitter.com/HeadDZombie. If you find this fork useful please make a donation via PayPal (http://tinyurl.com/2fpmx27). See below for demo links.
MIT License
159 stars 34 forks source link

Tabbar does not initialize when loading via 3G #20

Closed schoenepauck closed 13 years ago

schoenepauck commented 13 years ago

I have noticed that when I add a site with a tabbar (like the jqt.bars demo) to the homescreen of my iPhone, it runs fine only if i have a WiFi connection. If i disable WiFi and connect via 3G, the tabbar is not initialized. It does not recognize its running fullscreen in this case, either (displaying the info-message "Add this page to your home screen..."). Any ideas as to why this might be?

Jan

DataZombies commented 13 years ago

That's very weird. I've tested the demo on my AirPort network, Edge & 3G without that issue. Since you get the "Add this page" message when viewing in full screen I think you have a problem with the OS. Have you tried doing a hard reset (http://www.wikihow.com/Hard-Reset-an-iPhone)?

schoenepauck commented 13 years ago

Yes, I tried that and it doesn't help. I'm confused too. Might be an issue with my web server -- I'll try to track this down.

DataZombies commented 13 years ago

Have you jailbroken your iPhone?

schoenepauck commented 13 years ago

No, it's not jailbroken.

DataZombies commented 13 years ago

Please try installing this repo's demo (http://tinyurl.com/39lmun2) on your iPhone home screen.

schoenepauck commented 13 years ago

Installed it. Same issue with that.

DataZombies commented 13 years ago

Just one more test. Try installing Showtime http://app.showtime-app.com/#home-pane

schoenepauck commented 13 years ago

Installed that, too. This one runs without any problems, but it does not use the tab bar extension anyway, or does it?

schoenepauck commented 13 years ago

I finally found the time to track this down. Turned out that the getPath() function that determines the path of the iScroll script fails because the expression $(this).attr('src') gets undefined at some point, which probably causes an error in the following line. Again: This happens only if I disable WiFi and load the page via 3G on my iPhone 3GS. Weird. I solved this for me by replacing the getPath() call with a fixed path name. Runs fine now. BTW, thanks for the work you put in this extension!

DataZombies commented 13 years ago

Well, crap. Looks like I'll have to display an alert or console message when the undefined rears its ugly head.

"BTW..." Thanks.