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.

Query selector for dropdown not working on mobile

Home Forums Puzzles Query selector for dropdown not working on mobile

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #61965
    Aubrey
    Customer

    I have a on event click querying a class in html and works fine on desktop browsers but it doesnt seem to work on mobile. Anyone have any ideas?

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

    Hi Aubrey,

    Can it be that the mobile version uses some other elements as compared to desktop? fill free to share the link to your app!

    Chief 3D Verger | LinkedIn | Twitter

    #61971
    Aubrey
    Customer

    Hi Yuri,
    My clients site is still behind a login through shopify but I have made a test version with the form elements it uses.

    Test site

    You can see with the cabinet width drop downs that it works fine on desktop browsers but on mobile it doesnt seem to work.

    • This reply was modified 1 year, 7 months ago by Aubrey.
    #61977
    Aubrey
    Customer

    Looks like they arent working at all in chrome either.
    Do you recon triggering the action from querying the class is the reason this isnt working properly everywhere?
    The forms that my client is using do not use ids and the value seems to change quite often if they move things around so I cannot rely on those for identification.
    Classes seems to be the only thing that can stay static.

    #61979
    kdv
    Participant

    You can see with the cabinet width drop downs that it works fine on desktop

    Did you mean these ones?

    And you are using the “click” event to set cabinets’ width?

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #61981
    Aubrey
    Customer

    Thats right, but turns out they dont work in Chrome. Firefox and Safari looks fine though.

    #61982
    kdv
    Participant

    Your are using the wrong event to handle selectors

    You should use the “change” event for selectors

    Why do you replace textures every frame??? You app is really slow and consumes too mush CPU time

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #61984
    Aubrey
    Customer

    Yes, but as stated, the values change to often if they make any change to a previous selector. There is no way to use classes?
    Be good to have a target.class for the getEventProperty.

    #61986
    kdv
    Participant

    the values change to often

    Do you mean these values?

    Why do you change them?

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #61989
    Aubrey
    Customer

    Thats right. That is just a test I was doing.
    Unfortunately for the drop downs querying for the class, change wasnt working.
    It looks like I will have to use values and just correct everytime they make a change wont i?
    I dont change them, the forms change them dynamically every time a change is made. Horrible forms!

    As for the changing textures every frame, that is from a previous way I was doing things that I’m gradually correcting.

    • This reply was modified 1 year, 7 months ago by Aubrey.
    • This reply was modified 1 year, 7 months ago by Aubrey.
    #61992
    kdv
    Participant

    I dont change them, the forms change them dynamically every time a change is made. Horrible forms!

    So those values are not unique ids for chosen selector’s items? The form changes values but class names remain unchanged?

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #61993
    Aubrey
    Customer

    That’s correct

    #61994
    kdv
    Participant

    Well, use JS to read class names

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #61997
    Aubrey
    Customer

    Hmm, doesnt seem to be working.

    Attachments:
    You must be logged in to view attached files.
    #62000
    kdv
    Participant

    Yeap, that code doesn’t work as expected for selectors.

    This one does


    https://v3d.net/bdd

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

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