Announcement

Collapse
No announcement yet.

Displaying multiple ASP 'pages'

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Displaying multiple ASP 'pages'

    I have developed multiple asp pages that show different 'areas' of my HA system. Now, I'd like to display all of these multiple pages in a single page - for example:

    systemInformation.asp - this outputs only a table of uptime, versions, etc. There's no <html> tags - just <table> tags.

    tempSensors.asp - only displays temp sensor information in a table. No <html> tags - just outputs a <table>

    callerId.asp - same thing - outputs just a table of callerId.

    Separately, these tables look great, now I need a single page that looks kinda like this:
    -----------------------------------------------
    Standard HomeSeer header/links

    systemInformation.asp tempSensors.asp

    callerId.asp whatever.asp

    footer
    -----------------------------------------------

    Later, I can write just little asps that output tables and just insert them into a table area for the main page.

    So, I guess my question is: How do I display multiple asp outputs into a single page?

    Thanks!

    Rob Mason
    HS4Pro Running on a Raspberry Pi4
    72 Z-Wave Nodes, 111 Events, 422 Devices
    Z-Wave, UPB, WiFi
    Plugins: EasyTrigger, weatherXML, OMNI, Z-Wave, Tuya, Device History
    HSTouch Clients: 3 Android, 1 Joggler

    #2
    Simply combine the code from the 3 asp pages into one. You will probably have to do some formatting of the 3 tables but it should be as easy as cutting and pasting the code from the three pages into one.

    -Rupp
    -Rupp
    sigpic

    Comment


      #3
      <table>
      <tr>
      <td><!-- #include file="systemInformation.asp"--></td>
      <td><!-- #include file="tempSensors.asp"--></td>
      </tr>
      <tr>
      <td><!-- #include file="callerId.asp"--></td>
      <td><!-- #include file="whatever.asp"--></td>
      </tr>
      </table>


      Paul

      Comment


        #4
        Why Paul, that's *much* too complicated!

        I'll try it out tonight...

        Rob Mason
        HS4Pro Running on a Raspberry Pi4
        72 Z-Wave Nodes, 111 Events, 422 Devices
        Z-Wave, UPB, WiFi
        Plugins: EasyTrigger, weatherXML, OMNI, Z-Wave, Tuya, Device History
        HSTouch Clients: 3 Android, 1 Joggler

        Comment


          #5
          Thanks, Paul - that worked great...

          Rupp - you're right, I could just paste them all into a single .asp, but I'm trying to keep the sections in separate modules. Also, I'm going to try and make the main page smart enough to select the correct section if the request came from one of my audreys - but thanks, though!

          Rob

          Rob Mason
          HS4Pro Running on a Raspberry Pi4
          72 Z-Wave Nodes, 111 Events, 422 Devices
          Z-Wave, UPB, WiFi
          Plugins: EasyTrigger, weatherXML, OMNI, Z-Wave, Tuya, Device History
          HSTouch Clients: 3 Android, 1 Joggler

          Comment


            #6
            I wasn't thinking out side the box. Pauls approach was an excellent idea.

            -Rupp
            -Rupp
            sigpic

            Comment

            Working...
            X