Page 1 of 1

[Done] SB 3.20 beta 2 (W11)

Posted: Wed Dec 17, 2025 4:44 pm
by bembulak
Hello,

based on that thread (viewtopic.php?p=11441#p11441), I've been testing some mobileUI stuff and have some strange behaviour:

MobileUI.sb Example (from examples folder):

Compiles, but shows no output / UI or Error in SB-Debugger (not in the IDE, nor in the browser). Just the blueish background-window.
Browser Dev Tools states:

Code: Select all

Uncaught (in promise) DOMException: Node.appendChild: The new child is an ancestor of the parent
    <anonymous> http://127.0.0.1:9081/spiderbasic/libraries/javascript/onsenui.min.js:1
    Yt http://127.0.0.1:9081/spiderbasic/libraries/javascript/onsenui.min.js:11
    value http://127.0.0.1:9081/spiderbasic/libraries/javascript/onsenui.min.js:11
    value http://127.0.0.1:9081/spiderbasic/libraries/javascript/onsenui.min.js:11
    value http://127.0.0.1:9081/spiderbasic/libraries/javascript/onsenui.min.js:11
    s http://127.0.0.1:9081/spiderbasic/libraries/javascript/onsenui.min.js:11
    value http://127.0.0.1:9081/spiderbasic/libraries/javascript/onsenui.min.js:11
    ready http://127.0.0.1:9081/spiderbasic/libraries/javascript/onsenui.min.js:11
    value http://127.0.0.1:9081/spiderbasic/libraries/javascript/onsenui.min.js:11
    Tt http://127.0.0.1:9081/spiderbasic/libraries/javascript/onsenui.min.js:11
    Tt http://127.0.0.1:9081/spiderbasic/libraries/javascript/onsenui.min.js:11
    It http://127.0.0.1:9081/spiderbasic/libraries/javascript/onsenui.min.js:11
    f http://127.0.0.1:9081/spiderbasic/libraries/javascript/onsenui.min.js:11
    p http://127.0.0.1:9081/spiderbasic/libraries/javascript/onsenui.min.js:11
    r http://127.0.0.1:9081/spiderbasic/libraries/javascript/onsenui.min.js:11
onsenui.min.js:1:19507

Example from ListMobile() from Help file / documentation
The Example code is this:

Code: Select all

  If ContainerMobile(#PB_Any, #PB_Mobile_Page)
    ListMobile(0)
    AddListMobileItem(0, "Header", #PB_Mobile_Header)
    AddListMobileItem(0, "Basic item")
    AddListMobileItem(0, "Basic item 2")
    
    ; List item with a container With 3 placeholder: left, center, right
    If AddListMobileItem(0, "Hello", #PB_Mobile_Container)
      TextMobile(#PB_Any, "PopOver", #PB_Mobile_Left)
      ButtonMobile(1, "Open PopOver !", #PB_Mobile_Center)
      SwitchMobile(2, #PB_Mobile_Right)
      CloseMobileContainer() ; Important to close the container once the item have been added
    EndIf
    
    AddListMobileItem(0, "Another title", #PB_Mobile_Header)
    AddListMobileItem(0, "Chevron", #PB_Mobile_Chevron | #PB_Mobile_Tappable)
    
    ; Expandable list item 
    If AddListMobileItem(0, "Expandable", #PB_Mobile_Expandable)
      ButtonMobile(1, "Hidden button !")
      CloseMobileContainer() ; Important to close the container once the item have been added
    EndIf
    
    CloseMobileContainer()
  EndIf
The compilation does not show the item 'Hello' with it's children (TextMobile/ButtonMobile - "PopOver").
In the IDE:
Image
No messages in Debug-Window or Browsers-Dev Tools.

Re: SB 3.20 beta 2 (W11)

Posted: Tue Dec 30, 2025 7:00 pm
by bembulak
Same with MacOS 14.7.5, Sonoma on Intel.

Re: SB 3.20 beta 2 (W11)

Posted: Mon Jan 05, 2026 4:45 pm
by Fred
Fixed, thanks.