Discussion about the Geocaching Australia web site
-
J_&_J
- Posts: 1264
- Joined: 12 May 05 7:58 pm
- Facebook: https://www.facebook.com/profile.php?id=100000016368307
- Location: Morphett Vale
-
Contact:
Post
by J_&_J » 21 January 06 4:59 pm
The same thing happens to us, I think it's got to do with the "&" character. It isn't a problem for me though, I guess it just annoys others who want to want to view our profile on the other site.
-
caughtatwork
- Posts: 17025
- Joined: 17 May 04 12:11 pm
- Location: Melbourne
-
Contact:
Post
by caughtatwork » 21 January 06 5:21 pm
Yep.
The & needs to be translated to %26
I'm sure ideology will get to this. Be patient.
-
ideology
- Posts: 2763
- Joined: 28 March 03 4:01 pm
- Location: Sydney
-
Contact:
Post
by ideology » 24 January 06 7:16 am
we had a look at it and it's bizarre - we are using %26 but perhaps javascript is converting it back. more thought required
-
caughtatwork
- Posts: 17025
- Joined: 17 May 04 12:11 pm
- Location: Melbourne
-
Contact:
Post
by caughtatwork » 24 January 06 9:55 am
How bizzare.
Apparently you need to escape the variable before you call the page.
Change the gc_cacher function from this:
Code: Select all
function gc_cacher(cacher) {
document.location="http://www.geo" + "caching.com/profile/?u=" + cacher;
to this:
Code: Select all
function gc_cacher(cacher) {
cacher=escape(cacher);
document.location="http://www.geo" + "caching.com/profile/?u=" + cacher;
A test shows this should work.
-
ideology
- Posts: 2763
- Joined: 28 March 03 4:01 pm
- Location: Sydney
-
Contact:
Post
by ideology » 24 January 06 10:47 am
w00t thanks!
-
J_&_J
- Posts: 1264
- Joined: 12 May 05 7:58 pm
- Facebook: https://www.facebook.com/profile.php?id=100000016368307
- Location: Morphett Vale
-
Contact:
Post
by J_&_J » 24 January 06 5:14 pm
Not sure if this affects things or not, but when I have to log in to the GCA site, I must spell my username J_&_J
That is what is displayed at the top right of the page as well. Too bizarre for me, but I live with it.
![Wink :wink:](./images/smilies/icon_wink.gif)