Git Product home page Git Product logo

Comments (13)

stonners avatar stonners commented on July 17, 2024

this.bind is just a test like found in other issues but doesn't work

from highway.

ThaoD5 avatar ThaoD5 commented on July 17, 2024

Hello @stonners what exactly are you trying to achieve, or expect to happen ?

from highway.

stonners avatar stonners commented on July 17, 2024

I expect that when I press my button to add new items, highway takes into account the new href and therefore that the links remain internal, without reloading

from highway.

ThaoD5 avatar ThaoD5 commented on July 17, 2024

Have you console.logged your ctx array and compared the items in it ? Are there "new" items in the array ?

from highway.

stonners avatar stonners commented on July 17, 2024

yeah, it s a node list and i have my news items in

from highway.

ThaoD5 avatar ThaoD5 commented on July 17, 2024

A live demo with console logs would be useful here, could you provide that. ?

from highway.

stonners avatar stonners commented on July 17, 2024

I display 6 items at a time, and I can clearly see the new items, but i think highway dont attach my new href

Capture dโ€™eฬcran 2021-06-08 aฬ€ 11 20 47

from highway.

ThaoD5 avatar ThaoD5 commented on July 17, 2024

What's the forEach for ?

from highway.

stonners avatar stonners commented on July 17, 2024

what foreach?

from highway.

stonners avatar stonners commented on July 17, 2024

it's just a structure, they are containers and in the containers, I have with divs in them

from highway.

ThaoD5 avatar ThaoD5 commented on July 17, 2024

On the object.values

from highway.

ThaoD5 avatar ThaoD5 commented on July 17, 2024

I think your issue might come from there, you're looping too much on the new link elements you added

from highway.

ThaoD5 avatar ThaoD5 commented on July 17, 2024

I would advise you to just do the querySelector on the document + bind once on the ajax update event you have, that should do the trick.

from highway.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.