Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: I'm stuck in a loop and I can't get back......


Message #1 by KATHLEEN.M.WHALEN@c... on Wed, 31 Oct 2001 14:34:43 -0500
Why not use the <noscript> tag on PageA.htm?  That way, they will go
directly to the right page and their history will work correctly.

Cheers -

George L Smyth

 -----Original Message-----
From: 	KATHLEEN.M.WHALEN@c...
[mailto:KATHLEEN.M.WHALEN@c...] 
Sent:	Wednesday, October 31, 2001 2:35 PM
To:	javascript
Subject:	[javascript] I'm stuck in a loop and I can't get back......





I have several pages that are designed using extensive
JavaScript.  Due to
accesibility issues, some of my users have Scripting turned off.
Therefore, I have set them up to view either a page with fancy
look (via
scripting)or a very plain page (using no JavaScript).

I have the page set up as follows"
Page A.htm -- home (contains link to Page A1.htm)
Page A1.htm -- page without using javascript (if scripting is
turned off,
then redirected automatically to Page A2.htm)
Page A2.htm -- page using Javascript

<BODY>
<script language="javascript">
        window.location="Page A2.htm";  //This will redirect
the user to a
page that displays the data using JavaScript.
</script>
<NOSCRIPT> // If JavaScript is turned off, then the content
below is
displayed instead.
        page content here
</NOSCRIPT>
</BODY>

My problem is that when I use the Back button on the IE toolbar
I am taken
to Page A1.htm which contains the above script/redirect.
Therefore, I'm
stuck in a loop.  How can I set this up so that, if scripting
is turned
on, and I hit the Back button I am then taken from Page A2 to
Page A,
rather than Page A1.htm.

Thanks,
Kathleen




  Return to Index