Displaying 20 results from an estimated 20000 matches similar to: "Hiding <div> tag thru an action event"
2006 Aug 08
3
params object nil in controller action
Hi All
I am trying to implement a Back to Search Results functionality, by storing
the user''s search criteria (params) in session and then reusing those
params instead of request params when user clicks on "Back to Search Results
link". here is my code
________________________________________________________________________
def search
if session[:incidentSearch].nil? or
2005 Dec 01
0
AutoCompleter message div not hiding
Hello,
I have a problem with the AutoCompleter, specifically the div that holds
the return values. It doesn''t get hidden until the page has correctly
loaded, so in a page that makes cross-server JS calls the div is
visible, and covers content, while the page is loading fully.
I managed to circumvent this problem in Mozilla by specifying the
visibility of the div in a CSS document to
2006 Jul 03
3
Change the background in a div with CSS
hello everybody,
i''m just trying to know this RoR better. And I have a question:
- i have a <div> in my scaffold.css and it has a background image. I
actually have 5 background pictures and i''d like to use one of them
randomly. Do I have to move this div description in another .rb file
(where i can do the random pick with ruby?) or is there any other way?
i hope it
2006 Jan 26
2
link_to_remote > in :action , interrupt ajax to render a new page outside the :update div ?
Hello,
I have a simple link_to_remote that refresh a div. I just want to know
if it''s possible to interrupt the div''s refresh inside :action to
perform a complete reload of the page, outside of the div
Actually, I havea a new page, but loaded inside the ":update" div.
Someone have an idea please ?
the rhtml:
****
link_to_remote "yeah" , :update =>
2006 May 10
2
Redirect whole page from AJAX action that updates a div
Hi,
I am calling an action via AJAX to update a div. The action needs to
redirect the page in under certain circumstances. However, if I just use
"redirect_to" in the action then of course what happens is that the page
I want to redirect to replaces only the div, not the entire page, and I
get messy nested layouts.
Is there a way around this? Can I redirect the entire document from
2008 Oct 03
4
Action Mailer >> Hiding Receipients in the email templates
Hi,
Anyone have any idea about hiding the receipients address in the email
template in "TO" field.
As am Example:
While sending an email to multiple users, the receipients email
addresses should not come in the "TO" field in the email template.
Thanks in Advance.
Piyush.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
2006 Mar 31
0
update a div element without having a corresponding action
Rails group,
I''m looking to update a div element with a page link without having
to write a corresponding action to populate that element.
I''ve tried:
<%= link_to_function "cancel", page.replace_html("control", :partial
=> "controls") %>
Basically I''m trying to limit the amount of methods that serve my
Ajax calls that only
2006 Jul 13
1
From the Agile book, page 144 regarding a div tag helper
Hi. in the Rails Agile book here''s what was happening:
>>>
module StoreHelper
def hidden_div_if(condition, attributes = {})
if condition
attributes["style" ] = "display: none"
end
attrs = tag_options(attributes.stringify_keys)
"<div #{attrs}>"
end
# format_price method ...
end
Note that we cheated slightly here. We copied code from the Rails
2005 Jul 11
0
Using sortable_element properly with DIV tag
Hello,
I''m trying to use sortable_element to allow users to AJAXishly
reorder a page of images. These are arranged in a grid format, not a
vertical list, so I''m using Rails code like this to make it happen:
<%= sortable_element ''thumbholder'',
:tag => ''div'',
:complete => visual_effect(:highlight,
2006 Jan 11
1
handling AR object in multistage forms
in a multi-stage form, what is the proper way for handling the passing
of the object thru each step ?
If i have a database called events, and my controller looks like
step = @params[:step] || 1
if step == 1
@event = Event.new
@event = @session[:event] if @session[:event]
elsif step == 2
@event = Event.new
@event = @params[:event]
elsif step == 3
@event = Event.new
@event =
2014 Feb 10
3
Sieve - Not showing new emails in Thunderbird?
Hi,
Issue:
Sieve works perfectly and does deliver the mail to the correct
mail directories. However Thunderbird doesn't detect the new email,
until the user clicks on the folder and then all of a sudden it shows
the newly detected emails. Perhaps this is a task for the Thunderbird
forums? (Thunderbird 24.2.0)
Server Side:
* CentOS release 6.3 (Final)
* dovecot-2.0.9-7.el6.x86_64
*
2006 Jan 22
3
"onload" event handler inside a div
Hi. I need help on what is essentially putting an "onload" event handler
into a div. I am using render :partial and when the partial is loaded, I
would like the divs to show using an effect from a library such as
scriptaculous or moofx. However, there is no "onload" for a div. I was
wondering what alternative methods I should use to achieve this.
Thanks!
--
Posted via
2011 Feb 15
7
Hide/Show Div and link_to_remote
Hi
I want to show some info and provided an ''edit'' button next to it.
This will change the display info to an editable form.
I''ve seen this done before, but what I can''t figure out is whether I
have to use an actual remote action to the rails server?
I think I should be able to render both the edit box and the display
info as seperate divs, and then show/hide
2009 Jul 20
1
[PATCH] Replace 'distrofamily' with feature tags
It turns out that the distribution hierarchy is not as reliable concept as you
might think. This patch removes distrofamily again.
Instead of distrofamily, we will add feature tags. This patch adds 2 feature
tags for Linux distributions:
package_format (eg rpm/dpkg)
package_management (eg rhn/yum/apt)
This change is reflected in the output of virt-inspector
---
inspector/virt-inspector.pl |
2006 Aug 09
1
strange - params.nil? true in controller
Hi All
I am trying to implement a functionality where a user clicks on "Back to
Search Results" link he is taken to the search result screen. For this I am
storing his search criteria (params object) in session. Here is my code
______________________________________________________________________________________________________________
*def* search
2006 Jun 01
2
Hiding an attribute
I am using a smallint database column to store several boolean flags.
The flags are accessible thru facade column accessors. I''d like to
hide the database column so all access is thru the facade accessors.
How do I do it?
TIA,
Jeffrey
2011 Aug 09
0
ActiveScaffold - custom show action
Hi all,
I''ve added custom show action (as an action link - I want to use default
one too). Everything renders well, but I''m missing a "Close" ([x])
button. So, I copied AS'' default _show.rhtml template and edited it a
bit (just added custom output and removed label). However, when I click
at "Close" I get error output:
You have a nil object when you
2012 Oct 21
2
check box tag binding between controller and the view
I am new to RoR. The problem i am facing is that that i have a few check
box and initially when i run my app for the first time i want them all
to be selected while for every next time i want it to have the last
checked boxes checked. To do this, In my controller i have
@all_ratings = Movie.all_ratings
@selected_ratings = []
if !params[:ratings].nil?
2012 Mar 06
0
Devise/Cancan Signout User On Controller Action
I have implemented Devise for Authentication and Authorization in ROR
application everything seems fine but getting one issue. I have two
modals "Account" and "Transactiona" , and so two controllers
respectively.
My Transaction Index view call one of Account Controller method like
this
2006 Aug 12
0
params object NULL/nil in controller - is this a bug?
Hi All
I am trying to implement a functionality where a user clicks on "Back to
Search Results" link he is taken to the back to search result screen.
For this I am storing his search criteria (params object) in session.
Below is my code, for the first time when the user performs a search,
there is no result data in session so the execution enters first
if...... see below