similar to: JavaScript Prompt and link_to_remote

Displaying 20 results from an estimated 4000 matches similar to: "JavaScript Prompt and link_to_remote"

2006 Mar 13
2
How to apply an effect to a link_to_remote :update without using evaluate_remote_response?
Hey all, I''ve been trying to apply a slide-down (or highlight) effect to a "New card" link on my application. Because the item is *new* and I''m simply updating it at the top, I can''t know what the div id is before I make the request. link_to_remote :complete => visual_effect(:slidedown) doesn''t do what I want it to do. My current solution is:
2006 May 09
2
name and class href attribute in a link_to_remote
I have a link to remote and I''m trying to get the name="" and the class="" attribute in the href so the link will come out like this: <a href="action" onclick"ajax(action)" name="Title Of Link" class="someclass"> So far the link looks like this: <% for course in @courses %> <%= link_to_remote
2006 Jan 10
2
Make link_to_remote call redirect current view, not read redirected content
Hello everyone ! I have a link_to_remote which creates a Party from a ContactRequest. The action on the server creates the party, marks the contact request as processed, and then returns a redirect. According to my knowledge of HTTP, that is the correct thing to do. Unfortunately, Prototype is being too clever for me at this time... It follows the redirect, without notifying me. Anybody has
2009 Jul 28
4
RJS-Template and link_to_remote
Hi, I am quite new to rails and can''t use any rjs-templates. The problem is, that he can''t use/find the methods in that template e.g. ''page'' or ''replace_html''. I get an error message on these methods. Here''s what I got so far in my example: Controller: ---- class AjaxTestController < ApplicationController layout
2006 May 20
1
RJS returned javascript written straight to page
hi there, I have in my controller, the following to catch a link_to_remote: def form_part_add_personnel @credit_types = CreditType.find(:all) p = Credit.new() p.id = rand.to_s[2..-1] render :update do |page| page.insert_html :bottom, "script", :partial => ''films/form/personnel'',
2006 Jan 24
17
Updated lighttpd to 1.4.9 - error running dispatch.fcgi
Hi all, I just updated lighttpd from 1.4.8 to 1.4.9 and it now refuses to start with the following error: 2006-01-24 23:12:24: (mod_fastcgi.c.989) execve failed for: public/ dispatch.fcgi No such file or directory 2006-01-24 23:12:24: (mod_fastcgi.c.1015) the fastcgi-backend public/ dispatch.fcgi failed to start: 2006-01-24 23:12:24: (mod_fastcgi.c.1019) child exited with status 2
2006 Jan 14
3
link_to_remote where the url contain a javascript variable
Ok, so I am basically trying to use ''link_to_remote'' and pass the value of a javascript variable as an argument. Something like that: link_to_remote "my_link", :update => ''my_div'', :url => { :action => "my_action", :var => ''my_var'' } Basically,
2005 Mar 06
12
Where to place custom classes?
Hi all, I am writing a simple shopping cart which will consist of a single class. There will be no DB table for carts so I do not want to make my Cart a model. But where do I place my Cart class so that I can access it in my controllers? I want to be able do do things like this (for instance in a shop controller): def add_to_cart @session[''cart''].add(article_id, amount)
2005 Dec 09
0
How to use JavaScript in link_to_remote?
Cheers, I have a form with an input inside that I want to be able to submit by itself (I want to let the user create new tags with this input and use them to tag the whole content that is posted by the rest of the form). I have this layout: <form ...> <input type="text" id="new_tag" /> <%= link_to_remote "Schlüsselwort hinzufügen",:url => {
2006 Apr 18
0
AJAX not displaying - due to action not complete?
Hi everyone, I''ve got a pair of AJAX actions that use slide_up and slide_down to toggle the editing of some info. You first see a table of entitlements for a user. Clicking "Change these" slides that up and then a full table comes down, displaying all possible entitlements for that user. Remove and Add links are next to the appropriate entitlements. When finished, clicking
2006 Jul 14
4
Help with link_to_remote or javascript generator
Hi all, I''m a relative noob to rails so I apologize in advance for asking such a basic question. I am trying to do multiple AJAX calls using the link_to_remote helper or the JavaScript generator update_page. I have googled and read the docs for both, but can''t seem to figure out exactly what i need to do. Say I have the following html: <div
2006 Feb 01
4
Custom view helpers
Hi all, I would like to write some custom helpers like the ones available as form helpers text_field, text_area and the like. My first try was this: custom_helper(obj, meth) ''some_string'' + obj.send(meth) + ''some_other_string'' end Object and method are being passed as symbols like this: custom_helper(:person, :name) and Ruby rightfully complains that
2005 Mar 06
4
has_many and order
Hi all, if I have a has_many and belongs_to relations like this category has many articles article belongs to category is there a way I can specify the order of articles when pulling them up with @some_category.articles ? Many thanks in advance! -- Nicky
2006 Mar 08
2
fade out and then fade in....how to make it work?
I''m trying to have one image fade out and then another slidedown upon completion of the ajax call. I can''t get the timing correct. How do you do it? Here''s what I''m trying (this does not work) <%= link_to_remote(image_tag(url_for_file_column(product, "image_url"), :update => ''right_content'', :url => {
2006 Apr 21
3
rjs in multiple ajax page
Sorry for the long explanation but I''m having trouble integrating rjs into my form page. Here''s my page: <div id="posts"> <ul id="post_list"><%= render :partial => ''list_results'', :collection => @posts %></ul> <p><%= link_to_remote(''+'', :url => {:action =>
2005 Oct 12
2
Help with act_as_nested_set
Hi, I''m trying to get act_as_nested_set working, and I''m puzzled. I googled the following http://codefetch.com/cache?url=http://media.pragprog.com/titles/rails/code/r ails-code.tgz <http://codefetch.com/cache?url=http://media.pragprog.com/titles/rails/code/ rails-code.tgz&path=rails-code/ar/acts_as_nested_set.rb&lang=ruby&qy=ruby>
2006 Apr 26
8
Newbie: Hide div I''ve just show using link_to_remote?
I''m using link_to_remote to show details for an item that''s clicked. I''d like to hide the div with the next click, or alternatively have a "Hide" link within my div. What is the best way to accomplish this? Here''s my existing code: <% for task in @mytasks %> <div class="rowFormat"> <%= link_to_remote(
2006 Jun 01
0
Possible RJS Implementation?
Hi there, I have a question regarding updating elements of a two different divs with one click. I have two lists. One list holds items that are entered into a contest, and the other list holds items that aren''t currently in the contest. One item can only be in one list at a time. Each list has a partial that renders the items with corresponding actions. The items in the current contest
2006 Apr 18
4
update_page yields escaped code in callback
Hi All, The subject pretty well describes what I am experiencing. This line in an .rhtml template: <%= link_to_remote menu_item.humanize, {:update => ''section'', :url =>{:controller => menu_item}, :complete => update_page do |page| page.activate_tab("#{menu_item}_tab", ''menu_'') page[''section''].hide
2006 May 08
2
Associating with different classes
Dear Railers, I am toying with a new project and have a schema design question. I have a tree-like node structure. Each of the nodes will be associated with a single object. This associated object can be of a variety of types. I represent the tree through a Node class which acts_as_tree. Now imagine three other classes--Animals, Fruits and Vegetables. Each node will have an association