similar to: Problem with remote updates

Displaying 20 results from an estimated 6000 matches similar to: "Problem with remote updates"

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 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 Jun 13
1
AJAX based record deletion
Hi, New to RoR and I just wanted to check the correct process flow for this... I presently have a controller action: def destroy_category_association category = CatalogueCategory.find(params[:id]) product = Product.find(params[:product_id]) product.catalogue_categories.delete(category) end I display a list of categories assigned to a product, some of which I may wish to delete
2006 Jun 22
1
fade and appear effects
i have a box of content on my site that i would like to fade out, load new content and then fade back in with the new content. i tried something like this: <%= link_to_remote(image_tag(url_for_file_column(''project'', ''image'')), :update => ''project-info'', :before => "new
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
2006 Apr 30
0
Using a DIV or SPAN for a content_tag (link_to_remote)
I was wondering if there was an easy way to over ride the <a> tag that is used as the content_tag() value when using link_to_remote(), perhaps using a SPAN or DIV. I see follow the chain in the source code and I guess I could write my own helper, but I was wondering if there was a way to do this already? I know already that SPAN''s and DIV''s are not supported
2006 Aug 02
0
"RJS Error: TypeError: $(element) has no properties"
i have lots of divs, which are added via link_to_remote. now i want to delete them with a link_to_remote button for each. i am giving them ids with the same name and a serialized number. when trying to access them with javascript/rjs, strange things happen: "RJS Error: TypeError: $(element) has no properties?. is this a rails, rjs or prototype bug? or am i missing something? see my code
2006 May 30
4
Hide parent element
I have some code that calls a partial to display one or more blocks within a div tag. I want to have a close button (or cancel link) that will fade that block but leave the others. Here is the code: LINK: <%= link_to_remote "Add Miscellaneous Link", :url => { :action => :add_iyc_link } %> add_iyc_link.rjs: page.insert_html :bottom, ''links'', :partial
2006 Jun 24
6
Ajax fade effect
I have a list of categories, when I delete one of them, I want that item to fade and then get removed. So I do the following: 1. home_controller: def delete @category = Category.find_by_name(params[:name]) @element_id = @category.name Category.delete_all(["name = ?", @category.name]) end 2. delete.rjs: if @element_id page.visual_effect :fade, @element_id
2006 Mar 02
7
Timing of effects before and after Ajax call
Hello, I have a problem with the timing of effects. I do have a tag (with id: post1). When the link is clicked, the block "post1" must BlindUp. Then the block is updated with the new content and then the effect BlindDown is executed. Below is the source code of the link_to_remote I am using. <%= link_to_remote("Ajax Edit", :update =>
2006 Apr 25
0
Submit a form_remote from arbitrary JS
What I want to do is trigger an AJAX form submit from an event handler for a form element. The form is named, and I tried calling formname.submit() from the onblur handler. However, instead of using the settings from the form_remote_tag above it, the form ends up submitting the whole browser. I know what you''re thinking, why not use an observer? I tried that, and I ran into some
2008 Dec 01
1
Dreamweaver CS4 bugs
Hi all, I've been using Dreamweaver CS4 with WINE for the last couple of days, here are a couple of bugs that I noticed. WINE buglist for Adobe Dreamweaver CS4 Version 10.0 Build 4117: Shift doesn't work in the listbox but ctrl does (for example, when using the recordset window) After opening some menus, the menus do not disappear, not even when minimizing, and stay there until the
2006 Feb 07
0
link_to_remote from Controller
Hello-- I?m using Builder::XmlMarkup to create a menu tree and need to have some gee-whizzy javascript to make the menus expand, fade, twirl and dance. Ok, maybe not the last bit. Anyhow, because the html is generated mainly through code like: xm.li(:id=> ?menu_#{unique_id}?, :class => ?menu?){ xm << link_to_function(?menu name?, ?function_name?) } Unfortunately, link_to_function
2006 Jun 13
1
Can I refresh a remotely updated section once?
My object has_many Link objects. So I''ve set up a form on my edit page that uses form_remote to accept a text field and then dynamically create and add a new Link object and remain on the same page. I have a div id="links" region that gets updated to show the current list of links. This works fine. But when I first load the page, if the object already had links, how do I
2006 Jun 15
1
Ok, I''m stumped on arrays of form fields
My Alert object has_many Links. I''ve got the whole system setup where, once I have the Alert object created, I can use a nice form_remote to show the user all the Links currently attached, and add more. But the form itself starts out with 0 links. What I''d like to do now is construct the form with a couple of default "Place link here" objects in the array, and
2005 Dec 24
2
Ajax Help: Multiple Updates - ?
Hi! Wondering if anyone can tell me what''s wrong with my code? I''m trying to use the onChange event of a select list to update multiple divs... Agile Web Development with Rails (p. 403) suggests using ":complete => eval(request.responseText) instead of :update" I''ve attempted the following test code: # in the view <select name="plist",
2006 Feb 08
3
OpenRico LiveGrid or similar
Hi Has anyone used OpenRico''s "on-demand listbox" LiveGrid or something similar in a Rails app already? How well does it behave? I''m asking this because I need a scrollable list but the number of records in the table could be well above 5000. In the past I''ve used similar "on-demand fetchings" in desktop apps and it was a real blessing (the
2005 Mar 29
7
Fade Anything Technique (FAT)
Has anyone used the built in FAT (Fade Anything Technique) that exists in 0.11.1 of Rails? I could not find anything in the documentation so I was wondering if anyone has any code snippets on how they used it? Thanks for your help. John
2006 Aug 23
0
idea for an effect
Hey compiz folks, I had some ideas for effects that might help us cause more paroxysms of jealousy in non-compiz users: It would be great if when you close a window, there were a number of options to specify how the window dissappears: 1. fade to transparent (simple and classy!) 2. crack like glass into several pieces and fall off the screen in interesting ways. 3. fly off the screen in a 3d
2005 Dec 25
5
RJS not working?
I''ve been attempting to add a simple rjs ''delete'' method to my project. However, no matter what I try, it simply doesn''t work. Even the easy, easy stuff seems broken. (Yes, <%= javascript_include_tag :defaults %> is being included in the template.) For example, from: http://www.codyfauser.com/articles/2005/11/20/rails-rjs-templates VIEW: <h1