HTML table: how to?

I am still trying to figure out if this in possible in Wix, or maybe I have to turn to another environment (which I really don´t want, getting comfortably snug with Wix Code).
So I will try to explain myself, again, a bit better. What I would like to achieve is this:

  1. in some (non-Wix) website, one implements an iFrame with a source to a ‘page’ on my Wix Site
  2. this ‘page’ holds no interface elements, just code
  3. the code would do a db query and build a HTML-table like above
  4. this html would then be sent back to the requesting site holding the iFrame

What I am looking for is something like response.write in ASP: you do some work server-side, build the html and with response.write you answer back (with the html).

Now, I have looked at wix-http-functions and response(). For me, this is untrodden ground. So my simple question is: would this serve my purpose or can someone already foresee that it is a waste of time trying to do this?