473,396 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Not sure what to use for this

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

Jul 23 '05 #1
5 1325
Marshall Dudley wrote:
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

what is the technologies that use the two sites ?

Georgios Maravelias
Jul 23 '05 #2
As I understand it you are dealing with 2 sites: the shopping site, and
the cart site. And you want to do this:

shopping -> cart -> shopping

And you want to display the cart contents on the second instance of the
shopping site.

If I've got that much right - I think you'll need to post whatever data
you need back to the shopping site. There isn't a good method of
passing data between sites using only client side code. And I don't
see how an applet is going to help either.

On the cart site, can you store the data in some hidden fields, do
whatever processing you do, then post the data back to the shopping
site?

Jul 23 '05 #3
Giorgos Maravelias wrote:
what is the technologies that use the two sites ?

Georgios Maravelias


The shopping cart server, Free BSD, Apache and Perl.
The main store site, can be anything, but most are running either a Unix
flavor with Apache, or a Windows server with whatever they run. I have no
control over them. I do not want to try to walk clients through getting server
side includes turned on, expecially since many hosting companies do not even
allow them.

Thanks,

Marshall

Jul 23 '05 #4
pj************@gmail.com wrote:
As I understand it you are dealing with 2 sites: the shopping site, and
the cart site. And you want to do this:

shopping -> cart -> shopping
Yes, it goes to the cart just long enough for the cart site to record the
addition to the cart, then it does a meta refersh back to the original
site. Of course when they go to checkout, it stays in the cart until the
purchase is completed, but that is irrelevent to this issue.


And you want to display the cart contents on the second instance of the
shopping site.
Correct.


If I've got that much right - I think you'll need to post whatever data
you need back to the shopping site. There isn't a good method of
passing data between sites using only client side code. And I don't
see how an applet is going to help either.
Since their sites are going to plain html code in the document directory,
instead of cgi code, it is not possible to post back to it.


On the cart site, can you store the data in some hidden fields, do
whatever processing you do, then post the data back to the shopping
site?


Yes, the shopping cart side is fully functional. The problem is that some
of my clients want to have a small cart contents box show on their main
site after an item has been put into their cart, and I cannot figure out a
way to get the cart information to display on a static html page on their
site. The shopping cart site can be easily made to send whatever data, or
page it needs to, it is strictly the customer's main site that I have no
clue as to how to do it, or even if it can be done.

Thanks,

Marshall

Jul 23 '05 #5

"Marshall Dudley" <md*****@king-cart.com> wrote in message
news:42***************@king-cart.com...
pj************@gmail.com wrote:
Yes, the shopping cart side is fully functional. The problem is that some
of my clients want to have a small cart contents box show on their main
site after an item has been put into their cart, and I cannot figure out a
way to get the cart information to display on a static html page on their
site. The shopping cart site can be easily made to send whatever data, or
page it needs to, it is strictly the customer's main site that I have no
clue as to how to do it, or even if it can be done.

Thanks,

Marshall


Make use of an <iframe>. Add an <IFRAME> element to the static page (page on
customer's main site). Set the iframe's source (src attribute) to a page of
your shopping-cart application. This page will just show a miminal
shopping-cart. Then you can still use cookies, etc, because the <iframe> is
within your domain, cookies are sent and received ok. Make sure, however,
that the users of the customer's main site are allowed to have embedded
documents (<iframe> elements) that cross domains (security settings of
browser).

Good luck
-- Anton.

Jul 23 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Oliver Spiesshofer | last post by:
Hi, I want to make a standard-function that handles "Are you sure"-type questions. In my idea it should look something like this: <code> Function deleteitem($item) {
1
by: BKM | last post by:
I've been using the following 2 ways to make sure my WebBrowser is finished loading a page before continuing with the next code. do:doevents:loop while WebBrowser.Busy do:doevents:loop until...
7
by: simondex | last post by:
Hi, Everyone! How could I make sure that nine values (from 0 to N) are all different without writing too many loops? I am not afraid of statistical parameters (e.g. coefficient of variation,...
3
by: ColinWard | last post by:
Hi again. I am trying to figure out how to make sure that a value has been selected from a combobox on a form. I have tried using isnull(comboboxname.text) and isempty(comboboxname.text)and...
37
by: yogpjosh | last post by:
Hello All, I was asked a question in an interview.. Its related to dynamically allocated and deallocated memory. eg. //start char * p = new char; ...
4
by: Laphan | last post by:
Hi The god that is Martin Honnen gave me a great tip to DOM/JS some HTML data into an iframe, but I need to make sure that the iframe is ready to take it before I paste it in. At the moment,...
11
by: Hari Sekhon | last post by:
I have written a script and I would like to ensure that the script is never run more than once at any given time. What is the best way of testing and exiting if there is another version of this...
11
by: PokerMan | last post by:
Hi I have a situation where a method is fired from receiving a message from my server. On receiving this message it triggers a visual animation. So what happens when the server sends say 3...
0
by: takveen | last post by:
Oracle Key Concepts - Make Sure You Know All! Oracle Key Concepts - Make sure you know all especially before appearing for Oracle Certification (i.e. to becoming Oracle Certified Professional or...
3
by: sheldonlg | last post by:
I have a page that has three submit buttons. Depending upon which one was clicked, I process it differently on the server in php. One of those buttons is a delete action so I would like to add an...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
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,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.