Posts: 3,176
Name: Thierry
Location: I'm the uber Spaminator !
|
It's just an idea, but as your cart is javascript based, obviously you can count on advanced javascript support when your customer use it.
So, why not design a page on your site that takes the cart content as a POST or GET parameter (and send it to you, or do whatever else) and let your cart send it via a simple AJAX request ?
Or, you could dynamically create a <form> element, and post it to your server (which is approximatively the same in this case)
Code:
<script type="text/javascript">
/*
Create a simple form with a textarea in it, and send it via POST to http://www.whatever.com/cartPost.php
*/
frm=document.createElement('form')
frm.action="http://www.whatever.com/cartPost.php"
frm.method="POST"
fld=document.createElement('textarea')
fld.appendChild(document.createTextNode(simpleCart.items))
frm.appendChild(fld)
frm.submit()
</script>
Maybe you could simply derive updateViewTotals() to have it return the HTML string, rather than directly inject it into the target html element.
__________________
Only a biker knows why a dog sticks his head out the window.
|