Displaying 20 results from an estimated 100000 matches similar to: "Ajax and Flash notice"
2008 Dec 08
1
How to upload file by ajax
Hey''
How to upload file with ajax in ROR?
My code not working :(
View file :
<% form_remote_tag(:url => { :controller => ''Upload'', :action =>
''uploadFile''},
:update => "result",
:position => :bottom
:html => {:multipart => true} ) do %>
<p><label
2007 Aug 30
2
flash[:notice] as coach content...
Hi,
I would like to use flash[:notice] to display coach content, e.g. "It''s
generally a bad idea to do [whatever you just did]. Click here to find out
why" - which goes to a more complete coaching page on that topic.
My questions are:
1) Does anyone know of nice snippets for doing that (e.g.
script.aculo.usfade in, fade out), and
2) It seems the (very plain) approach
2006 Jul 28
1
How to ajax highlight a flash
Hi,
I want to make a flash[] highlighted for let''s say 5 seconds when some
action is invoked.
In the controller, I have:
flash[:notice] = "error"
In the layout, I have:
<p style="color: white"><%= flash[:notice] %></p>
I don''t know how to use ajax with the flash. I tried something like:
element.highlight(flash[:notice])
without any
2006 Feb 23
1
Ajax, validation, flash messages & redirects...
Hi everyone,
I''m working on an file upload page that uses an ajax progress bar
(http://sean.treadway.info/demo/upload/). I''ve also got validation on
the uploads (must be a certain file size/mime type etc). When uploads
pass validation - all is dandy. But when they fail - I can''t work out
how to redisplay the form with the flash error messages (that normally
appear
2006 Feb 20
2
Problem with flash[:notice] appearing twice
In my save function in my (ajax!!!) controller, i''ve got a bit like
this:
if ...
flash[:notice] = ''NOT SAVED: This month is locked''
render :partial => ''edit''
else
save it...
redirect to ''show'' action....
...
If i try to save an entry for a locked month, it correctly brings me
back to
my edit action with the
2007 Jun 19
4
Can't load swf files with Ajax.updater
Hello,
When I use the normal object tags to embed a swf file, the flash file
turns out blank by using the ajax.updater function to load a swf file
(both IE and FF). With swfobject nothing comes up at all.
Is this a bug or is there another (better) way to load a flash file by
using updater?
Thanks in advance!
--~--~---------~--~----~------------~-------~--~----~
You received this message
2009 May 13
4
Setting flash notice via javascript?
I am using a javascript to redirect to another action. Is there a way
to set the flash [:notice] in the javascript?
So when the javascript redirects, the new action/view picks up the
flash[:notice]?
(I suspect I may have to do something like url?notice=.....)
ideas?
thanks.
2007 Oct 14
6
flash notice
Has anyone noticed that flash notice dosent appear at all in firefox2
running with ubuntu? Is there a more cleaner and universal solution
rather than flash notice?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2007 Oct 04
0
redirect_to and flash[:notice] issue
Hi,
I''m looking for a way to get messages that I put into flash[:notice]
to be accessible on a different view/different action from where I am
populating it. In one action, I am putting messages into the hash,
and then at the end I use redirect_to to load up a new action/view. I
would like the messages that I have put into flash[:notice] to appear
on this redirected to view, but it
2008 Jan 01
2
Ajax.Updater from within an IFrame
Hello together.
I''m trying to call an Ajax.Updater from within an IFrame to update an
element in the parent window.
It is working, but I receive an error from Firefox when I do so.
What I want to do is to upload a file, and then after the file has
completed uploading, automatically reload a section of the page with
information about the file to post-process it.
However, AJAX
2008 Jul 25
4
Any Flash/ SilverLight Flex Equivalent for ROR?
I was wondering if there are any equivalents to flash/silverlight or
flex (would ajax be an equivalent?) for ROR? for creating RIAs?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2008 Feb 07
0
Flash charts with live update and slider
Does anyone know of any good Rails-friendly Flash charts that have
1. Live AJAX-type update of data (without reloading entire Flash
chart)
2. Horizontal axis slider to be able to zoom in (like the time slider
on Google Finance)
I have been using XML/SWF charts but find that its live update is
clunky
Thanks! Chirag
--~--~---------~--~----~------------~-------~--~----~
You received this message
2007 Apr 16
0
flash[:notice] = l(:notice_account_password_updated)
While browsing the code for Redmine(http://www.redmine.org/) I came across
following line of code.
flash[:notice] = l(:notice_account_password_updated)
what''s l function? Am I missing something here?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this
2008 Mar 06
0
flash[:notice] with remote_format_for
This has been asked before but I didn''t find an elegant solution. How
do you display validations errors when you''re doing a remote_format_for
(or in my case form_for with UJS)
This is what I came up with in the partial but there was to be a more
elegant solution also this displays the field names with underscores,
the flash[:notice] way seems to display cleaned up business
2008 Sep 10
5
xmlhttprequest for updating
Hello,
I am updating an object with an AJAX form:
view:
<% remote_form_for(@sample, :update => "content2") do %>
<p>
parameter: <br />
<%= select("sample","parameter",Parameter.find(:all).collect {|p|
[p.description.gsub(''_'', '' ''),p.id]},{},{:size => 4, :multiple =>
true}) %>
2007 May 09
3
flash CSS styling
I realize this is a CSS question, and not a rails question, so forgive
the off-topicness, but I thought rails users might have some
experience with this...
In my app I typically set one of two flash messages to inform users on
the sucess/failure of their actions. Ethier flash[:message] or
flash[:error] will be set. I want this to appear in the same place as
part of my site layout every time, so
2007 Jun 19
2
Session Problem with Ajax Call
Hai,,
I am totally new to Ajax. I am trying to use ajax in my project. Its
working fine, I am getting problem while session time expires. If
session expires means i am redirecting to login page.Onclick i am
calling on ajax function. It will goto controller and it will check the
session if session expires then it has to goto login page.
On ajax call i am updating the div. If session
2009 Oct 07
2
Rails, flash, function and parameter
Hi,
I try do update the flash on my page with ajax.
I have this on my layout :
<div id="flash_messages">
<%= render :partial => ''layouts/flash'' %>
</div>
I have this on my ApplicationHelper :
def reload_flash
page.replace "flash_messages", :partial => ''layouts/flash''
end
and I try do that on my controller :
2010 Dec 17
1
flash[;notice] not display after redirection
I read all previous posts about the same subject in Devise group but
couldn''t find any answer, so iy may not be related to Devise , so
I debugged it ..
.
class Users::RegistrationsController <
Devise::RegistrationsController
..
# POST /resource/sign_up
def create
build_resource
if resource.save
if resource.active?
set_flash_message :notice, :signed_up
2008 Jan 30
1
token_tag in Flash?
Yo,
I''ve got this data POSTing from a Flash App and I need to figure out
how this little <%= token_tag %> works so I can give the Flash the
proper validation. See, I get this
ActionController::InvalidAuthenticityToken because you know, gotta
defend those POSTs, but how do I get the toke into my Flash?
I''m somewhat new, so if there is some way obvious easier way then let