NetTalk Central

Author Topic: What is best way to list Inventory photos without using NetBrowse?  (Read 3425 times)

Jim A

  • Full Member
  • ***
  • Posts: 203
    • View Profile
    • Email
I am trying to accomplish an inventory list similar to what is shown here:  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.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: What is best way to list Inventory photos without using NetBrowse?
« Reply #1 on: July 22, 2013, 09:38:38 PM »
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


Jim A

  • Full Member
  • ***
  • Posts: 203
    • View Profile
    • Email
Re: What is best way to list Inventory photos without using NetBrowse?
« Reply #2 on: July 23, 2013, 02:24:04 AM »
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?
« Last Edit: July 23, 2013, 03:15:06 AM by Jim A »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: What is best way to list Inventory photos without using NetBrowse?
« Reply #3 on: July 23, 2013, 03:34:57 AM »
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


Jim A

  • Full Member
  • ***
  • Posts: 203
    • View Profile
    • Email
Re: What is best way to list Inventory photos without using NetBrowse?
« Reply #4 on: July 23, 2013, 03:49:55 AM »
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.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: What is best way to list Inventory photos without using NetBrowse?
« Reply #5 on: July 23, 2013, 04:44:54 AM »
yeah, I've got plans for a table-less browse, but alas that's not near the top of the list yet.

cheers
Bruce