Advertisement

08.28.2007 at 03:07PM PDT, ID: 22792938
[x]
Attachment Details

Rails link_to_remote

Asked by isuhendro in Ruby Scripting Language

Tags: link_to_remote, rails

Dear experts,

In RoR there is a function called
link_to_remote(name, options = {}, html_options = {})

where we can write an AJAX link.

This is the example for Rails API
  link_to_remote word,
    :url => { :action => "undo", :n => word_counter },
    :complete => "undoRequestCompleted(request)"

My problem is how to embed a stylesheet parameter inside link_to_remote?
In this case i would like to add a kind of style.display = 'none', so that the link become INVISIBLE.

Thanks in advance.Start Free Trial
[+][-]08.28.2007 at 11:30PM PDT, ID: 19789140

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Ruby Scripting Language
Tags: link_to_remote, rails
Sign Up Now!
Solution Provided By: Gertone
Participating Experts: 1
Solution Grade: B
 
 
[+][-]08.30.2007 at 09:51PM PDT, ID: 19806004

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.31.2007 at 08:09PM PDT, ID: 19812432

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628