I have just picked up a little hobble to fix some code for an e-commerce
site (older). It uses Aliant as the Secure Transaction server (if familiar
with it you will just shiver). Problem is the secure server picks up the URL
where you came from, in my case this is a product screen - a single
product - not the list of products. Aliant's code reads this URL, and if you
<continue shopping> you end up back on the single product page, as this is
where you left. This is confusing to a customer. if they click <back> from
here - they end up on the purchase shopping cart screen again, and it
increases the order as all info was passed once more. It basically forms a
confusing loop.
Aliant refuses to adjust thrir code for individual clients as it is a global
screen that you get tossed to for transactions, all their e-com clients end
up there. So - what I want to do is this: Write some code so that when i
click continue shopping, it goes back to the Single item Purchase page (as
it must the way Aliant has it coded). It will only stay here a sec - because
i want to re-route it to the list page, by writing an "If lastURL was Aliant
Checkout screen, then re-route to list screen" type of code piece - can this
be done?
Thanks in advance -
D 8 2181
Hmm no answers... how about if i try and simplify it. If I want to re-route
to another page only if the user came from a very specific previous URL, how
could I do it?
D
"Drifter" <loreseeker_pri me@hotmail*remo vethis*.com> wrote in message
news:bp******** **@nntp-stjh-01-01.rogers.nf.ne t... I have just picked up a little hobble to fix some code for an e-commerce site (older). It uses Aliant as the Secure Transaction server (if familiar with it you will just shiver). Problem is the secure server picks up the
URL where you came from, in my case this is a product screen - a single product - not the list of products. Aliant's code reads this URL, and if
you <continue shopping> you end up back on the single product page, as this is where you left. This is confusing to a customer. if they click <back> from here - they end up on the purchase shopping cart screen again, and it increases the order as all info was passed once more. It basically forms a confusing loop.
Aliant refuses to adjust thrir code for individual clients as it is a
global screen that you get tossed to for transactions, all their e-com clients
end up there. So - what I want to do is this: Write some code so that when i click continue shopping, it goes back to the Single item Purchase page (as it must the way Aliant has it coded). It will only stay here a sec -
because i want to re-route it to the list page, by writing an "If lastURL was
Aliant Checkout screen, then re-route to list screen" type of code piece - can
this be done?
Thanks in advance -
D
I'm in the process of doing something similar. Here are the ideas I worked
through.
/path/page.htm is now /path/page.asp
Option 1: Map .htm extension to asp.dll.
I decided against this, as it could cause confusion and also introduce
unnecessary processing on the server.
Option 2: Create a small table in a database with known urls that have
changed and their new paths.
I decided to use this. I will either automatically redirect people to the
new URL, or I will display a page that says something like, "This page has
changed to <new url>. Please update your bookmarks."
Option 3: Create a custom 404 that says, "Oops. This page is old. Try
using the links to find the new location, or maybe the page no longer
exists."
I'm using options 2 and 3 (with better wording than that...) as of now. For
option 3, I will probably add something that will detect the section of the
site that the person is in, i.e. site.com/employee, and have the 404 say
something like, "Go back to the main employee page <a href=/employee>.
I also setup the 404 to e-mail me the 404'ed urls, so that I can track down
more popular ones and add them to option 2. As far as option 2, I will
probably only use that for a month or so, and then bypass all of that. I
figure a month is enough time for people to update their things.
Ray at work
"Drifter" <loreseeker_pri me@hotmail*remo vethis*.com> wrote in message
news:bp******** **@nntp-stjh-01-01.rogers.nf.ne t... Hmm no answers... how about if i try and simplify it. If I want to
re-route to another page only if the user came from a very specific previous URL,
how could I do it?
D
"Drifter" <loreseeker_pri me@hotmail*remo vethis*.com> wrote in message
news:bp******** **@nntp-stjh-01-01.rogers.nf.ne t... So - what I want to do is this: Write some code so that when i click continue shopping, it goes back to the Single item Purchase page (as it must the way Aliant has it coded). It will only stay here a sec -
because i want to re-route it to the list page, by writing an "If lastURL was
Aliant Checkout screen, then re-route to list screen" type of code piece - can
this be done?
Couldn't you add some ASP to the top of your Single item Purchase page that
checks to see if the Request.ServerV ariables("HTTP_ REFERER") matched the
checkout page, and if so, Response.Redire ct to the desired page? In other
words, the user would never be shown the Single Item Purchase page because
they would transition before anything was displayed on the screen.
Regards,
Peter Foti
Excellent answer - and one that I have pursued for the last 2 hours - trying
to figure out how it worked. I built a test page with HTTP_REFERER in it
looking for the last page. I then went to other pages and checked the value,
nothing. I then read a little tip that referer only works if you reference
it from a link. I built another quick page with a link to HTTP_REFERER check
page, and all was good. To do final test I made a copy of the order
confirmation page from Aliant. They use this to create the link back to the
site:
<input type="button" name="Continue" value="Continue Shopping"
onclick="Contin ueShopping('htt p://testsite/supertest.asp') ;">
When i use this code, the HTTP_REFERER does not catch the URL any more.
Arrrggghhh!!! I cannot make Aliant change the code, and as it is, it will
not be caught with HTTP_REFERER. Very annoying.
Any other ideas???
Thanks,
D
"Peter Foti" <pe****@systoli cnetworks.com> wrote in message
news:vr******** ****@corp.super news.com... "Drifter" <loreseeker_pri me@hotmail*remo vethis*.com> wrote in message news:bp******** **@nntp-stjh-01-01.rogers.nf.ne t... So - what I want to do is this: Write some code so that when i click continue shopping, it goes back to the Single item Purchase page
(as it must the way Aliant has it coded). It will only stay here a sec - because i want to re-route it to the list page, by writing an "If lastURL was Aliant Checkout screen, then re-route to list screen" type of code piece - can this be done?
Couldn't you add some ASP to the top of your Single item Purchase page
that checks to see if the Request.ServerV ariables("HTTP_ REFERER") matched the checkout page, and if so, Response.Redire ct to the desired page? In other words, the user would never be shown the Single Item Purchase page because they would transition before anything was displayed on the screen.
Regards, Peter Foti
Use a link instead of a form button
Drifter wrote: Excellent answer - and one that I have pursued for the last 2 hours - trying to figure out how it worked. I built a test page with HTTP_REFERER in it looking for the last page. I then went to other pages and checked the value, nothing. I then read a little tip that referer only works if you reference it from a link. I built another quick page with a link to HTTP_REFERER check page, and all was good. To do final test I made a copy of the order confirmation page from Aliant. They use this to create the link back to the site:
<input type="button" name="Continue" value="Continue Shopping" onclick="Contin ueShopping('htt p://testsite/supertest.asp') ;">
When i use this code, the HTTP_REFERER does not catch the URL any more. Arrrggghhh!!! I cannot make Aliant change the code, and as it is, it will not be caught with HTTP_REFERER. Very annoying.
Any other ideas??? Thanks, D
"Peter Foti" <pe****@systoli cnetworks.com> wrote in message news:vr******** ****@corp.super news.com...
"Drifter" <loreseeker_pri me@hotmail*remo vethis*.com> wrote in message news:bp****** ****@nntp-stjh-01-01.rogers.nf.ne t...
So - what I want to do is this: Write some code so that when i click continue shopping, it goes back to the Single item Purchase page (as it must the way Aliant has it coded). It will only stay here a sec -
because
i want to re-route it to the list page, by writing an "If lastURL was
Aliant
Checkout screen, then re-route to list screen" type of code piece - can
this
be done?
Couldn't you add some ASP to the top of your Single item Purchase page
that
checks to see if the Request.ServerV ariables("HTTP_ REFERER") matched the checkout page, and if so, Response.Redire ct to the desired page? In other words, the user would never be shown the Single Item Purchase page because they would transition before anything was displayed on the screen.
Regards, Peter Foti
"Drifter" <loreseeker_pri me@hotmail*remo vethis*.com> wrote in message
news:bp******** **@nntp-stjh-01-01.rogers.nf.ne t... Excellent answer - and one that I have pursued for the last 2 hours -
trying to figure out how it worked. I built a test page with HTTP_REFERER in it looking for the last page. I then went to other pages and checked the
value, nothing. I then read a little tip that referer only works if you reference it from a link. I built another quick page with a link to HTTP_REFERER
check page, and all was good. To do final test I made a copy of the order confirmation page from Aliant. They use this to create the link back to
the site:
<input type="button" name="Continue" value="Continue Shopping" onclick="Contin ueShopping('htt p://testsite/supertest.asp') ;">
When i use this code, the HTTP_REFERER does not catch the URL any more. Arrrggghhh!!! I cannot make Aliant change the code, and as it is, it will not be caught with HTTP_REFERER. Very annoying.
Any other ideas???
Hmm... maybe some client side scripting could look at the history to
determine where the last page was (of course, that would only work for those
who have Javascript enabled), and then you could have Javascript redirect to
the new page?
Pete
Can't - the form code is a generated ASP code not on my server - it is an
e-commerce solution - very generic.
D
"Aaron" <a@1.net> wrote in message
news:%2******** **********@tk2m sftngp13.phx.gb l... Use a link instead of a form button
Drifter wrote:
Excellent answer - and one that I have pursued for the last 2 hours -
trying to figure out how it worked. I built a test page with HTTP_REFERER in it looking for the last page. I then went to other pages and checked the
value, nothing. I then read a little tip that referer only works if you
reference it from a link. I built another quick page with a link to HTTP_REFERER
check page, and all was good. To do final test I made a copy of the order confirmation page from Aliant. They use this to create the link back to
the site:
<input type="button" name="Continue" value="Continue Shopping" onclick="Contin ueShopping('htt p://testsite/supertest.asp') ;">
When i use this code, the HTTP_REFERER does not catch the URL any more. Arrrggghhh!!! I cannot make Aliant change the code, and as it is, it
will not be caught with HTTP_REFERER. Very annoying.
Any other ideas??? Thanks, D
"Peter Foti" <pe****@systoli cnetworks.com> wrote in message news:vr******** ****@corp.super news.com...
"Drifter" <loreseeker_pri me@hotmail*remo vethis*.com> wrote in message news:bp****** ****@nntp-stjh-01-01.rogers.nf.ne t...
So - what I want to do is this: Write some code so that when i click continue shopping, it goes back to the Single item Purchase page
(as
it must the way Aliant has it coded). It will only stay here a sec -
because
i want to re-route it to the list page, by writing an "If lastURL was
Aliant
Checkout screen, then re-route to list screen" type of code piece - can
this
be done?
Couldn't you add some ASP to the top of your Single item Purchase page
that
checks to see if the Request.ServerV ariables("HTTP_ REFERER") matched the checkout page, and if so, Response.Redire ct to the desired page? In
otherwords, the user would never be shown the Single Item Purchase page
becausethey would transition before anything was displayed on the screen.
Regards, Peter Foti
Control it from your side:
Hidden input tags that indicate "previous page" on the
list and single product page (and any place else they
might come from within your control). If the "previous
page" field doesn't exist, then the user just came from
somewhere else, so force them back to list page or where
ever. -----Original Message----- Can't - the form code is a generated ASP code not on my
server - it is ane-commerce solution - very generic.
D
"Aaron" <a@1.net> wrote in message news:%2******* ***********@tk2 msftngp13.phx.g bl... Use a link instead of a form button
Drifter wrote:
> Excellent answer - and one that I have pursued for
the last 2 hours -trying > to figure out how it worked. I built a test page with
HTTP_REFERER in it > looking for the last page. I then went to other pages
and checked thevalue, > nothing. I then read a little tip that referer only
works if youreference > it from a link. I built another quick page with a
link to HTTP_REFERERcheck > page, and all was good. To do final test I made a
copy of the order > confirmation page from Aliant. They use this to
create the link back tothe > site: > > <input type="button" name="Continue" value="Continue
Shopping" > onclick="Contin ueShopping
('http://testsite/supertest.asp') ;"> > > When i use this code, the HTTP_REFERER does not catch
the URL any more. > Arrrggghhh!!! I cannot make Aliant change the code,
and as it is, itwill > not be caught with HTTP_REFERER. Very annoying. > > Any other ideas??? > > > > Thanks, > > > > D > > > "Peter Foti" <pe****@systoli cnetworks.com> wrote in
message > news:vr******** ****@corp.super news.com... > >>"Drifter" <loreseeker_pri me@hotmail*remo vethis*.com>
wrote in message >>news:bp****** ****@nntp-stjh-01-01.rogers.nf.ne t... >> >>>So - what I want to do is this: Write some code so
that when i >>>click continue shopping, it goes back to the Single
item Purchase page > > (as > >>>it must the way Aliant has it coded). It will only
stay here a sec - >> >>because >> >>>i want to re-route it to the list page, by writing
an "If lastURL was >> >>Aliant >> >>>Checkout screen, then re-route to list screen" type
of code piece - can >> >>this >> >>>be done? >> >>Couldn't you add some ASP to the top of your Single
item Purchase page > > that > >>checks to see if the Request.ServerV ariables
("HTTP_REFERER" ) matched the >>checkout page, and if so, Response.Redire ct to the
desired page? Inother >>words, the user would never be shown the Single Item
Purchase pagebecause >>they would transition before anything was displayed
on the screen. >> >>Regards, >>Peter Foti >> >> > > >
. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: lawrence |
last post by:
Dear Peter,
Do we know anyone else who writes PHP code? There is too much work to
do, especially if Costin and I are going to join our software
together.
The easiest way for us to join our software together is through high
level wrapper classes that take other classes for arguments. Costin
and I could move toward joining the software one package at a time.
|
by: kenfar |
last post by:
I've got a set of redundant marts that I'm trying to catalog on the
client side to allow us to do two things:
1. manually recatalog to point at either of the two fast marts
2. automatically failover to a third slow mart
The data marts are on db2 8.2.1, the client on db2 8.2.?
But I'm hitting a few roadblocks here - all suggestions are
appreciated. So, I've given our portal team (runs actuate) a pair of
scripts to switch the catalog...
|
by: Chad Z. Hower aka Kudzu |
last post by:
A few of you may recognize me from the recent posts I have made about Indy
<http://www.indyproject.org/indy.html>
Those of you coming to .net from the Delphi world know truly how unique and
"huge" Indy is both as a project, in support, development, and use. But
Indy is new to the .net world.
Indy is a HUGE library implementing over 120 internet protocols and
standards and comes with complete source. Its an open source project, but
not...
|
by: Phil |
last post by:
k, here is my issue.. I have BLOB data in SQL that needs to be grabbed and
made into a TIF file and placed on the client (could be in temp internet
dir). The reason we need it in TIF format is there are multiple pages per
invoice.
How can I grab the data, make the TIF, place it on the client and then Open
with the clients default program for veiwing TIF's (usually Microsoft Picture
and Fax Viewer).
Please help.
|
by: Codex Twin |
last post by:
I am re-sending this in the hope that it might illicit a response. I have a
corporate client who forces their workstations to get the proxy server
details using an automatic proxy discovery script.
Unfortunately, the .NET Framework does not support automatic proxy discovery
scripts. See:
http://support.microsoft.com/default.aspx?scid=kb;%5BLN%5D;307220
The article above details that the way to workaround this is to edit the...
| |
by: Quas.co.ua |
last post by:
Hello all.
I need your help.
I need C compler to make demo of some technologie.
This C compiler I need to write program
which after run will be located in one segment of memory
and it generates another code an write it into another (second) segment.
And after some fragment of code is generated program from first segment
runnes just generated code from second segment which may return in first
|
by: MrHelpMe |
last post by:
Hello again experts,
I have successfully pulled data from an LDAP server and now what I want
to do is drop the data into a database table. The following is my code
that will insert the data but that has problems.
FullName=Request.Form("Name")
Email=Request.Form("Email")
GivenName=Request.Form("GivenName")
|
by: mike |
last post by:
I help manage a large web site, one that has over
600 html pages... It's a reference site for ham radio
folks and as an example, one page indexes over
1.8 gb of on-line PDF documents.
The site is structured as an upside-down tree, and
(if I remember correctly) never more than 4 levels.
The site basically grew (like the creeping black blob) ...
all the pages were created in Notepad over the last
|
by: Brad |
last post by:
Does anyone know of a method to reroute a web page to a file.
When someone comes to a web page, I would to reroute the output from a
web page to a file on our site.
The web page we are rerouting does not exist on our site and in some
instances is not a text web page but the output of a perl or some
other script.
Thanks,
Brad
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |