Forum Moderators: open

Message Too Old, No Replies

IE Back Button Blues

         

Flashpoint

2:28 am on Mar 6, 2002 (gmt 0)



I'm working on a client side include that writes content based on a querystring in the url. (I'm on a cheap server with no server-side script or ssi, thus trying the client side)

From "index.htm", I link to something like:
"index.htm?url=content"
and javascript writes the contents of a separate file like
"content.htm"

Everything works great, but IE doesn't interpret this as a change in pages (I guess because in reality it isn't) so I dont get a back button (greyed out, or goes to the page before going to index.htm).

Works perfectly in Mozilla .95+ and Netscape 4.x

I was also trying a similar script to write an iframe based on the querystring (so one could bookmark framebased pages). This works too, but same problem with IE (no back button)

Any Ideas on how to force IE into thinking a page has changed?

I'd prefer it not be too complex, or it kind of blows the whole point of trying to make my life easier.

Thanks in advance for any ideas.

setac

3:18 am on Mar 6, 2002 (gmt 0)



My browser distingushes index.html from
index.html?something=more

I can move forward and backward between the pages. I have scripts that change pages based on scripts that call pages based on query strings (?something). I have been doing this since IE4 to pull framed pages into there frame when entered via search engine without their parent. Forward and back buttons have always worked.

Are you using a plain href or location= ?

Flashpoint

4:01 am on Mar 6, 2002 (gmt 0)



Heh,
I was going to upload an example, and it appears to work when actually on the web, but does not on the local machine, so problem solved.

Thanks for replying, I just may have never uploaded to the web until I got it to work if you hadn't replied!