Solved

Add "Out of Stock" to javascript/html table

Posted on 2011-09-22
1
225 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Javascript 2 38
Hide file extensions in Notepad++ tabs 2 46
Html split(text) Part2 6 20
Table doesn't show the lines! 3 23
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

763 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