Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simulating the Back link

Status
Not open for further replies.

ryanalotter

Programmer
Aug 8, 2006
5
ZA
Sorry, first time posting an item. I am developing an app for XHTML browsers on cell phone. Is there anyway to simulate the back button on the phone onto a web page? I am unable to get the (Javascript HTML) history object does not seem accessable.
 
If the history object is not supported -not possible with xhtml/javascript.

However, with a server side script you can.

Regards
 
Funny enough, I cannot seem to do it will server side script...I am using PHP and the mobile phones seem to strip the HTTP Reffer variable
 
Well, you could assign each visitor a session ID, and store a history of the pages they visit server-side. Or, for a less deluxe approach, you could add a parameter to each link saying where it's coming from - like this:
Code:
<a href="somepage.php?camefrom=anotherpage.php">
Obviously that only gives you one layer of back buttoning.

Either way, it'll be a pain to implemnt.

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
I though it could only be done that way. I have already 60% complete with the calling the normal calling back, it just hampers the dynamicness of my pages
 
Funny enough, I cannot seem to do it will server side script...I am using PHP and the mobile phones seem to strip the HTTP Reffer variable

Have you tested this on a non-mobile device?
Some web servers can be configured not to pass referrer info.

Also, some browsers can be set up not to pass referrer info too. I'm not an expert on mobile devices (I have an old phone!) but do you have a choice of browsers?

<honk>*:O)</honk>
Foamcow Heavy Industries - Web site design in Cheltenham and Gloucester
Earl & Thompson Marketing - Marketing Agency Services in Gloucesterhire
 
No choice on browsers....it needs to run on any XHTML browser.

Its not the web servers, as I have tested it on multiple web servers, both on linux and windows
 
Granted it would need to run on any browser. But if you tried a different one you may discover that it's the browser causing the problem and so you can look for a way around it.
By exactly identifying the problem and where it's occuring you stand a better chance of coming up with a good solution.

<honk>*:O)</honk>
Foamcow Heavy Industries - Web site design in Cheltenham and Gloucester
Earl & Thompson Marketing - Marketing Agency Services in Gloucesterhire
 
I know that (I was debuging the problem for a couple of hours) but thanks for the feed back, I have tested it on over 15 phones...all seem to loose the information. :( (So sad...)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top