Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ General Web Design _ Building a simple auction site

Posted by: wysocki Jan 18 2023, 04:21 PM

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?

Posted by: Christian J Jan 19 2023, 07:23 AM

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

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)