Displaying 20 results from an estimated 50000 matches similar to: "How to use flash in javascript?"
2006 Mar 28
5
RJS call from controller issues javascript that doesn''t get evaluated by browser
Hi,
I''m on Rails 1.1 and I have a problem wit RJS
In my cotroller i have
==>>>
def show
@contact = Contact.find(params[:id])
render :update do |page|
page[:contactInfo].replace_html :partial=>"contactInfo"
end
end
<<<===
And my contactInfo partial looks like this and it''s placed inside a div element
==>>>
<table>
2006 Apr 24
1
implementing a Slider control
i''m trying to implement a slider like
"http://wiki.script.aculo.us/scriptaculous/show/SliderDemo", but i see
that my code doesnt work.
i seem to do everything correct but then if some one could look into it
and help..
regards
muddana
The View Code:
<%= javascript_include_tag "prototype", "effects"
2006 May 20
1
Slider.js - Attemting to put values in form.
I can''t figure out how to take that value that the user has chosen in
the slider and put that into a form value. Does anybody know how to do
this?
Here is my code so far (It''s pretty much directly from script.aculo.us):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>Text effects tests</title>
<script
2006 Mar 13
4
How to embed the Login Engine in to the layout?
I want the Login Engine to be displayed together with other modules in a
single page,eg the left or head blank of the page just as the
http://gallery.rgallery.dk/gallery shows. What should I do for that? tks
anyway!
--
Posted via http://www.ruby-forum.com/.
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.
2010 Mar 24
3
flash error & fade away
this is my current code:
#notice {
border: solid 1px #99cc99;
background-color: #e2f9e3;
color: #006600;
padding: 5px;
margin-bottom: 5px;
}
#notice.error {
border-color: #e2f9e3;
background-color: #eeaaaa;
color: #cc0000;
}
<% flash.each do |key, msg| %>
<%= content_tag :div, flash[:error] || flash[:notice], :id => ''notice'',
:class =>
2013 Jan 15
7
javascript flash messages gem?
Does anybody knows a gem for managing flash messages? I would want to
add messages to the flash div in the client. Bootstrap support is a plus.
--
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group,
2010 Feb 19
8
Weird gsub behaviour
ruby 1.8.6 (2007-09-24 patchlevel 111)
str = ''\&123''
puts "abc".gsub("b", str)
puts "abc".gsub("b", "#{str}")
puts "abc".gsub("b", str.to_s)
puts "abc".gsub("b", ''\&123'')
puts "abc".gsub("b", "\&123")
>ruby test.rb
ab123c
2006 Jan 14
14
Javascript/AJAX Debugging
Hello !
I''m trying to implement something similar to the "multiple updates" section
of the Web2.0 chapter of the Agile book.
I implemented my version, and nothing is happening. No javascript errors,
my logs look fine, page is rendered fine... just no Effect.Highlight. Here
is the code:
views/causes/cause_home/index.rhtml
===============
<%= form_remote_tag(:complete =>
2019 Feb 28
2
Pigeonhome Sieve: check existence of a folder?
Dear All,
Thanks ofr the great job so far.
I have crawled the doc & web, and did not find oh to check for the
presence of a folder ina? a mailbox?
I know about "fileinto :create" of course, but the purpose is slightly
different: I want to automate the move into a folder based on some rules
but *only if* an associated folder is present (which name is based on
the rule),
2010 Mar 24
1
--delete question.
Please advise on rsync usage. --delete doesn?t work without recursion(--recursion). The recursion is causing huge overheads for me. My directory trees are huge. Any suggestions through which I can cut overheads. It used to work well in rsync-v2.5.5
/opt/rsync-v2.5.5/bin/rsync --delete --checksum -lptgoD --rsync-path=/opt/rsync-v2.5.5/bin/rsync --hard-links --timeout=5184000 --exclude=.snapshot
2005 Jul 22
2
Unpredictable behavoir using Sortable javascript
Hey all,
I''m attempting create a photo album that can be re-ordered using the great
scipts from script.aculo.us <http://script.aculo.us>. It seems to work as
expected when I pretty much copy and paste the puzzle example but when I try
and be a bit trickier (changing the movable elements to be divs containing
images) things get wierd. I''m able to "pick" the
2005 Jun 24
3
flashing divs in IE with use of BlindUp and BlindDown
I''m having an issue with flashing divs in IE (firefox is fine and the
only other browser I''ve used)
My scenario is as follows. I have 2 divs (initially hidden) and using
the BlindDown and BlindUp functions (possibly others) the divs flash
when starting to roll down in BlindDown (due to the Element.show call)
and also at the end of the BlindUp call (due to the Element.hide call)
2006 Jun 16
2
Javascript error?
Hi, I''m trying to get this progress bar plugin working, but I''m
having some trouble.
I''m running Apache 2.0.52 with mod_fcgid on Mac OS X. Everything
seems to be working fine, but the progress bar simply doesn''t work.
In my log I get:
Multipart upload with progress (id: 1, size: 176731770)
Finished processing multipart upload in 18.96244s
but no requests in
2006 Feb 03
2
JavaScript Prototype Help?
I have a form with a text area. I want to have an observer watch the
text area and update a div with the running count of characters in
the text area. I tried "onchange" but that doesn''t update until you
leave the text area. I was able to get it working using AJAX, but
it''s silly to make a needless round trip to the server, when the page
already knows
2011 Jun 02
1
ylab spacing in resizePanels in latticeExtra
I would like the ylab in the second, resized graph to be centered on the
actual positions of the panels
of the second graph, not on the positions appropriate for the first graph.
How can that be specified.
Toggle the two graphs to see that the ylab is identically spaced in both,
even though the panels are
differently sized.
Thanks,
Rich
windows.options(record=TRUE) ## We need to compare two
2007 Jun 03
5
can I use template to assemble a html page in an controller and redirect to another controller?
Hi,all!
I want to assemble a html page and put it into flash and redirect to
another controller ,for example:
flash[:aaa]="<html><body><div>hi</div></body></html>"
but what I need is to assemble some more complicate html page,so I
want to read the render result of a template before to send it to
browser.
Any thought?
Thanks in advance :-)
2006 Mar 07
12
what is the IDE tools used in the video?
What is the IDE tools used in the video on the homepage of the
www.rubyonrails.org?I had thought it was Komodo,however after I had
installed that i found they were different.I do think the IDE used in
the video is very cool for its autocomplete abilities especially in the
Views development.Thanks!
--
Posted via http://www.ruby-forum.com/.
2005 Oct 12
2
AJAX and disapear javascript tags
Hello everyone.
I''m writing web aplications using AJAX (library prototype and scriptaculous). I have situation that I want to change content of one div in my site. I make ajax request to server and getting new content of that div. The problem is that this div should have javascript code (e.g. looks like that <div><script>js code</script>
2007 Dec 22
1
Ajax.Updater and JavaScript functions
Hello all,
I have a script that uses a Ajax.Updater call to update the contents
of a DIV. The code being inserted includes a javascript function,
which is "called" by onClick event elsewhere in the HTML.
The page initially works fine in that the DIV gets the right content,
the Javascript inserted works fine.
The problem I have is that if I call the Ajax.Updater again then the