The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Building a simple auction site, I need to quickly create a simple auction website for charity
wysocki
post Jan 18 2023, 04:21 PM
Post #1


Newbie
*

Group: Members
Posts: 11
Joined: 22-February 11
Member No.: 13,950



I've been given the task of coming up with a SIMPLE online auction website for a local charity. They will have a few dozen articles and a few dozen shoppers wandering around tables at a fundraiser. The tables will have the items on display along with an item number. I'd like a system where I (as administrator) can add new shoppers as they come in and have them browse to my website with their devices. There they login, and are shown a list of all items, with current bid price. Then they can select an item to see details or make a bid.

As a programmer, I've worked with PHP, Javascript, MySQL, HTML. I can easily build a database with the shopper and item data. But then I need to code the system.

So the hard part is that I need a method to frequently update pages with current values from the database (AJAX?). I've searched github for a solution, but they're either overly complex, undocumented or use tools I'm not familiar with. Any suggestions that can get me started?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Jan 19 2023, 07:23 AM
Post #2


.
********

Group: WDG Moderators
Posts: 9,630
Joined: 10-August 06
Member No.: 7



QUOTE(wysocki @ Jan 18 2023, 10:21 PM) *

So the hard part is that I need a method to frequently update pages with current values from the database (AJAX?). I've searched github for a solution, but they're either overly complex, undocumented or use tools I'm not familiar with. Any suggestions that can get me started?

Perhaps you could let a javascript timer send an Ajax request to the server every second or so?

There's also server Push, but I know even less about the details:
https://en.wikipedia.org/wiki/HTTP/2_Server_Push
https://developer.mozilla.org/en-US/docs/Web/API/Push_API
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th March 2024 - 11:06 AM