As Beverly mentioned part way, this is job for AJAX
here is a link explaining ajax
http://www.sitepoint.com/article/remote-scripting-ajax
have fun ;-)
On Nov 2, 2007, at 12:25 PM, Beverly Voth wrote:
On 11/2/07 3:00 PM, "WebDude" <[EMAIL PROTECTED]> wrote in whole or in
part:
Hello all,
I had a shopping basket - you could search for products, a list
returns,
click on product for detail then add it to the basket. After adding
it to
the basket, a little window would pop up and show the item along
with the
price. Also, a javascript would pop the browser back 2 (history.go
(-2))> so
they would end up on the page with the list of products from the first
search. Everytime they added a product, it would update the popup
window
along with a running total.
Now the client would like to get rid of the popup window (no
problem) but
still show the basket with a running total on pretty much all the
pages. I
started by building a quick basket search and displaying it on each
page in
the upper right hand corner. The problem is that you have to
refresh to see
any new results.
To make a long story shorter (at least a bit) is there any way to do a
history.go(-2) and reload the page at the same time? to see the
updated
basket items?
OR...
is there a way to capture the url in the browser window so I can
get back to
the original search page? (all args are in the url) .
Any help would be greatly appreciated... would kind of like it
cross-browser...
This kind of thing is what Web 2.0 is all about. Imagine you are on your
"found set" page and click "add-to-cart". This "refreshes" *just* the
<div>
with the cart items and leaves you right where you are.
If you can get the JavaScript that works well x-browser with
"XMLHttpRequest" and "innerHTML", you have it!
The "request" is much like you have now, only Javascript passes the
url and
does some magic replacing the current contents of <div id="cart">
with all
the items, by changing the "innerHTML" of the div.
You can pass off the query to Witango, instead of it being
"processed" by
Javascript alone.
--
Beverly Voth Tier3 Data & Web Services Group, LLC
606-864-0041 http://www.tier3web.com/xml.htm
Web Design & Hosting * Apple Consultants Network
Certified FileMaker 7 Developer * FileMaker Business Alliance
Coldfusion, Witango, PHP, MS SQL, MySQL, FMP, XML/XSLT, CSS
Over 12 years experience integrating databases and the internet!
(Certified by proximity, not knowledge. I work in all flavors of FMP)
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf