Alpha Video Training
Results 1 to 13 of 13

Thread: "Unable to get property offset left of a blank or null reference." in Mobile TabbedUI

  1. #1
    Member
    Real Name
    Norman K
    Join Date
    Mar 2006
    Posts
    307

    Default "Unable to get property offset left of a blank or null reference." in Mobile TabbedUI

    I'm trying to use a TabbedUI in a mobile application (latest version of AA). I don't have a Home Page displayed, nor do I have Login/Logout links (wouldn't help anyway, those don't seem to work in the mobile format). I have a series of buttons displayed vertically along the left-hand side of the TabbedUI, each of which, when pressed, opens a component. So far so good, however........each component's pane has a "Close" button. If I open, say, three panes, then close the second and third with the close button, everything's fine, the first pane displays. But if I try to close that last remaining pane I am not returned to the menu; rather, it seems that the last pane is cleared (the display is blank except for the title bar) and the TabbedUI essentially freezes. No other pane can be opened. I need to refresh the browser to get the TabbedUI back.

    If I run the TabbedUI in "Live Preview" and try closing the last pane then a javascript error box is displayed with the message in the title (actually, it should be "undefined", not "blank", my error). Am I not setting something correctly in the TabbedUI properties? Has anyone else run into this issue?

    Thanks in advance.

    BTW, I've created a test (very) simple project: One TabbedUI (mobile) and one UX. Start in Live Preview, click the button to open the component in a new pane, then click the close "X"; the same error message is displayed. A ZIP of the test project is attached: DropDownTest.zip
    Last edited by nlk10010; 10-15-2016 at 03:23 PM.

  2. #2
    "Certified" Alphaholic
    Real Name
    Larry Grupido
    Join Date
    May 2010
    Posts
    1,814

    Default Re: "Unable to get property offset left of a blank or null reference." in Mobile TabbedUI

    Tabbed UI's are not very mobile friendly. You say this is a mobile app - but the issue also happens in Live Preview? Does it happen when you open it in a regular browser window also?

    What device are you trying this on?

  3. #3
    "Certified" Alphaholic
    Real Name
    Govindan Gandhi
    Join Date
    Aug 2008
    Location
    New York, NY
    Posts
    4,294

    Default Re: "Unable to get property offset left of a blank or null reference." in Mobile TabbedUI

    i just checked my site on an iPad, the tabbed ui displays alright ( may be not good in smaller devices, also i use different mechanism for my mobile site, not relevant here) i am not sure how you did without a home page. with home page you will not be able to close that. so you will end up left sided menu and the home page to see.
    login/logout works well too with tabbed ui on iPad.
    thanks for reading

    gandhi

    version 11 3381 - 4096
    mysql backend
    http://www.alphawebprogramming.blogspot.com
    ggandhi344@gmail.com
    Skype:ggandhi344@gmail.com
    1 914 924 5171

  4. #4
    Member
    Real Name
    Norman K
    Join Date
    Mar 2006
    Posts
    307

    Default Re: "Unable to get property offset left of a blank or null reference." in Mobile TabbedUI

    Quote Originally Posted by lgrupido View Post
    Tabbed UI's are not very mobile friendly. You say this is a mobile app - but the issue also happens in Live Preview? Does it happen when you open it in a regular browser window also?

    What device are you trying this on?
    Larry: I've tested it on iPad and Chrome and FireFox desktop browsers. The behavior is that if you try to close the only pane open the app does not go back to the menu, the pane remains open but with a blank screen. If you click "Menu" to go back to the menu and try to open any pane (including the one you tried to close) you are returned to the blank pane. Nothing opens. You need to refresh the browser to get it going again.

    I only tried Live Preview to debug it, that's the message that is displayed.

  5. #5
    Member
    Real Name
    Norman K
    Join Date
    Mar 2006
    Posts
    307

    Default Re: "Unable to get property offset left of a blank or null reference." in Mobile TabbedUI

    Quote Originally Posted by GGandhi View Post
    i just checked my site on an iPad, the tabbed ui displays alright ( may be not good in smaller devices, also i use different mechanism for my mobile site, not relevant here) i am not sure how you did without a home page. with home page you will not be able to close that. so you will end up left sided menu and the home page to see.
    login/logout works well too with tabbed ui on iPad.
    Gandhi: I attached a sample app, that should demonstrate the problem. I don't want a Home Page because its much easier for my client to see the buttons when first opening the app, he doesn't want to have to see a Home Page THEN click a button to see the buttons then click the button he wants. I expected that, when I close the last pane, the app would return to the Menu. Home Page is not in play so I never try to close that, just the last pane.

  6. #6
    "Certified" Alphaholic
    Real Name
    Larry Grupido
    Join Date
    May 2010
    Posts
    1,814

    Default Re: "Unable to get property offset left of a blank or null reference." in Mobile TabbedUI

    I'm not able to test your sample app at the moment, but I'll give it a try later today. Perhaps a video showing the issue would help? I'm still not sure I entirely understand what is happening without seeing it.

  7. #7
    Member
    Real Name
    Norman K
    Join Date
    Mar 2006
    Posts
    307

    Default Re: "Unable to get property offset left of a blank or null reference." in Mobile TabbedUI

    Larry:

    I understand, I'll see if I can do that. It is also simple to explain: Create a TabbedUI with the Mobile option, no home page and one component (makes no difference what it does). Then just place a single button on the TabbedUI which displays that component in a pane. Make sure the pane has the "Has Close Button" option checked. Run the TabbedUI, click the button that displays the component in the pane, then try to close the pane with the Close button. The TabbedUI does NOT return to the menu, the pane just blanks out. If you click Menu and then try clicking the button again you'll just get the blank pane.

  8. #8
    "Certified" Alphaholic
    Real Name
    Larry Grupido
    Join Date
    May 2010
    Posts
    1,814

    Default Re: "Unable to get property offset left of a blank or null reference." in Mobile TabbedUI

    OK. I created a mobile TabbedUI and did as you suggest. I too get the offset error. However, if I say to continue running javascript actions, everything DOES continue to work for me.

    I would submit this (with your sample app) as a bug to Alpha to see what they have to say.

  9. #9
    Member
    Real Name
    Norman K
    Join Date
    Mar 2006
    Posts
    307

    Default Re: "Unable to get property offset left of a blank or null reference." in Mobile TabbedUI

    Quote Originally Posted by lgrupido View Post
    OK. I created a mobile TabbedUI and did as you suggest. I too get the offset error. However, if I say to continue running javascript actions, everything DOES continue to work for me.

    I would submit this (with your sample app) as a bug to Alpha to see what they have to say.
    Larry: Thanks for making the effort; are you saying that after you "continue running javascript actions" the pane is actually closed and the menu is displayed? I don't think I went past the error dialog when I ran it in Live Preview, but I know for certain that whether on a tablet or in a desktop browser, the pane is NOT closed.

  10. #10
    "Certified" Alphaholic
    Real Name
    Govindan Gandhi
    Join Date
    Aug 2008
    Location
    New York, NY
    Posts
    4,294

    Default Re: "Unable to get property offset left of a blank or null reference." in Mobile TabbedUI

    sorry, i cannot test the tabbedui with dialog, since it was made with version 12, however here is something for you to try and i will explain at the end as to why.
    i constructed the tabbedui and the dialog as you described and i also checked that the tab pane can close. now go to the dialog since there is only one go all the way to the bottom and and see tab pane javascript open that and look for an event onRemove, in that add this code
    tbiObj,_showMenu(true);
    and test again see if it works.
    i don't think there is a bug. you have called to close the ux but did not call the menu to show. this is not like one leading to other and when the last one dropped off the previous item bubble up.
    since there is only one component that is just easy.
    if there were many components and all have close button then this action should only be active in the last tab pane if that is what you want or just leave it to bring out the menu. there is length property available if i have time i can test that theory for you.

    edit:
    http://screencast.com/t/L8bFBuYjX
    Last edited by GGandhi; 10-19-2016 at 06:23 PM.
    thanks for reading

    gandhi

    version 11 3381 - 4096
    mysql backend
    http://www.alphawebprogramming.blogspot.com
    ggandhi344@gmail.com
    Skype:ggandhi344@gmail.com
    1 914 924 5171

  11. #11
    Member
    Real Name
    Norman K
    Join Date
    Mar 2006
    Posts
    307

    Default Re: "Unable to get property offset left of a blank or null reference." in Mobile TabbedUI

    Quote Originally Posted by GGandhi View Post
    -snip-
    i don't think there is a bug. you have called to close the ux but did not call the menu to show. this is not like one leading to other and when the last one dropped off the previous item bubble up.
    since there is only one component that is just easy.
    if there were many components and all have close button then this action should only be active in the last tab pane if that is what you want or just leave it to bring out the menu. there is length property available if i have time i can test that theory for you.
    Gandhi: I appreciate you trying to help but I don't agree with your statement that this is "logical" behavior. When I attempt to close the last pane I am NOT logically asking to close the entire component; to conclude that you would also be saying that the TabbedUI could not be open unless at least one pane was open, but when you start the TabbedUI it displays the Menu and NO panes. Further, even if I were asking to close the TabbedUI then......the TabbedUI should close, not blank the last pane and refuse to open any components until you refresh.

    What I have done to get around this is, using the "new" TabbedUI JS functions and the before close Tab event, prevent Pane 0 from closing. That seems to be working, if occasionally confusing to the client. :)

  12. #12
    "Certified" Alphaholic
    Real Name
    Govindan Gandhi
    Join Date
    Aug 2008
    Location
    New York, NY
    Posts
    4,294

    Default Re: "Unable to get property offset left of a blank or null reference." in Mobile TabbedUI

    the close button action only calls for the tab pane to close then there is empty tabbed ui component with nothing to show, i just added to call the open menu also. that is the way i think it should work.
    but you say you fixed it, then it is well and good.

    after all said and done, you should be happy and your client should be happy, that is important.
    thanks for reading

    gandhi

    version 11 3381 - 4096
    mysql backend
    http://www.alphawebprogramming.blogspot.com
    ggandhi344@gmail.com
    Skype:ggandhi344@gmail.com
    1 914 924 5171

  13. #13
    Member
    Real Name
    Norman K
    Join Date
    Mar 2006
    Posts
    307

    Default Re: "Unable to get property offset left of a blank or null reference." in Mobile TabbedUI

    I agree, thanks again for posting your solution. I will look at it again; if it's a "better mousetrap" then I may change my code to use that approach.

Similar Threads

  1. Unable to get value of the property 'bind': object is null or undefined
    By dmcgrew in forum Application Server Version 11 - Web/Browser Applications
    Replies: 4
    Last Post: 06-03-2013, 08:47 PM
  2. Unable to get value of the property "length"
    By betty in forum Application Server Version 11 - Web/Browser Applications
    Replies: 1
    Last Post: 12-13-2011, 04:16 PM
  3. Dialog component v11 : Missing the v10.5 feature: "Blank is NULL"
    By gilbertro in forum Application Server Version 11 - Web/Browser Applications
    Replies: 0
    Last Post: 10-25-2011, 03:29 AM
  4. error - "a5.js" and "'this._keys.length' is null or not an object"
    By eritovs in forum Application Server Version 10 - Web/Browser Applications
    Replies: 3
    Last Post: 10-13-2011, 10:12 PM
  5. Ability to Set Default Preference for "Blank is NULL"
    By jon.warner in forum Archived Wishlist
    Replies: 1
    Last Post: 09-10-2010, 06:17 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •