www.uburst.com www.uburst.com

"ASP to JavaScript Variable Passing"

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

Future Feature Wish List
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"ASP to JavaScript Variable Passing"
Posted by tethomas on Dec-26-00 at 07:40 PM (EST)
In the perfect world of computer languages, will there ever be a way to pass a session variable from ASP into the uShop Javascript for the product names, product ID, and description fields?

Been trying to figure this out all weekend, but did find a suedo work-around.

Will look for a post on this one.

Thanks.

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

RE: ASP to JavaScript Variable Pass..., Bill Weiner, Dec-27-00, (1)
ASP to Javascript Problem Fixed, tethomas, Dec-27-00, (2)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "RE: ASP to JavaScript Variable Passing"
Posted by Bill Weiner on Dec-27-00 at 06:28 AM (EST)
I'm not totally familiar with ASP, myself, but here are a few ideas that may help:

1) Perhaps you can use ASP (and/or some other CGI technique) to dynamically generate the product pages with the uShop applets on them. (of course with the product name, description, etc... specified at the time the page is generated).

2) Or for more flexibility, perhaps you can use the uShop JavaScript API along with your own JavaScripts/forms to add items to uShop's Shopping Cart. See the "JavaScript Input Examples" in the uShop Applet Reference for more information on the uShop JavaScript API:

http://www.uburst.com/uShop/applets.html

Note: And if there is actually a "session" variable that needs to be maintained, perhaps you can do that too with JavaScript... via the use of the JavaScript variable document.location to get the URL and then parse the session ID out of that (if the variable is maintained in the URL).

Note 2: Or if you are looking for a way to maintain any custom variables (such as a "session" variable) internal to uShop, then perhaps you can use these two uShopJSI functions:

document.uShopJSI.setCustomExtra1(String myVariable);

document.uShopJSI.getCustomExtra1();

Hopefully that gives you some ideas.... otherwise, if I understood more of what you would like to do, I may be able to give some more suggestions.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
2 . "ASP to Javascript Problem Fixed"
Posted by tethomas on Dec-27-00 at 07:03 PM (EST)
Really do appreciate the reply.

Our solution to maintain a ASP session variable was to include a tag like this:

Works everytime.

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.