Mobile Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreMobile Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 7th, 2007, 02:24 AM
Egnited Egnited is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2007
Posts: 4 Egnited User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 24 sec
Reputation Power: 0
Page refresh help needed

Hi everyone--

I am developing a jokes site designed for mobiles. The address is JOX.MOBI. Everything is just fine except for the page refresh. I want to have it so that when a user clicks my "Next" link, the page is refreshed, which would recall a new joke using my php script. That all works fine as I have it when viewed in a standard browser, but when I test the site on a mobile emulator, such as the one here...

mtld.mobi/emulator.php?emulator=nokiaN70&webaddress=jox.mobi%2Fshort.php

...the page content does not actually refresh, which means that the joke does not change. I think it must be due to the cache used by mobiles.

Anyways, I need to figure out how to actually reload a page by clicking a link. Or perhaps telling the mobile's browser not to store a cache for the site? Oh, and Javascript doesn't seem to work on mobiles?

Sorry if this doesn't make sense. I'm not much of a programmer.....and it's 3:24 AM.

Reply With Quote
  #2  
Old September 7th, 2007, 02:34 AM
helloakash's Avatar
helloakash helloakash is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2006
Location: India
Posts: 851 helloakash User rank is Colonel (50000 - 60000 Reputation Level)helloakash User rank is Colonel (50000 - 60000 Reputation Level)helloakash User rank is Colonel (50000 - 60000 Reputation Level)helloakash User rank is Colonel (50000 - 60000 Reputation Level)helloakash User rank is Colonel (50000 - 60000 Reputation Level)helloakash User rank is Colonel (50000 - 60000 Reputation Level)helloakash User rank is Colonel (50000 - 60000 Reputation Level)helloakash User rank is Colonel (50000 - 60000 Reputation Level)helloakash User rank is Colonel (50000 - 60000 Reputation Level)helloakash User rank is Colonel (50000 - 60000 Reputation Level)helloakash User rank is Colonel (50000 - 60000 Reputation Level)helloakash User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 15001 Folding Title: Novice Folder
Time spent in forums: 2 Weeks 2 Days 5 h 28 m 19 sec
Reputation Power: 542
Send a message via Google Talk to helloakash Send a message via Skype to helloakash
Orkut
I don't think this question belongs to this thread (HTML)
Mod is approached to move it
__________________
Akash Dwivedi
"Whatever the mind can conceive and believe, the mind can achieve."
Feel good..



Reply With Quote
  #3  
Old September 7th, 2007, 02:39 AM
Egnited Egnited is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2007
Posts: 4 Egnited User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 24 sec
Reputation Power: 0
Oops, my apologies if I posted this in the wrong section. I just thought that there might be an HTML solution to my problem.

Reply With Quote
  #4  
Old September 7th, 2007, 08:55 AM
Tukaro's Avatar
Tukaro Tukaro is offline
Standing 3 feet to the left.
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jan 2006
Location: USA
Posts: 1,016 Tukaro User rank is Second Lieutenant (5000 - 10000 Reputation Level)Tukaro User rank is Second Lieutenant (5000 - 10000 Reputation Level)Tukaro User rank is Second Lieutenant (5000 - 10000 Reputation Level)Tukaro User rank is Second Lieutenant (5000 - 10000 Reputation Level)Tukaro User rank is Second Lieutenant (5000 - 10000 Reputation Level)Tukaro User rank is Second Lieutenant (5000 - 10000 Reputation Level)Tukaro User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 12 h 32 m 31 sec
Reputation Power: 103
Send a message via AIM to Tukaro Send a message via MSN to Tukaro
I'm not familiar with mobile web use, but most smaller phones probably don't have any Javascript to both cut down on development issues and stop issues from the small screen. I can't access the page from work, so how are you trying to refresh the page? It would probably be better to just have the page link back to itself. I imagine META no-cache is supported, but it may not be; if it's not, you can simply append a random GET variable (i.e. post.php?rand=3445) or use a number of other methods to stop caching.
__________________
I'd rather teach you to fish than give you a fish. I reserve the right to also slap you with the fish.

Reply With Quote
  #5  
Old September 7th, 2007, 12:24 PM
Egnited Egnited is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2007
Posts: 4 Egnited User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 24 sec
Reputation Power: 0
Thanks much for the reply! I have tried the META no-cache thing, but that just doesn't seem to work. Perhaps there is something wrong with my code? Feel free to take a look at my site's code and try to find a solution!

