banano

  1. Mashiane

    B4J Question [BANano] [SOLVED] Map.IsInitialized Inclusion on map keys

    Hi there I was just cleaning my project and removed all .clear methods for my maps as I noted in the transpiled code that clearing them was not necessary due to to .initialize method just after 'dim m as map', thing is this has resulted in something else. This is what happens... When maps are...
  2. Mashiane

    B4J Question [BANano]: [SOLVED] How to transverse elements by name and return attributes?

    Hi there I'm trying to transverse some form elements by name, the example here gets all the inputs by a particular name e.g. category. This returns the two expected elements. In the future i'd like to serialize these without them having to be inside a 'form' tag. Issues: One of the elements is...
  3. Mashiane

    B4J Question [BANano]: [SOLVED] how to maintain element events?

    Hi there I'm struggling with some element events, please if one can, can they explain the following for more clarity on my side? Thanks 1. I'd like to delete all existing events for an element and re-assign others, how can I do so? 2. The method below, does it replace the 'click' event for...
  4. 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...
  5. 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.
  6. 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...
  7. 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...
  8. 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...
  9. 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...
  10. 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...
  11. 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...
  12. 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
  13. 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