B4J Library [ABMaterial] Framework for WebApps

Cableguy

Expert
Licensed User
I have one question and one wish!
Q: is it possible to add a "normal" control to a cell?
W: a login control... I plan to use your framework as interface to my server and I will need user access control...
 

billyrudi

Active Member
Licensed User
Hi AlwaysBusy,
very nice app!!
please attention to the function
AddPage
in Linux it not works if you don't change the backslash like under....

B4X:
public Sub AddPage(Page As ABMPage)
    Pages.Add(Page.Name)
    Page.Title = Title
    Page.Description = Description
    PageNeedsUpload.Add(ABM.WritePageToDisk(Page, File.DirApp  & "/www/" & AppName & "/" & Page.Name & "/", "index.html"))
End Sub
regards Paolo
 

billyrudi

Active Member
Licensed User
hi the AddPage function in linux don't works if you have the slash like \ in the line

File.DirApp & "\www\" & AppName & "\" & Page.Name & "\"

the app
don't start with an error in path not found
 

Cableguy

Expert
Licensed User
I thinks that, if the server has Java capabilities, you can...
The thing is, it cannot be triggered just by accessing www.mysite.com, the index.html page will have to redirect to the webbap entry point.
This has yet not been tested.
 

Cableguy

Expert
Licensed User
I thinks that, if the server has Java capabilities, you can...
The thing is, it cannot be triggered just by accessing www.mysite.com, the index.html page will have to redirect to the webbap entry point.
This has yet not been tested.
I can now confirm that it works... I just uploaded the folder "www" to my hosted webspace, and entered in the address tab "www.tugadroid.net/www/demo" and it started the webapp!!!

for now I just see the ABMaterial in the title tab, and the circular waiting thingy... I have a very slow connection!! So can anyone try to access it from my page above?
 
Last edited:

alwaysbusy

Expert
Licensed User
Your jar file is not running on your webspace I think (Chrome F12 key, log). It is not enough to upload the files to your webspace, your webspace must be capable to run the .jar file (javac.exe -jar ...)

B4X:
WebSocket connection to 'ws://www.tugadroid.net/ws/demo' failed: Error during WebSocket handshake: Unexpected response code: 404
 

Cableguy

Expert
Licensed User
then why do I get the circling waiting ring? isn't he also a part of ABM's?

Ok, so I've been searching my CP and found nothing about java or .jar, I guess I just can't run from my webspace... still, mu raspi based webserver is slowly coming to life!!!
 
Last edited:
Top