Double Exposure, Inc.
  • May 23, 2012, 09:10:51 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

METATOPIA 2012 takes place November 9 - 11, 2012 at the Morristown Hyatt and Conference Center in Morristown, New Jersey.

Pages: [1]   Go Down

Author Topic: For the web developers  (Read 371 times)

0 Members and 1 Guest are viewing this topic.

Socket

  • More Metal Than You
  • Avatars
  • Super Meeper
  • *
  • Offline Offline
  • Posts: 928
  • BITE MY SHINY METAL @$$!
For the web developers
« on: May 28, 2009, 03:45:45 PM »

I got a question for you (though I don't have much hope of getting an answer)

I put together a little AJAX page for my own use to keep track of workouts and races and such. I have two versions, (which right now are fairly identical except for css) one for desktop and one for mobile.  The mobile version is giving me a pretty wacky issue, which may or may not be device dependent (ie, maybe my phone is retarded).

This issue is that the page requests data from the database, retrieves it, and splices the response into an array which is processed and loaded into fields via Javascript but not always predictably. I can run the script the first time on a refresh and it'll work spot on.  The next time I run it, field values will be shifted by 1 or more fields and/or contain data from the previous run.

For example, the form could look like this the first time:
Time:  0:55:00
Distance: 19.45 miles
Notes: It was a really nice day out

and the next run could look like this:
Time: It was a r
Distance: 7 miles
Notes: 0:55:00

At first I was convinced it wasn't clearing the array, just popping out old values and loading new values, but another function that processes the same time/distance values in the array to calculate speed is always correct for the values it should have been.  If anyone wants to test for me to see if it happens on other phones, PM me.

Stupid mobile browsers  >:(
Logged


Socket

  • More Metal Than You
  • Avatars
  • Super Meeper
  • *
  • Offline Offline
  • Posts: 928
  • BITE MY SHINY METAL @$$!
Re: For the web developers
« Reply #1 on: June 02, 2009, 12:51:56 PM »

For anyone interested, it does appear to be the browser.  Opera Mini on the same phone displays the form information correctly even though it eats up screen realestate with it's header and option bars.

*sigh* stupid mobile browsers
 
Logged


Pages: [1]   Go Up