www.uburst.com www.uburst.com

"Removing Products when a page loads"

Go back to the LobbyClick here to Go Back to Main ListingClick here to see helpClick here to Search the Forum

Programmer Tips
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"Removing Products when a page loads"
Posted by Ken Krickbaum on Feb-03-00 at 06:12 PM (EST)
Hello again!

This time I have a rather simple question.

I need to Remove all of the products from the Shopping cart when a page loads.

I would like to use the onload="" function.
With not understanding all of your JAVA code for uShopProducts.class, I would like to find out the call to make.

A simple call from the HTML onload to execute the uShopProducts.removeAllProducts() method is all that I need.

Thanks again,
Ken

Click to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents

 Table of Contents

java source, charlie edmunds, Feb-03-00, (1)
GOT it!! And here is the code, Ken Krickbaum, Feb-03-00, (2)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "java source"
Posted by charlie edmunds on Feb-03-00 at 08:06 PM (EST)
Ken,

I don't know myself. I'll forward your question to our developers.

Charlie Edmunds
Microburst Technologies, Inc.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
2 . "GOT it!! And here is the code"
Posted by Ken Krickbaum on Feb-03-00 at 09:57 PM (EST)
Well, it wasn't easy, but I got it.

I just created a class file for removing all items in the shopping cart when the page is loaded.

Here is the applet HTML code (without the Greater than and less than signs)


applet CODE="RemAlluShop.class" codebase="/scripts/ushop/" WIDTH="0" HEIGHT="0"
/applet


Anyone who wants the RemAlluShop.class file that I created, just email me.

And for those who are afraid of code from someone you don't know, then here is the Java code to compile.

import java.applet.Applet;
import java.awt.*;

class RemAlluShop extends uShopCartBase {

public void init() {
uShopProducts.removeAllProducts();
}
}

Hope this helps someone.

It is great if your are processing orders through and app and return a reciept page outside of uShop, then the receipt page clears out the shopping cart.


Thanks edmond for the try.

Ken
ceo@yippyyahoo.com

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents


Archive This Thread: Admin and Moderator OnlyRemove This Thread: Admin and Moderator Only
Click here to goto Click here to goto the Lobby

 

 

 

 

 

 

 

 

 

 

 

 
Questions or problems regarding this bulletin board should be directed to Webmaster
©1997-1999 by DCScripts. All rights reserved.