B4J Question [WebApp] about the jQueryelement server round trip

alwaysbusy

Expert
Licensed User
Longtime User
I know to get values from the client we use Futures to decrease the roundtripping to the server. But how about setting properties?

e.g.
B4X:
   Dim ft2 As Future = text2.GetVal
   Dim ft1 As Future = text1.GetVal
   
   Result.SetText("The result is: " & (ft1.Value + ft2.Value))
   Result.SetProp("class", "myclass")
   Result.SetProp("readonly", "false")
   Result.SetProp("style", "backcolor: #FF0000")
   Result.SetProp("hascursor", "false")

Do the 5 SetText() + SetProp() calls result in 5 server round trips? If so is there a similar 'future' like object we need to use in this case?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0
Top