So' I've Googled this all over and nothing I see seems to really apply to me (or works for that matter)
Let me preface this by saying, using "traditional" AJAX methods this doesn't seem to phase me but using jQuery is throwing me
So basically I have a page that monitors stats all over our facility.
I have three main type of stats (a,b,c) each using its own back-end php (a.php, b.php, c.php) file that I need to call via jQuery/AJAX
So for arguments sake lets say I have 30 of each (a,b,c) all over my page
Right now I reload all these values by simply reloading the entire page, but there's so much data it takes a full minute to reload which isn't ideal (hence the choice to load via AJAX)
So I've seen several AJAX methods for jQuery that seem to be hardcoded to a certain DOM ID.
Now in traditional JS I'd simple put something like (roughly)
<div id="unqiue_1"><script>updateValues(this.id,'a','someotherbits')</script></div>
and from that one "updateVlaues" it will dynamically know what backend to call and what ID it needs to update and so forth
But with jQuery I'm seemingly not finding an elegant way to replicate this without duplicating the "updateValues" method/function which seems wasteful and crawling the DOM to determine what needs updating.
Soooo yeah, if anyone has some pointers I'd be greatly appreciative =)
Thanks =)