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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:18:45+00:00 2026-05-25T15:18:45+00:00

I have a wall that shows messages from users in two columns. Each message

  • 0

I have a wall that shows messages from users in two columns. Each message is a div box.
I have given the id of each box the id of the message.

When a user clicks edit for a message a form should be place on the page using Ajax.

The form is as wide as the two message columns.

If a user edits a message that is on the left column I can insert the form before this message to the left.

However if the message is on the right I need to insert the form at the beginning of the left message and above it.

How can I do this using jquery?

Rails 3 js.erb

  • 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-25T15:18:46+00:00Added an answer on May 25, 2026 at 3:18 pm

    Maybe I miss something but if you know the id of the left message you can easily use

    $('#edit_link').click(function() {
        $.ajax({
            url: "/getyourform",
            success: function(data) {
                $('#left_message_id').before(data);
            }
        });
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Makefile that looks like this CXX = g++ -O2 -Wall all:
hello all i want to retrieve my all the wall post that i have
i have a wall on each profile, and i wish to make it smarter,
I have an app and I am able to post to a user's wall
I have used -Wall -Werror in my Makefile but I want to disable following
I am working on a problem and got stuck at a wall I have
I'm trying to do a cross domain POST request and have hit a wall
I have been banging my head against the wall with this odd behaviour on
I have been pounding my head against a wall trying to figure out what
I have been banging my head on a wall with this one. I need

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.