[Done] SB 3.20 beta 2 (W11)

Found an issue in SpiderBasic ? Please report it here !
User avatar
bembulak
Posts: 113
Joined: Wed Feb 26, 2014 9:53 am

[Done] SB 3.20 beta 2 (W11)

Post 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.
Kind regards, bembulak

SpiderBasic 3.20 beta 2 on Win11, Intel Mac, MX Linux

https://github.com/selfteaching/How-To- ... -Smart-Way
User avatar
bembulak
Posts: 113
Joined: Wed Feb 26, 2014 9:53 am

Re: SB 3.20 beta 2 (W11)

Post by bembulak »

Same with MacOS 14.7.5, Sonoma on Intel.
Kind regards, bembulak

SpiderBasic 3.20 beta 2 on Win11, Intel Mac, MX Linux

https://github.com/selfteaching/How-To- ... -Smart-Way
Fred
Site Admin
Posts: 1854
Joined: Mon Feb 24, 2014 10:51 am

Re: SB 3.20 beta 2 (W11)

Post by Fred »

Fixed, thanks.
Post Reply