NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Jim A on July 22, 2013, 04:45:23 PM
-
I am trying to accomplish an inventory list similar to what is shown here: http://www.fireequipmentliquidators.com/hardware.htm (http://www.fireequipmentliquidators.com/hardware.htm) I'd like to have more than one item show per line (hence, not a browse).
Is it best to use NetWebPage for this? If so, how do I pass the formatted html back to the browser? I have no problem with the header and footer. Nor is it a problem to generate the necessary html from the inventory data. What I can't seem to grasp is how to send this to the browser.
In other words, when the browser requests a certain type of Inventory -- a routine reads this from the data file and writes out the html. How does this get passed?
Hope that makes sense. If there's a better way, I'm open to suggestions.
Thanks in advance.
-
Hi Jim,
The browse supports "more than one record per line" already. Albeit with some restrictions (which I am hoping to lift.)
See some of the options on the advanced tab. (and for the barest of hints check out the template reference docs as well.)
cheers
Bruce
-
Thanks Bruce. I will look again.
Update: Yes, I can get more than one photo per line. Is it possible to get the list to resize (horizontally) when the size of the browser changes?
-
that's a bit tricky. It's probably do-able, given that you have the screen resolution the client is using in
p_web.GetSessionValue('_ScreenWidth_')
so maybe use that when calculating the number of records per row.
As long as this isn't the _first_ page the user gets to on your site. If it's the first page then you don't have the resolution.
and if the browser resizes the page, it doesn't reflow.
So mostly the answer is "no - not at the moment".
cheers
Bruce
-
I understand.
What I should have mentioned is that this is merely for running a website (not using it for edits). My thought was that this could be done using a div without using a table or <td> column. Then the whole works would auto-resize.
Thanks.
-
yeah, I've got plans for a table-less browse, but alas that's not near the top of the list yet.
cheers
Bruce