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

  • Home
  • SEARCH
  • 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 8263899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T04:15:51+00:00 2026-06-08T04:15:51+00:00

I am developing a small web application using Ruby, Sinatra & HAML. The scenario

  • 0

I am developing a small web application using Ruby, Sinatra & HAML.

The scenario I am struggling with at the moment is something that I used to solve in PHP using Ajax and Javascript, and am not sure how to best go about doing it in Ruby (what the best practice would be, if there is a more optimized way of approaching this).

I have a screen as follows:

Mockup

What I wish to happen is that when a user clicks on one of the buttons (for example Show most popular), the system calls a function which queries the database to get the relevant records and re-populates the ‘Entries’ box with the appropriate records. I want to do this without the rest of the page re-loading or anything else being effected, just the ‘Entries’ box. Bonus – If I can show a little “LOADING” spiral while the data is being fetched.

My research led me to gem known as “typhoeus” which I found to be really great, but am not sure if it applies in this scenario (or how to implement it if it does).

Any kind of help would be greatly appreciated.

Much obliged.

  • 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-06-08T04:15:53+00:00Added an answer on June 8, 2026 at 4:15 am

    It seems like pjax is what you would be looking for.

    https://github.com/defunkt/jquery-pjax/tree/heroku

    The author uses Sinatra in his example app. Though he does use erb, I am sure that it wouldn’t cause any problems if you switched the template engine to haml

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

Sidebar

Related Questions

I am developing a small web application optimized for iPad (using mainly javascript &
I have been developing a small application in Python using the Web.py framework that
I'm developing a small web application using Microsoft Silverlight 3. I'm using Microsoft Expressin
I am developing a small web application using cherrypy and I would like to
I'm developing a small web application in ASP.Net (framework version 3.5) using VS2008 and
I'm developing bunch of relatively small Spring based java web-application. I'm mostly using annotations
I am developing a small web application that uses jquery's drag and drop. Problem
Greetings, Currently developing small web service application where response from web service (using CXF
I'm developing a web application using Compojure and I would hugely appreciate a small
I am developing a small web app that should receive emails from users, using

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.