Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic Javascript ? Help

Status
Not open for further replies.

theoryofben

IS-IT--Management
Joined
Aug 25, 2001
Messages
149
Location
US
I'm a newbie and I have a question. I'm doing a site using ASP and the shopping cart that I will be using (phpcart)uses javascript for the 'add to cart' and 'view cart' commands.

My question is can I have a field in my database containing the javascript, for instance "javascript:Add('l60004','Shoe Horn','12.50','0.00')"
and make that a dynamic link assigned to an 'add to cart' button. Would that work? Hope I wasn't too confusing. Thanks in advance.

Ben

"Whoever fights monsters, should see to it that in the process, they do not become one."-Friedrich Nietzsche
 
A quick answer is yes, just bind the database field to your submit button I guess The secret of life is honesty and fair dealing. If you can fake that, you've got it made.
Groucho Marx (1895-1977)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top