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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Back button woes 1

Status
Not open for further replies.

Terwin

Programmer
May 23, 2002
51
0
0
US
For several somewhat unfortunate reasons, I've implemented a hit counter for a site of mine using an invisible iframe that does a form.submit to a server where the database resides. The problem is, the iframe screws up the navigability of the site by being referenced by the back button, which now does nothing.. just loads the invisible frame over and over.

Is there a way that I can use javacsript history objects to remove this page, so that it is no longer referenced by the back button?

Thanks,
T
 
Instead of using an IFRAME, could you use an image?
Something like:

<img src=&quot;formHandler.asp?page=index.html&quot; width=1 height=1>

You could also use JavaScript to write the img tag.

Adam
while(ignorance==true){perpetuate(violence,fear,hatred);life--};
 
You know, I was wondering about that technique, but how does the image get returned.. or does an image even get returned?

My formhandler page hits a servlet, which may be able to forward the request to an image url after processing.

Is that how it's done, lest I get a big red x?

Thanks for the response.

T
 
Well, you could have it return an image (I've never done that), but what I wrote has the width and height set to &quot;1&quot;, essentially hiding the big red x. If that's not good enough, you can always use style sheets to hide it completely.

Adam
while(ignorance==true){perpetuate(violence,fear,hatred);life--};
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top