in Education by
I am building a basic RSS reader app that, which the 'story' is clicked, the information for it is displayed in a modal view. The 'stories' or RSS feed items are displayed in a row that scrolls. The problem I am having is, the elements that will respond to JS event (such as hover) stop firing at a certain point in the DOM chain of nested div elements. In more detail: My rails app outputs markup that resembles this:
">
<%= entry.title %>
<%= entry.published.strftime("Posted on %m/%d/%Y") %> <%= entry.url %>
<%= entry.summary %>
... repeats ...
The problem now is this - I have stored important data within feed-item-container element in which I want to extract using jQuery on a simple click event. The problem is, a JS click/hover events stop responding below the feed-row element, leaving me unable to access any individual feed-item-containers - i.e. this works: $('.feed-row').hover(... console.log('Works!');); but this will not: $('.feed-item-container').hover(... console.log('Does Not Work!'); Or another way: - overscroll
<!-- TITLE Clipped -->
<!-- DATE Clipped --> <!-- URL Clipped -->
<!-- CONTENT Clipped -->
<!-- Repeated RSS Items were here -->
So, my question is this: Why can't I click anything below feed-row in the nesting tree, and how do I approach fixing this? Many thanks Edit #1 While I was typing up my pseudo jQuery calls, I left out the class period, but they do exist in my actual script, just a typo on my part... apologies JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
I'm guessing since this is an RSS feed, this data is loaded dynamically? If so, consider wiring these events with jQuery's on $(".overscroll").on("hover", ".feed-item-container", function() { }); Or if you're using a jQuery version < 1.7, use delegate $(".overscroll").delegate(".feed-item-container", "hover", function() { });

Related questions

0 votes
    What I'm trying to achieve is a list of links with some separate divs. at the moment the fading ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 19, 2022 in Education by JackTerrance
0 votes
    What I'm trying to achieve is a list of links with some separate divs. at the moment the fading ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 19, 2022 in Education by JackTerrance
0 votes
    What I'm trying to achieve is a list of links with some separate divs. at the moment the fading ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 19, 2022 in Education by JackTerrance
0 votes
    i have an array of objects in [ { "country": "USA", "payment": [ { "paymentType": "Visa" ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 6, 2022 in Education by JackTerrance
0 votes
    Title tag is nested within the ………………….. Tag. ? Select the correct answer from above options...
asked Nov 27, 2021 in Education by JackTerrance
0 votes
    Trying to use ES6 but I'm stuck on something. To make it simple there is two problems : JS ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 17, 2022 in Education by JackTerrance
0 votes
    I was unable to find a solution that is identical with the issue I am trying to solve. If is a ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 24, 2022 in Education by JackTerrance
0 votes
    I was unable to find a solution that is identical with the issue I am trying to solve. If is a ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 23, 2022 in Education by JackTerrance
0 votes
    This is my object. values : { title : 'this is title ..', translate : { en : 'some texts ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 3, 2022 in Education by JackTerrance
0 votes
    This is my object. values : { title : 'this is title ..', translate : { en : 'some texts ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 3, 2022 in Education by JackTerrance
0 votes
    I have a auto complete box set up. however when a user types in the box a list of every single ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    I have a auto complete box set up. however when a user types in the box a list of every single ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    I'm trying to capture the event of opening and closing the bootstrap accordion, but with the typescript the ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 9, 2022 in Education by JackTerrance
0 votes
    I want to store in a queue, datastructure does not matter, only the elements that I have inserted within ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 26, 2022 in Education by JackTerrance
0 votes
    I'm builtin an web resume-generator to learn how to develop for web. I've made a HTML form which ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 9, 2022 in Education by JackTerrance
...