Back to Earth

So after the excitement of the other night, it’s back to reality. My project is motoring along quite nicely and I’m pretty confident that I’ll have a vanilla version up and running by the 29th. I’ve had a couple of interesting “issues”, one of which took me a while to resolve and the other I’ve got an idea of what I want to do to fix it. The first was with getting the file name of the asset being put up for swapping. Coz I wanted to make sure that the file being swapped was the file registered, I’ve put in a field where users can select the file on their phone and the name is added to the database. Testing on a “normal” computer it worked a treat but as soon as I tried it with a phone, it kept adding what looked like a file path. I eventually got round it by playing about with some of the variables used by PHP when uploading files via the HTTP upload feature.

The other problem I’ve got is with deleting mail messages. Again on a normal computer, when you select the tick box and press submit, the page refreshes and the message no longer appears on the screen but on the phone the message is still there so it looks as though the delete hasn’t worked when in fact it has. I haven’t found any reason as to why it would do that but I’ve got a theory. Coz the action of the page is itself and it’s wrapped in PHP which determines what to do if the page has loaded once or was posted to, as it’s the same file I think the phone just doesn’t reload the page in an attempt to save on bandwidth. Which makes sense although I’ve yet to have that confirmed. In a lot of the tutorials I’ve found on developing for the mobile phone, they say to have a page per function but they don’t explain why. I guess I’ve just found a good reason now. Anyway, to get round it, I’ll just post the deletes to a different file which will redirect back to the list of messages when it’s finished and that hopefully will sort it.



Leave a Reply

Your email address will not be published. Required fields are marked *