B4J Question GetElementById on a apache server

Discussion in 'B4J Questions' started by Stephan Leith, Apr 7, 2015.

  1. Stephan Leith

    Stephan Leith Member Licensed User

    is it posible to do GetElementById on a apache server running on the same raspberry ?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    I'm not sure that I understand the question. Are you referring to JavaScript GetElementById? How is it related to the web server?
     
  3. rwblinn

    rwblinn Well-Known Member Licensed User

    Same applies for me = not sure I understand the question.

    But in principle for using GetElementById, create a B4J Server App with a WebSocket. GetElementById is described here, for that.

    An example project download here = WebApp adding a button Dynamically.

    Note:
    • You do not need Apache to be setup on the Raspberry Pi, as B4J Servers run autarkic = just run java -jar yourapp.jar, then access via browser with HostAddress : Port. In the latest Raspian versions, Java is by default installed.
    • B4J Server Apps run very well on Raspberry Pi's (based on my experience so far with several apps running for monthes on various Pi's)
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice