We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

get html attribute get trouble in some case

Home Forums Puzzles get html attribute get trouble in some case

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #16918
    lamthanhle
    Customer

    Hi Yuri,

    I found the command get html attribute in visual_logic.js does not work in some cases.

    Before: return elem ? elem[attr]: ”; /*This always return empty/null/undefine.*/
    After I change: return elem ? elem.getAttribute(attr): ”; /* It work */

    The problem is that it is lost when I save puzzules.

    Thanks,
    Le
    Btw: I have bought a license, is there any way to link to this account?

    #16926

    Hi Le,

    Could you please attach a minimal project that reproduces this issue?

    I have bought a license, is there any way to link to this account?

    Please send a reply to the license information email and we’ll fix it.

    Chief 3D Verger | LinkedIn | Twitter

    #16955
    lamthanhle
    Customer

    Hi Yuri,

    Pls see the attached sreenshot.

    Tks,

    Info license:
    Name: Nguyen Tuyen
    Email: hoahaithanh@gmail.com
    Company: Hoa Hai Thanh
    Issued: 2019-05-23 09:18AM GMT
    License type: Blender Personal

    #16961

    Try using className instead of class.

    Info license:

    Done!

    Chief 3D Verger | LinkedIn | Twitter

    #16995
    lamthanhle
    Customer

    Hi Yuri,

    puzzles get attribute don’t have className attr and that is just for example one of the cases. Ex: get rel attr return undefined.

    if I can get custom data attributes ?

    Tks,
    Le

    #16997

    puzzles get attribute don’t have className attr

    Yes, this is a bug. Attaching the fixed puzzles runtime.

    get rel attr return undefined

    may be it is not set?

    if I can get custom data attributes ?

    sorry no such thing at the moment. You should use JavaScript in this case

    Attachments:
    You must be logged in to view attached files.

    Chief 3D Verger | LinkedIn | Twitter

    #17001
    lamthanhle
    Customer

    Yes, I used javascript.
    Just tell you to fix bug.

    Thanks Yuri,
    Le

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.