Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7435807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:08:14+00:00 2026-05-29T10:08:14+00:00

We are using the jQuery vTicker plug-in for a scrolling news feed on the

  • 0

We are using the jQuery vTicker plug-in for a scrolling news feed on the Home page of our Rails app.

How would we go about using this

$('.micropostclass').vTicker({
speed: 500,
pause: 3000,
showItems: 3,
animation: 'fade',
mousePause: false,
height: 0,
direction: 'up'
})

We want to display in the jQuery vTicker our microposts from the micropost table of our database, and these microposts will be displayed in the scrolling vTicker feed on the Home page.

How do we implement this jQuery plug-in, and how do we set up our Micropost class/model or controller to work seamlessly with vTicker?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T10:08:15+00:00Added an answer on May 29, 2026 at 10:08 am

    According to vTicker’s example, it’s simply an div containing an unordered list. So somewhere in the view:

    <div class="micropostclass">
      <ul>
        <% Micropost.all.each do |mp| %>
          <li><%= mp.whatever_attr_is_content_for_the_object %></li>
        <% end %>      
      </ul>
    </div>
    

    Semantically speaking, I don’t like a Model call in the view (Micropost.all), so I’d recommend setting the collection (@microposts) in the controller and using it instead ex: @microposts.each do …

    Note, this will put ALL of your micropost records in the html element and it will tick, but the content is static meaning you’re not going to get new posts in there unless the page is refreshed. Furthermore, that list might also be quite large and will cause some performance issues.

    If you’re looking for functionality that will tick in realtime, you’ll have to publish and subscribe to real-time events. This railscast covers that topic. I’m also assuming there’s some alternative tickers out there that could handle this automagically, I just don’t know what they are. Good luck.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using a jquery plugin on my page, vTicker , for easy and simple
Using jQuery how would I find/extract the Spartan string if the outputted HTML page
Using JQuery how would I make the page dim / fade and display a
Using jQuery and given this <ul> <li> <a external=http://stackoverflow.com href=home.htm>Link 1</a> </li> <li> <a
Using jQuery, how would you find elements which have a particular style (eg: float:
Using jquery how do i simply check if it is read only? this is
Using JQuery, how would I call a JSONP API that required basic authentication? Can
Using JQuery animate I would like to operate with css classes, defined somewhere in
Using jQuery 1.7.2 $(function(){ $('#parentElem').mouseenter(function(){ $('.myElem').animate({opacity:1}, 'fast'); }).mouseleave(function(){ $('.myElem').stop().animate{opacity:0}, 'slow'); }); }); In this
Using jQuery 1.5.1 Tried this block of code in: head section as well as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.