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 7825867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T09:11:16+00:00 2026-06-02T09:11:16+00:00

In my rails application, I’ve begun to tinker with AJAX for the first time

  • 0

In my rails application, I’ve begun to tinker with AJAX for the first time and although I have it working wonderfully, it has one unusual behavior: Hitting back or forward after using an AJAX link will give you only the unrendered AJAX-pulled partial in plain text form.

How does one fix this? I can’t find anything on Google pertaining to this particular problem.

  • 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-02T09:11:17+00:00Added an answer on June 2, 2026 at 9:11 am

    For any others with this problem, I found the culprit. There were a couple javascript links on the page with their hrefs set to # which messes with the browser’s history when clicked. Replacing # with javascript:void(0) fixes the problem, giving the expected AJAX history behavior.

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

Sidebar

Related Questions

The Rails application I'm working on, has two central pieces: users and groups. A
I'm working on rails application with postgres db.I have a table called merchant_review_votes where
So in my rails application I have a button_to on one of my pages.
In my new Rails application (it's my first one!) Users can manage their Clients
My Rails application uses STI where I have two different types of Customers. One
My rails application has two models, gallery and photo. Galleries have many photos and
I have two rails application running at different ports. First at 3000 and the
I have a Rails application with the following models: User Bet User has many_bets
I have a rails application where each user has a separate database. (taking Joel
I have a Rails application, I have the following DB schema: each User has

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.