similar to: image replacement (new Effect.*****) problem

Displaying 20 results from an estimated 500 matches similar to: "image replacement (new Effect.*****) problem"

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 Jan 08
0
link_to_remote(image_url url_for_file_column(product, "image
I apologise for bad formatting. I don''t know how to make it nice in an email How do you nest image_url tags into link_to_remote tags. The following creates the error:wrong number of arguments (3 for 2) <%= link_to_remote(image_tag url_for_file_column(product, "image_url"), { "class" => "small_product",
2005 Oct 21
1
{ afterfinish }
Hi, 1. can someone give me an example usage of { afterfinish: }? I tried several ways and just can''t get it. I was trying to deploy an effect after another one had finished and just couldn''t do it. Effect.dropout (myElement, {afterfinish: function(element) { Effect.Appear(anotherElement); } } ); a) why doesn''t this work? b) what''s the element argument for?
2007 May 17
5
AJAX, PHP and scriptalicious
Hey, I''m brand new to AJAX and scriptalicious, so i''m hoping for some help. inside hello.php I have this piece of code to grab and loop out users in the database: function test(){ $query = mysql_query(''SELECT * FROM `testing`''); while($i = mysql_fetch_row($query)) { echo''<div class="testie">'';
2008 Apr 24
4
Scriptaculous Help (page exit effects)
I was wondering if it was possible in Prototype/Scriptaculous to run an effect when a link is clicked, then go to that page, or if it was possible to have an effect run when the page unloads. I have tried <body onunload="new Effect.Fade("whatever");> and some prototype page exit events, could get a alert("") function to work, but not the effects. Any ideas?
2006 Aug 09
8
AJAX image manipulation
I have this code in a controller that returns images to my browser...with ROR. def index @products = Product.find_all_ pictures end ....this is the .rhtml.. <% for photo in @pic -%> <div class="entry"> <img src="<%= photo.image_url %>"/> <h3><%= h(photo.title) %></h3> <%= photo.description %>
2005 Sep 20
5
scriptaculous setting options - Speed
How do you set the options for an effect, I have multiple effects on a page, some are small boxes but others are larger, I want to be able to set the speed of each effect individually. so the question is how do I have 2 effect.BlindUp objects on one page with different speeds? Thanks. ______________________________________________________________________ Alex Duffield . Principal .
2005 Oct 09
6
Problem With url_for_file_column/file_column
I am using the very helpful file_column extension in my app. The uploading portion works great - no problems. Where I am having an issue is displaying the images in my view. My code looks like this: <% for @record in @main_box_releases -%> <%= image_tag(url_for_file_column("record", "record_cover")) %> <% end -% @record is an instance of a class called
2006 May 26
4
stopping effects, help me again please
Hi * and thanks for you responses some body help me stop effect, just last effect. Thanks! to somebody help me with: Pulsator = Class.create(); Pulsator.prototype = {initialize: function(element) { this.stopped = false; new Effect.Pulsate(element, { afterFinish: this.action.bind(this) }); },action: function(element){if(!this.stopped) new Effect.Pulsate(element, { afterFinish:
2006 Jun 20
4
Invoking MouseOver using link_to tag ?
Hi, How can we trigger a JavaScript built in function from a <%= link_to %> ie. i have the below statement in my view. I want to invoke a JavaScript function on "MouseOver" of this below text (''TestingMouseOverEvents''). <%= link_to "TestingMouseOverEvents" , :controller => "login", :action => "logout"%> Note: The
2006 May 12
11
Stupid? question about if else logic
this seems so stupid, I keep thinking I''ve dealt with this before but I have this code <h1>Portraits</h1> <% if @image.portrait == 1 %> <%= image_tag(url_for_file_column ''image'', ''file'', ''thumb'') %> <% else %> <h1>Landscapes</h1> <%= image_tag(url_for_file_column
2006 Jan 14
2
file_column, ActionMailer, and tests
Hi, Say I have a model Event that has a file_column called ''pdf''. I want to send out emails that contain the URL for the pdf file that''s associated with the Event. I also want to test the emails, so I''d need to be able to get at the URL for the pdf inside my unit tests. I don''t see how I can use url_for_file_column in this situation. Doing <%=
2006 May 12
3
file_column error
Hmm, I''m using file_column and going by this tutorial, the files upload ok and I can see the fields updated in the database, but I am getting this error: "Trying to access file_column, but primary key got lost." Thanks in advance -- Posted via http://www.ruby-forum.com/.
2006 Apr 07
13
Pop up menus - any ideas?
I''ve got a menu in which I have all of my categories as links. Each category also has subcategories. I want to set it up so when you mouse over the category the subcategories will pop up (to the right of the main list, but that''s just CSS). This is what I have so far: <% for category in @categories %> <a href="#"
2006 Jan 17
5
file_column mangling URL
Hey, I''ve gotten file_column to upload a file, drop it in the dynamic directory, but I can''t display the image, the directories repeat themselves: My model: class Person < ActiveRecord::Base file_column :image_url In my view: <%= image_tag url_for_file_column(''person'', ''image_url'') %> HTML generated is this: <img
2006 Jun 16
5
Menu using Scriptaculous Effects = OnMouseOver bug
I am trying to achieve a Flash-like menu with OnMouseOver effects on 3 divs below. Unfortunately, the javascript resets when the mouse is rolled over the text and if you go mouse crazy on the divs, the script seems to remember where it cut off, and doesn''t roll down completely afterwards. Is it a good place to ask for help? I couldn''t find any Scriptaculous forum (only
2005 Oct 04
3
[Q] file_column help needed
Hi all, I''m trying to use file_column to upload a picture but I''m getting the following error: "cannot convert nil into String" caused by the last line in FileColumnHelper::url_for_file_column(object_name, method) url << object.send("#{method}_relative_path") I don''t have any images uploaded for existing entries so does this not
2006 Jan 19
1
partials and instance variables for file_column
Hi, Sebastian Kanthak of the file_column-Plugin wrote once: "is the photo object inside a local variable or an instance variable (e.g. photo or @photo)? url_for_file_column only works with instance variables, like all other active record form helpers. Could this be the problem?" So I''m using file_column in a partial, e.g. <%= render (:partial => "product",
2006 Jan 25
1
url_for_file_column in parent model''s view
Hi All, I am using the file_column plugin to upload images. The model that I am using is simply called images (id, name, caption - name being the "file" column) and it belongs_to a parent model called books which has_many images. I was able to figure out how to enter the images into the correct model when updating of form of the parent model (books). Now I need to figure out
2006 Aug 13
5
problems with file_column plugin
1) installation is not as smooth as some other plug-ins. If you follow the instructions on http://www.kanthak.net/opensource/file_column/ it makes a directory called trunk instead of file_column. You have to manually rename it to file_column. I guess this is a minor annoyance but it gives me the feeling that things aren''t quite like other plugins. 2) I get this error: undefined