Solved

Add "Out of Stock" to javascript/html table

Posted on 2011-09-22
1
212 Views
Last Modified: 2012-05-12
I have a website where cusotmers order instruments.  We are getting low on stock and I want to be able to add something to the site that says "Out of Stock"  

I've attached a doc that shows what the table looks like on our site.  I would like any way to visually show "Like New" & "Used" are out of stock.

I will attached the code that populates the table
Thanks!



 web-table.docx aeRntInstrumentSelect.aspx
0
Comment
Question by:mschirad
1 Comment
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 36899276
>I will attached the code that populates the table

why don't you add this column with this code?
if you've a SQL query somewhere :

SELECT instrument_type, CASE WHEN stock = 0 THEN 'Out of Stock' ELSE stock END FROM instruments
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now