banano

  1. alwaysbusy

    B4J Tutorial [BANano] inline php -> server code

    Peter had a great idea for a new feature in BANano: I liked it! He had already written out the ground rules so we only needed a couple of mails to get on the same page. As a result BANano 1.27 has a PHP connection (we plan support for .asp(x), CGI, python, ... later). A note beforehand: It is...
  2. Mashiane

    B4J Question [BANano]: [SOLVED] How can I AddJavaScript & AddCSSFile based on demand?

    Hi there Depending on what component I might need on my app, I'd like to AddJavaScriptFile & AddCSSFile on demand. For example, in a particular page I need a FlowChart and only want to load the flowchart as and when needed? Is this possible or will it be possible in future versions? Thank you.
  3. Mashiane

    B4J Question [BANano] [SOLVED] BANanoMaterial - Please help with an error fix

    Hi there I'm exploring the new BANano framework and have ran into an error I cannot fix. I have included the source code of the project here so long. I know I can perhaps define the enumerations inside a module but rather would like the approach to use classes instead. The issue is the...
  4. Mashiane

    Wish [BANano] [SOLVED]- 1.21 Enumeration Initialization Assignments

    Hi there I have defined a class to hold some enumeration values, below is one of them #IgnoreWarnings:12 'create a COLOR class Sub Class_Globals Public AMBER As String Public BLACK As String Public BLUE As String Public BLUEGREY As String Public BROWN As String...
  5. Mashiane

    Bug? [BANano] [SOLVED] - 1.21 'Else If' Transpiling Error

    Hi there... B4J Code Sub GetCssStyle(styleName As String) As String If styleName.StartsWith("@") Then else If styleName.StartsWith("#") Then else If styleName.StartsWith(".") Then Else styleName = "." & styleName End If Return CSSRule.Get(styleName) End Sub...
  6. Mashiane

    Wish [BANano] [SOLVED]- 1.21 Map Object Enhancements

    Hi there The B4J Map object has two properties 1. Keys 2. Values Just learned the hard way that, the BANano map.Keys values returns the actual map object whilst the Values returns an error. If these might not work as expected, perhaps the logs should reflect an error that one should use...
  7. Mashiane

    B4J Question [BANano]: [SOLVED] Using / Converting Own B4J Classes

    Hi there Some time ago I created some base classes that I'm using for anything webapp programming I'm doing inclusive of the ABM things I did. These classes I have also used for the custom components in ABM. I posted these here many moons ago. Seeing that BaNano is an interesting concept I'd...
  8. Mashiane

    B4J Question [BANano] [SOLVED] Ajax Calls: How to Convert B4J Http Calls?

    Hi there I have'nt used this yet, i'm curious about your ajax calls. This is my case scenario. 1. GetAccessToken - I save the retrieved access token to a file. I can save this to localstorage in this case using BANano I think. 2. Used the saved access token to return other data from the rest...
  9. Kiffi

    B4J Question [BANano] {anycommand} is not supported in BANanoElement

    Hello, with this simple code-snippet... Sub GetElement(ID As String) As BANanoElement ID = ID.ToLowerCase Return BANano.GetElement(ID) End Sub ... i get the following Error: Thanks in advance & Greetings ... Peter
  10. Kiffi

    B4J Question [BANano] (Render)Append returns the wrong BANanoElement?

    Hello, i'm not sure if this is a bug: Dim myBANanoElement As BANanoElement myBANanoElement = BANano.GetElement("body") Log(myBANanoElement) ' -> body-Element (correct) myBANanoElement = BANano.GetElement("body").Append($"<div></div>"$) Log(myBANanoElement) ' -> also body-Element...
Top