get html attribute get trouble in some case

Home Forums Puzzles get html attribute get trouble in some case

This topic contains 6 replies, has 2 voices, and was last updated by Avatar lamthanhle 3 days, 23 hours ago.

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

    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
    Yuri Kovelenov
    Yuri Kovelenov
    Developer

    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.

    Founder & CEO at Soft8Soft
    LinkedIn | FB | Twitter | VK | 新浪微博

    #16955
    Avatar
    lamthanhle
    Licensee

    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

    Attachments:
    You must be logged in to view attached files.
    #16961
    Yuri Kovelenov
    Yuri Kovelenov
    Developer

    Try using className instead of class.

    Info license:

    Done!

    Founder & CEO at Soft8Soft
    LinkedIn | FB | Twitter | VK | 新浪微博

    #16995
    Avatar
    lamthanhle
    Licensee

    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

    • This reply was modified 4 days, 5 hours ago by Avatar lamthanhle.
    #16997
    Yuri Kovelenov
    Yuri Kovelenov
    Developer

    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.

    Founder & CEO at Soft8Soft
    LinkedIn | FB | Twitter | VK | 新浪微博

    #17001
    Avatar
    lamthanhle
    Licensee

    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.