Announcement

Collapse
No announcement yet.

MsgBox() on our web page

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

  • Jim Doolittle
    replied
    You need to use client-side scripting as opposed to server-side. Typically, VBScript and JavaScript are languages available. Since many HS users are familar with VBScript, I will use it as an example:

    <pre class="ip-ubbcode-code-pre">
    &lt;html&gt;
    &lt;head&gt;
    &lt;title&gt;Get and Show Info Example&lt;/title&gt;
    &lt;/head&gt;

    &lt;body&gt;

    &lt;script language="VBScript"&gt;
    Dim info

    Function GetInfo()
    info = InputBox("Enter info: ")
    End Function

    Sub ShowInfo()
    MsgBox "Info is: " & info
    End Sub

    &lt;/script&gt;

    &lt;form name="form1"&gt;
    &lt;input type="button" value="Get Info" OnClick="GetInfo"&gt;
    &lt;input type="button" value="Show Info" OnClick="ShowInfo"&gt;
    &lt;/form&gt;

    &lt;/body&gt;

    &lt;/html&gt;
    </pre>

    Jim Doolittle

    Leave a comment:


  • Rupp
    replied
    The only way a user is going to be able to enter information would be to prompt the user via a script in a web page or an app that is running on the users machine. Then this information could be sent to HS for processing. Is this what he is desiring to do?

    -Rupp
    Why don't they just make mouse-flavored cat food?

    Leave a comment:


  • Guest's Avatar
    Guest replied
    Rupp,

    Using msgbox or inputbox in a script triggered by an event from the hs web page does not display the box on the computer that triggered the event. The box only shows up on the hs computer.

    My son is working on a script where he'd like the user to be able to input or select open or close within the script. I'm no help.

    Eric

    Leave a comment:


  • Rupp
    replied
    Not sure I'm following your question. Are you wondering how to allow a user to key in a value on a web page to trigger an event?

    -Rupp
    Why don't they just make mouse-flavored cat food?

    Leave a comment:


  • Guest's Avatar
    Guest started a topic MsgBox() on our web page

    MsgBox() on our web page

    Using MsgBox() in a script provides the popup on the Homeseer computer. How do we get the message or input from the user triggering an event from the hs web page? Thanks for any help. Eric
Working...
X