Results 1 to 10 of 31

Thread: Request Lua Variable from Webserver

Hybrid View

  1. #1
    Join Date
    May 2001
    Posts
    697

    Default Request Lua Variable from Webserver

    I use the following to send events to webserver ajax_sendevent.lhtml?event=digitalout&device=232

    how would i request a variable like that in the scripting html example

    scripting.lhtml

    would this work

    ajax_scripting.lhtml?variable=_VERSION

    The variable would then be returned in the webpage

    Thanks
    Last edited by rickd; August 11th, 2011 at 10:10 PM.
    Rickd

  2. #2
    Join Date
    May 2001
    Posts
    697

    Default

    ajaxreq.lhtml?Data=_VERSION

    This works now i can get any variable back nice
    Rickd

  3. #3
    Join Date
    Jul 2007
    Location
    Netherlands
    Posts
    370

    Default

    Here's some other code that might help
    Using: Win7 MCE, Girder, xPL, RFXcom, HomeEasy

    http://www.thijsschreijer.nl

  4. #4
    Join Date
    May 2001
    Posts
    697

    Default Can code enable update variable ongoinf

    This code looksninteresting ...so currently to get an update I have to request the lua variable using the http request this then returns data to irule.
    How can I make the variable be updated and pushed from girder via apolling approach?

    Will this code enable this update without any chAnge on client side or need for http request to b pushed from client first
    Last edited by rickd; August 17th, 2011 at 07:28 PM.
    Rickd

  5. #5
    Join Date
    Oct 2005
    Posts
    307

    Default

    HTTP servers function via client requests, so there is no way to push data to a HTTP client without a request. To allow Girder to push updates to iRule, iRule would need to support something like a TCP connection or receive UDP broadcast.

  6. #6
    Join Date
    May 2001
    Posts
    697

    Default How to use tcp

    Ok thanks that is what I thought ....so is there a simple tcp example showing data output out of a port. I just want to send simple text from a port irule can b configured to listen to that ip address and port.

    So I need code to setup port to send data out that port as this will enable girder to push updates to irule

    Thanks in advance
    Rickd

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •