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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:40:37+00:00 2026-05-20T10:40:37+00:00

How create a link_to_remote in a jQuery script where url need a parameter that

  • 0

How create a link_to_remote in a jQuery script where url need a parameter that is a javascript variable.

I need create a link_to_remote in pure jQuery.

Thanks in advance

  • 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-20T10:40:37+00:00Added an answer on May 20, 2026 at 10:40 am

    You’ll want to use the :with parameter with link_to_remote:

    link_to_remote( args[:title], 
                        :update => args[:update],
                        :url => { :action => args[:action], 
                          :id => id, 
                          :starting => args[:starting] 
                        },
                        :with => "'filter[viewer_id]=' + $('filter_viewer_id').value",
                        :loading => "Element.hide('#{args[:update]}');Element.show('#{args[:loading]}')",
                        :complete => "Element.show('#{args[:update]}');Element.hide('#{args[:loading]}')" )
    

    Notice how I am sending the filter_viewer_id by getting it’s value from a form field with jQuery. If you don’t need that level of detail, just pass the name of your javascript variable.

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

Sidebar

Related Questions

In ASP.NET MVC, I'm trying to create a link that includes an anchor tag
I need to create an ODBC link from an Access 2003 (Jet) database to
In my asp.net mvc page I create a link that renders as followed: http://localhost:3035/Formula/OverView?colorId=349405&paintCode=744&name=BRILLANT%20SILVER&formulaId=570230
I have a link that I dynamically create which looks something like the following:
i have this code that should create a dialog with the page google inside
I am using this jQuery menu script: (function($) { $.fn.blowfish = function() { //
I have the following form <form name=myForm id=myForm method=post enctype=multipart/form-data action=script.php> and this jQuery
I notice in several API's, that you may create a struct which is used
I need to create simple toobar (divs and uls) with few anchors and few
I'm trying to dynamically add elements to a Cakephp form: <?php echo $javascript->link('jquery',false); ?>

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.