If you have a link like this :- <a href="blah.asp" onClick="javascript:location.replace(this.href); event.returnValue=false;">click here</a>
It will replace the current page's location in the brower's history with the one of the link, so there is still only one entry in the history for your page, not matter how many times you have shown or hidden your text. Dan www.diado.com ________________________________________ From: neeraj gupta [mailto:[EMAIL PROTECTED] Sent: 12 October 2004 10:33 To: [EMAIL PROTECTED] Subject: RE: [AspClassicAnyQuestionIsOk] Plz Help me the show/Hide problem Is there any way where onClick the history is not saved --- Dan Powderhill <[EMAIL PROTECTED]> wrote: > Add it to the onClick event of the links to show and > hide the text? > >� > > Dan > > www.diado.com > >� > > ________________________________ > > From: neeraj gupta [mailto:[EMAIL PROTECTED] > Sent: 12 October 2004 09:41 > To: [EMAIL PROTECTED] > Subject: [AspClassicAnyQuestionIsOk] Plz Help me the > show/Hide problem > >� > > if(gNoMenu==false && pageID!=-10 && IsPrint==0) {�� >�� >� > if(Application("HIDESHOWDETAILSTOGGLE")==1) {������ >���� >� > >������������������������������������������������ var > isPagedetails = > parseInt(ctCom1.getUserinfo(PID,"PAGEDETAILS")); >����������������������������������������������� > if(isNaN(isPagedetails)) > isPagedetails =1; >������������������������������������������������ var > strQueryString = new > String(Request.QueryString); >� > if(IsNull(strQueryString)) strQueryString = > "1=1"; >������������������������������������������������ else > { >���������������������������������������������������� >� strQueryString = > strQueryString.replace(/&show=0/gi,""); >���������������������������������������������������� >� strQueryString = > strQueryString.replace(/&show=1/gi,""); >���������������������������������������������������� >� strQueryString = > strQueryString.replace(/&LOADREQ=1/gi,""); >���������������������������������������������������� >� strQueryString = > urldecode(strQueryString); >���������������������������������������������������� >� strQueryString = > strQueryString.replace(/'/gi,"\\'"); > >������������������������������������������������ } >����������������������������������������������� > if(isPagedetails == 0){ >� > if(IsNull(FormName)) { %> >���������������������������������������������������� >������� <a > href="javascript:goNext('<%=getScript(Request.ServerVariables("SCRIPT_NA > ME"))%>?<%=strQueryString%>&show=1&LOADREQ=1');"><img > border="0" > src="<%=Request.Cookies("SITEART")%>/showdetails.gif"></a> <b>Show > page details</b> >���������������������������������������������������� >� <% } else { %> > >���������������������������������������������������� >������� <a > href="javascript:goNextPage('<%=FormName%>','<%=getScript(Request.Server > Variables("SCRIPT_NAME"))%>?<%=strQueryString%>&show=1&LOADREQ=1');"><im > g > border="0" > src="<%=Request.Cookies("SITEART")%>/showdetails.gif"></a> <b>Show > page details</b> >���������������������������������������������������� >� <% } >����������������������������������������������� > }else{ >� > if(IsNull(FormName)) { %> >���������������������������������������������������� >������� <a > href="javascript:goNext('<%=getScript(Request.ServerVariables("SCRIPT_NA > ME"))%>?<%=strQueryString%>&show=0&LOADREQ=1');"><img > border="0" > src="<%=Request.Cookies("SITEART")%>/hidedetails.gif"></a> <b>Hide > page details</b> >���������������������������������������������������� >� <% } else { %> > >���������������������������������������������������� >������� <a > href="javascript:goNextPage('<%=FormName%>','<%=getScript(Request.Server > Variables("SCRIPT_NAME"))%>?<%=strQueryString%>&show=0&LOADREQ=1');"><im > g > border="0" > src="<%=Request.Cookies("SITEART")%>/hidedetails.gif"></a> <b>Hide > page details</b> > >���������������������������������������������������� >� <% } %> >���������������������������������������������������� >� <BR> >���������������������������������������������������� >� <BR>����� >���������������������������������������������������� >� <% > >���������������������������������������������������� >� if(pageText!="" && > !IsNull(pageText)){ >� > pageText=pageText.replace(/\x0a/gi,"<br>");����� >������������������������������������������������ >���������������������������������������������������� >� }����������� >� > Response.Write(pageText);�������������������������� >�������������� >������������������������������������������������ } > >������������������������������������������ } >������������������������������������ }����������� > > > > > > > > HIDESHOWDETAILSTOGGLE == means a toggle setting > which > shows the links on the all the pages if =1 > LOADREQ = used to execute database queries > goNext() = a function written to execute the page > given in quotes. > > > > now i have the sam doubt how do i add the javascript > which u gave > > ===== > Neeraj Gupta > software trainee > Kenexa Technologies > 3rd FLOOR UMA AISHWARYA HOUSE > HYDERABAD 500062 > email: [EMAIL PROTECTED] > > > __________________________________________________ > Do You Yahoo!? > Tired of spam?� Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > > > > > Yahoo! Groups Sponsor > > ADVERTISEMENT > click here > <http://us.ard.yahoo.com/SIG=1295g0d4l/M=294855.5468653.6549235.3001176/ > D=groups/S=1705006764:HM/EXP=1097656876/A=2376776/R=0/SIG=11ldm1jvc/*htt > p:/promotions.yahoo.com/ydomains2004/index.html> > >� > <http://us.adserver.yahoo.com/l?M=294855.5468653.6549235.3001176/D=group > s/S=:HM/A=2376776/rand=855757323> > >� > > ________________________________ > > Yahoo! Groups Links > > *����� To visit your group on the web, go to: > > http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/ > ����� � > *����� To unsubscribe from this group, send an email to: > > [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED] > subscribe> > ����� � > *����� Your use of Yahoo! Groups is subject to the Yahoo! > Terms of > Service <http://docs.yahoo.com/info/terms/> . > > > > === message truncated === ===== Neeraj Gupta software trainee Kenexa Technologies 3rd FLOOR UMA AISHWARYA HOUSE HYDERABAD 500062 email: [EMAIL PROTECTED] __________________________________________________ Do You Yahoo!? Tired of spam?� Yahoo! Mail has the best spam protection around http://mail.yahoo.com Yahoo! Groups Sponsor ADVERTISEMENT ________________________________________ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/ � * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] � * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. ------------------------ Yahoo! Groups Sponsor --------------------~--> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar. Now with Pop-Up Blocker. Get it for free! http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
