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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:20:22+00:00 2026-05-23T07:20:22+00:00

I am trying to translate this code from Prototype into the same thing in

  • 0

I am trying to translate this code from Prototype into the same thing in Jquery:

$("follow_form").update("<%= escape_javascript(render('users/unfollow')) %>")
$("followers").update('<%= "#{@user.followers.count} followers" %>')
  • 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-23T07:20:22+00:00Added an answer on May 23, 2026 at 7:20 am

    I think you’d want:

    $('#follow_form').html("<%= escape_javascript(render('users/unfollow')) %>");
    $('#followers').html('<%= "#{@user.followers.count} followers" %>');
    

    The Prototype “$” function is a short-cut to “document.getElementById()” (sort-of; it’s a little more complicated on IE). For jQuery, you have to use a CSS-like selector syntax. Then, the “.update()” function in Prototype is for accessing “innerHTML” with some extra cleanup behavior, and jQuery’s “.html()” is similar.

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

Sidebar

Related Questions

I'm trying to translate code from this thread in python: import sys from PyQt4.QtCore
I am trying to translate this piece of code from Java to C# and
i'm trying to translate code from javascript to jquery and i need a little
I'm trying to translate some code from VB.Net to C#, but I've run into
Sometimes I still get stuck trying to translate procedural code into functional code. Is
I have some jquery code which I am trying to translate to YUI. I
I'm coming from C# and trying to translate some of my practices into C++.
how do I translate this code into jython? ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(file
I am trying to translate some code from objective c to unmanaged c++ I
I'm trying to figure out how best to translate this: <Source><properties> .... <name>wer</name> <delay>

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.