B4J Library [WebApp] Generate (jQuery-)UI on demand

derez

Expert
Licensed User
Longtime User
I have succeeded in building a server, combining WS and handlers.
Thank you for the examples Kiffi !
 

tuhatinhvn

Active Member
Licensed User
Longtime User
can you give a simple example (ex: make website with a button and a textbox and a label?? for example??)
 

TomDuncan

Active Member
Licensed User
Longtime User
Has anyone managed to set a textarea with TinyMCE?

I have tried this but it did not work.

B4X:
    TinyM.Initialize(ws,"TinyM")
    TinyM.Resize(x+70, y, 360, 180)


    edtBlog.Initialize(ws,"edtBlog")
    edtBlog.Resize(x+70, y, 360, 180)
    Accordion.AppendElementToSection("edtBlog", 2)
    TinyM.SetAttr("textarea","edtBlog")

Also tested TinyM.SetCSS("selector","edtBlog")
did not work.

Tom
 
Last edited:

little3399

Active Member
Licensed User
Longtime User
HI, Kiffi
I runing your project and demo , but show nothing at the browser ? here was my program , could you help me to see what happend in it ? tks

my JDK version was JDK8 64bit ...


 

Attachments

  • B4JWEBUI.zip
    38.3 KB · Views: 326

TomDuncan

Active Member
Licensed User
Longtime User
Hi Little3399,
Easy fix.
in your wsStart.bas after the myDialog.Resize just add
B4X:
    Log("connected")
   
    myDialog.Initialize(ws, "myDialog", True)
    myDialog.Resize(-1, -1, 600, 519)
    myDialog.Open

The Open will open the Dialog.

Tom
 

micro

Well-Known Member
Licensed User
Longtime User
Hi Kiffi
the image it not loaded and I think that the code is correct:
B4X:
Private Sub WebSocket_Connected (WebSocket1 As WebSocket)

    WS = WebSocket1
   
    Dialogl1.Initialize(WS, "Dialogl1", False)
    Dialogl1.Resize(-1, -1, 1000, 600)
    lab1.Initialize(WS, "lab1")
    lab1.SetTop(2)
    lab1.SetLeft(2)
    lab1.SetText("Prova")
    lab1.AppendTo("Dialogl1")
    Img1.Initialize(WS, "post1_1")
    Img1.AddEvent("load", True)
    Img1.Resize(2, 16, 22, 22)
    Img1.SetImage("C:/Users/Me/Desktop/ProvaWebServ/Files/conn.png")
    Img1.AppendTo("Dialogl1")
   
    WS.Flush

    Dialogl1.Open
   
End Sub
The image is size 22x22 but not displayed, only the box.
See image attached
Thanks
 

Attachments

  • prova.jpg
    13.3 KB · Views: 297

TomDuncan

Active Member
Licensed User
Longtime User
Have not tested that but you will need to have the image in the server directory then just name it Conn.png
Tom
 

javiers

Active Member
Licensed User
Longtime User
Hello, first congratulations for the project.

In the example of GoogleMap, how could add a marker with a custom icon?

Thanks in advance...

Another question, in the example of UIw2uiGrid, how can I get the value of the cell or row and execute instructions with those values by clicking on the cell or row?

Thanks again for your help.
 
Last edited:

micro

Well-Known Member
Licensed User
Longtime User
HI, Kiffi
which is the correct syntax for Uilistbox event change?
B4X:
listboxUi.AddEvent("change", True)
...............
Sub listboxUi_Change
...............
End Sub

but it's never raised

Ok, work
B4X:
Sub listboxUi_Change(Params As Map)
   
End Sub
only that it's raised if clicked on the list, while i thought that it's raised with AddItem
 
Last edited:

billyrudi

Active Member
Licensed User
Longtime User
hi
i have already asked this...
there is someone that is able to rewrite this good job for make jquery ui mobile apps?
tanks Paolo
 

korshkov

Member
Licensed User
Longtime User
Hi to all!
Please help me for resolve situation with get screen dimension for design elements dynamically.
I see all WebApp examples and all UI elements have strong coordinate for placement.
Is this possible?
Thanks!
 

Similar Threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…