Hi all,

I'm trying to save some bandwidth in an app and implement some javascript
back buttons, so that we're using the browsers history instead of calling
the page again. I'm finding it to become a bit of a nightmare.

At first I had a problem where someone could open up a new browser and paste
the URL in it, thus history.back() not working, then I checked for the
history.length and made sure there was some history to go back to, but if
you have google.com as your homepage that loads all the time in a new
browser, then there is some history, but not a page you want to go back to.
Then I thought of
<cfif refindNoCase(
"^https?://(www|development|testing|staging)\.myproject\.com\.au",
cgi.http_referer ) > onclick="alert(history.length);if ( history.length > 0
) { history.back(); return false }"</cfif>
i.e. making sure the referring page was on the same domain, but now FireFox
doesn't want to play, it reports 1 for history.length while nothing was
loaded yet!
Then I thought of using a browser sniffer and adjust for FireFox, but I
don't want to go down that path as I know it will be a never ending one.

Before I abandon this idea and hope people will use the browser back button,
is there someone who knows a fix for this?

Thanks in advance.

-- 
*** http://www.clickfind.com.au
The new Australian search engine for businesses, products and services
*** http://brisbane-web-design.pacificfox.com.au blog
*** Virtual and Dedicated Servers with MS SQL from $250 a month
*** Virtual and Dedicated Servers with registered version of ColdFusion from
$350 a month
*** ColdFusion licenses at the lowest price

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to