Re: History list
I would suggest using an array and the ArrayDeleteAt(array, position) ArrayAppend(array, value) so if you have a var session.history as you add a values use ArrayAppend(session.history, value) and if the array is over 5 entries use ArrayDeleteAt(session.history,1) Justin MacCarthy - Original Message - From: "Parker, Kevin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 11, 2000 7:30 AM Subject: RE: History list > Thanks Jon - didn't consider cookies and haven't used them before. This also > assumes that the end user has cookies enabled. > > > > Kevin Parker > Service and Communication > WorkCover Corporation > > [EMAIL PROTECTED] > > ph: +61 8 82332548 > fax: +61 8 82332000 > > > > -Original Message- > From: Jonathan Karlen [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 10 August 2000 4:43:PM > To: [EMAIL PROTECTED] > Subject: Re: History list > > > What about setting cookies? Use five cookies named LocationX and on each > page loop through them all and append the current page and remove the > oldest. Then loop through the cookies and print the links. > > Jon > > - Original Message - > From: Parker, Kevin <[EMAIL PROTECTED]> > To: CF Talk (E-mail) <[EMAIL PROTECTED]> > Sent: Friday, August 11, 2000 12:45 AM > Subject: History list > > > > This may actually be best achieved with a JavaScript solution so I > apologise > > if some regard it as OT. > > > > We're deploying one of our large manuals to the web (which is currently > > distributed as a Win 3.1 help file - those were the days) as HTML. One of > > its features (the win help version) is that it has a history function and > > users can back track. I want to try an emulate this for the last 5 or so > > pages the user was on. > > > > I know you can do this by using a href and using history - 1, history -2 > etc > > but rather than have a simple image or bit of static text with a link I > want > > to actually try to produce a small list with the name of the page they > were > > on, linked to that page (the link can use history -1 etc but I want to > > actually get the name of the page if I can). After all users won't > remember > > what the page was 5 clicks ago but it will help them if they can see the > > name of the page. The history function in JavaScript doesn't appear to > > provide this info. > > > > Any clue please. > > > > > > > > Kevin Parker > > Service and Communication > > WorkCover Corporation > > > > [EMAIL PROTECTED] > > > > ph: +61 8 82332548 > > fax: +61 8 82332000 > > > > > > > > > > > > > > > This e-mail is intended for the use of the addressee only. It may contain > > information that is protected by legislated confidentiality and/or is > > legally privileged. If you are not the intended recipient you are > prohibited > > from disseminating, distributing or copying this e-mail. Any opinion > > expressed in this e-mail may not necessarily be that of the WorkCover > > Corporation of South Australia. Although precautions have been taken, the > > sender cannot warrant that this e-mail or any files transmitted with it > are > > free of viruses or any other defect. > > If you have received this e-mail in error, please notify the sender > > immediately by return e-mail and destroy the original e-mail and any > copies. > > > > > -- > > > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > > To Unsubscribe visit > http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or > send a message to [EMAIL PROTECTED] with 'unsubscribe' in > the body. > > > > -- -- > -- > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > To Unsubscribe visit > http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or > send a message to [EMAIL PROTECTED] with 'unsubscribe' in > the body. > > > > > This e-mail is intended for the use of the addressee only. It may contain > info
RE: History list
> This may actually be best achieved with a JavaScript solution so > I apologise > if some regard it as OT. > > We're deploying one of our large manuals to the web (which is currently > distributed as a Win 3.1 help file - those were the days) as HTML. One of > its features (the win help version) is that it has a history function and > users can back track. I want to try an emulate this for the last 5 or so > pages the user was on. > > I know you can do this by using a href and using history - 1, > history -2 etc > but rather than have a simple image or bit of static text with a > link I want > to actually try to produce a small list with the name of the page > they were > on, linked to that page (the link can use history -1 etc but I want to > actually get the name of the page if I can). After all users > won't remember > what the page was 5 clicks ago but it will help them if they can see the > name of the page. The history function in JavaScript doesn't appear to > provide this info. Seeing as the history object in JavaScript is an array, you can refer to any of the entries in it - BUT, it calls them all by URL, it's only the browser that calls them by title The only way I can think of getting the titles is to run an (ugly) loop that briefly opens another window for that URL, grabs the title, then closes that window - this would mean loads of windows flicking into existance, then closing immediately. This would work, but it wouldn't be quick if the server connection was slow, oh, and did I mention it would be ugly? Philip Arnold ASP Multimedia Limited T: +44 (0)20 8680 1133 "Websites for the real world" ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ** -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: History list
Thanks Jon - didn't consider cookies and haven't used them before. This also assumes that the end user has cookies enabled. Kevin Parker Service and Communication WorkCover Corporation [EMAIL PROTECTED] ph: +61 8 82332548 fax: +61 8 82332000 -Original Message- From: Jonathan Karlen [mailto:[EMAIL PROTECTED]] Sent: Thursday, 10 August 2000 4:43:PM To: [EMAIL PROTECTED] Subject: Re: History list What about setting cookies? Use five cookies named LocationX and on each page loop through them all and append the current page and remove the oldest. Then loop through the cookies and print the links. Jon - Original Message - From: Parker, Kevin <[EMAIL PROTECTED]> To: CF Talk (E-mail) <[EMAIL PROTECTED]> Sent: Friday, August 11, 2000 12:45 AM Subject: History list > This may actually be best achieved with a JavaScript solution so I apologise > if some regard it as OT. > > We're deploying one of our large manuals to the web (which is currently > distributed as a Win 3.1 help file - those were the days) as HTML. One of > its features (the win help version) is that it has a history function and > users can back track. I want to try an emulate this for the last 5 or so > pages the user was on. > > I know you can do this by using a href and using history - 1, history -2 etc > but rather than have a simple image or bit of static text with a link I want > to actually try to produce a small list with the name of the page they were > on, linked to that page (the link can use history -1 etc but I want to > actually get the name of the page if I can). After all users won't remember > what the page was 5 clicks ago but it will help them if they can see the > name of the page. The history function in JavaScript doesn't appear to > provide this info. > > Any clue please. > > > > Kevin Parker > Service and Communication > WorkCover Corporation > > [EMAIL PROTECTED] > > ph: +61 8 82332548 > fax: +61 8 82332000 > > > > > > > This e-mail is intended for the use of the addressee only. It may contain > information that is protected by legislated confidentiality and/or is > legally privileged. If you are not the intended recipient you are prohibited > from disseminating, distributing or copying this e-mail. Any opinion > expressed in this e-mail may not necessarily be that of the WorkCover > Corporation of South Australia. Although precautions have been taken, the > sender cannot warrant that this e-mail or any files transmitted with it are > free of viruses or any other defect. > If you have received this e-mail in error, please notify the sender > immediately by return e-mail and destroy the original e-mail and any copies. > > -- > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. > -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. This e-mail is intended for the use of the addressee only. It may contain information that is protected by legislated confidentiality and/or is legally privileged. If you are not the intended recipient you are prohibited from disseminating, distributing or copying this e-mail. Any opinion expressed in this e-mail may not necessarily be that of the WorkCover Corporation of South Australia. Although precautions have been taken, the sender cannot warrant that this e-mail or any files transmitted with it are free of viruses or any other defect. If you have received this e-mail in error, please notify the sender immediately by return e-mail and destroy the original e-mail and any copies. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: History list
What about setting cookies? Use five cookies named LocationX and on each page loop through them all and append the current page and remove the oldest. Then loop through the cookies and print the links. Jon - Original Message - From: Parker, Kevin <[EMAIL PROTECTED]> To: CF Talk (E-mail) <[EMAIL PROTECTED]> Sent: Friday, August 11, 2000 12:45 AM Subject: History list > This may actually be best achieved with a JavaScript solution so I apologise > if some regard it as OT. > > We're deploying one of our large manuals to the web (which is currently > distributed as a Win 3.1 help file - those were the days) as HTML. One of > its features (the win help version) is that it has a history function and > users can back track. I want to try an emulate this for the last 5 or so > pages the user was on. > > I know you can do this by using a href and using history - 1, history -2 etc > but rather than have a simple image or bit of static text with a link I want > to actually try to produce a small list with the name of the page they were > on, linked to that page (the link can use history -1 etc but I want to > actually get the name of the page if I can). After all users won't remember > what the page was 5 clicks ago but it will help them if they can see the > name of the page. The history function in JavaScript doesn't appear to > provide this info. > > Any clue please. > > > > Kevin Parker > Service and Communication > WorkCover Corporation > > [EMAIL PROTECTED] > > ph: +61 8 82332548 > fax: +61 8 82332000 > > > > > > > This e-mail is intended for the use of the addressee only. It may contain > information that is protected by legislated confidentiality and/or is > legally privileged. If you are not the intended recipient you are prohibited > from disseminating, distributing or copying this e-mail. Any opinion > expressed in this e-mail may not necessarily be that of the WorkCover > Corporation of South Australia. Although precautions have been taken, the > sender cannot warrant that this e-mail or any files transmitted with it are > free of viruses or any other defect. > If you have received this e-mail in error, please notify the sender > immediately by return e-mail and destroy the original e-mail and any copies. > > -- > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. > -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.