I also tried the random GET variable, and that *sortof* works. When a user clicks the link with a random variable (i.e. short.php?rand=3445), the page is in essence reloaded. However, that same link of course appears and the page simply links back to itself. Is there a way to automatically generate a random number? (short.php?rand=4892....short.php?rand=5028....short.php?rand=9472....etc)

Reply With Quote
  #6  
Old September 7th, 2007, 02:25 PM
Tukaro's Avatar
Tukaro Tukaro is offline
Standing 3 feet to the left.
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jan 2006
Location: USA
Posts: 1,016 Tukaro User rank is Second Lieutenant (5000 - 10000 Reputation Level)Tukaro User rank is Second Lieutenant (5000 - 10000 Reputation Level)Tukaro User rank is Second Lieutenant (5000 - 10000 Reputation Level)Tukaro User rank is Second Lieutenant (5000 - 10000 Reputation Level)Tukaro User rank is Second Lieutenant (5000 - 10000 Reputation Level)Tukaro User rank is Second Lieutenant (5000 - 10000 Reputation Level)Tukaro User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 12 h 32 m 31 sec
Reputation Power: 103
Send a message via AIM to Tukaro Send a message via MSN to Tukaro
Instead of using a random number, you can either use some incrementing value (tracked somehow), or, probably better, just output the current time in milliseconds for the rand value. I believe this will be sufficient for just about any visitor.

Again, I can't check your META refresh at your site, you'll have to post the code here. But that link I gave you has an example, so if it deviates greatly from that something is probably wrong. You should also look for some sort of documentation for the cell phone you're testing, and see what they include for their web browser.

Reply With Quote
  #7  
Old September 7th, 2007, 05:03 PM
Egnited Egnited is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2007
Posts: 4 Egnited User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 24 sec
Reputation Power: 0
Thanks for all your time! After spending a couple hours on Google, I have found a way to do this using PHP.

Reply With Quote
  #8  
Old September 7th, 2007, 08:20 PM
huyaroo's Avatar
huyaroo huyaroo is offline
:)
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Oct 2006
Location: IL
Posts: 1,418 huyaroo User rank is First Lieutenant (10000 - 20000 Reputation Level)huyaroo User rank is First Lieutenant (10000 - 20000 Reputation Level)huyaroo User rank is First Lieutenant (10000 - 20000 Reputation Level)huyaroo User rank is First Lieutenant (10000 - 20000 Reputation Level)huyaroo User rank is First Lieutenant (10000 - 20000 Reputation Level)huyaroo User rank is First Lieutenant (10000 - 20000 Reputation Level)huyaroo User rank is First Lieutenant (10000 - 20000 Reputation Level)huyaroo User rank is First Lieutenant (10000 - 20000 Reputation Level)  Folding Points: 303 Folding Title: Novice Folder
Time spent in forums: 2 Weeks 4 Days 21 h 46 m 56 sec
Reputation Power: 189
Quote:
Originally Posted by Egnited
Thanks for all your time! After spending a couple hours on Google, I have found a way to do this using PHP.
It'll be good to post what you've found so people who searched the subject next time will find the answer quickly.
__________________



Chicago Web Development

Reply With Quote
  #9  
Old September 21st, 2007, 07:02 PM
jabba_29's Avatar
jabba_29 jabba_29 is offline
Back in HEL
Click here for more information.
 
Join Date: Feb 2002
Location: Finland
Posts: 8,912 jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)  Folding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner Folder
Time spent in forums: 3 Months 4 Weeks 1 Day 13 h 6 m 50 sec
Reputation Power: 1693
Send a message via ICQ to jabba_29 Send a message via AIM to jabba_29 Send a message via MSN to jabba_29 Send a message via Yahoo to jabba_29 Send a message via Google Talk to jabba_29 Send a message via Skype to jabba_29
Facebook
Quote:
Thanks for all your time! After spending a couple hours on Google, I have found a way to do this using PHP.
Hi Egnited, welcome to Dev Shed.
This is a community forum. One of the things that makes this place so successful is the people sharing information.
How about you sharing your method for the help of others here?
__________________
Cheers,

Jamie

# mdb4u | mobile movie database] | Please help to test and promote
# skiFFie | Home of the 'accessibility module' for Drupal
# Jamie Burns [me] Accessibility Module [drupal]
# guidelines | search | wap resources | not getting help | fold to cure

__________________

Let the might of your compassion arise to bring a quick end
to the flowing stream of the blood and tears .....
Please hear my anguished words of truth.



__________________

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreMobile Programming > Page refresh help needed


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT