M
Marshall Dudley
I have a requirement where I need to insert a cart contents into all the
pages of a website. There are two websites involved, the main website
of the store owner, and the website of the shopping cart service. I
need to be able to display the cart contents of the cart that is on the
service, on pages that are thrown by the main site.
When an item is added to the cart a post is made from the main site to
the service site, then after the service site adds the item to the cart,
the customer is returned back to the main site. I need the cart
contents to appear in a cell or applet on the main site.
I have looked at the following, but seem to be constrained on each of
them.
Method
Use cookies with javascript.
Problem
Cookies can be placed on the client's system by the cart system, but the
javascript will be in a document on the main site and thus they cannot
be read.
Method
Use javascript
Problem
I can't find any way to get javascript to access a webpage and put it's
contents into the cell of a table in the main document, or access a
website and acquire data which it puts into fields of the main
document. If this can be done, I would appreciate it if someone could
point me in the right direction.
Method
Use a Java Applet
I am completely unfamiliar with this. But from reading it appears I can
access information, but it cannot be from a different website than the
one the present page is on for security reasons. If so I can't use it
either. Also if it can access a page on another site, or information
from another site, would it provide the appropriate cookies to the
service site so they can identify the correct customer/cart?
Thanks,
Marshall
pages of a website. There are two websites involved, the main website
of the store owner, and the website of the shopping cart service. I
need to be able to display the cart contents of the cart that is on the
service, on pages that are thrown by the main site.
When an item is added to the cart a post is made from the main site to
the service site, then after the service site adds the item to the cart,
the customer is returned back to the main site. I need the cart
contents to appear in a cell or applet on the main site.
I have looked at the following, but seem to be constrained on each of
them.
Method
Use cookies with javascript.
Problem
Cookies can be placed on the client's system by the cart system, but the
javascript will be in a document on the main site and thus they cannot
be read.
Method
Use javascript
Problem
I can't find any way to get javascript to access a webpage and put it's
contents into the cell of a table in the main document, or access a
website and acquire data which it puts into fields of the main
document. If this can be done, I would appreciate it if someone could
point me in the right direction.
Method
Use a Java Applet
I am completely unfamiliar with this. But from reading it appears I can
access information, but it cannot be from a different website than the
one the present page is on for security reasons. If so I can't use it
either. Also if it can access a page on another site, or information
from another site, would it provide the appropriate cookies to the
service site so they can identify the correct customer/cart?
Thanks,
Marshall