Click here to Skip to main content
15,890,717 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I am interested in making a website that allows users to check if a certain item is in stock or out of stock. I know that it might be JavaScript and CSS tables but I am not sure. I know people who are making python tools but I am interested in HTML I will provide an example below


http://[DELETED].com

What I have tried:

I have been just researching a little bit so far about tables and Java
Posted
Updated 29-Jun-21 5:28am
v2
Comments
Richard MacCutchan 29-Jun-21 6:56am    
You will not be able to do that in Javascript, unless the server provides each web page with the complete stock tables. And that would not be a good design. This sort of transaction is made by the HTML/Javascript sending a query to the web server, which returns the relevant details. I suggest you look at some tutorials on creating websites, using either ASP.NET or PHP.

1 solution

Websites have both client side code and server side code. So, to determine if something is in stock you have to check your database (which is where this data would be.) To do that you have to use server side code. You can call it from JavaScript but you'll need server side code to contact your database and do a lookup.

I would suggest hiring someone or reading through lots of books and tutorials until you learn how to do some of this stuff.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900