Displaying 20 results from an estimated 1000 matches similar to: "RJS and Greybox : executing the js in the parent window?"
2006 Aug 23
2
new plugin: "redbox", a lightbox/thickbox clone with nice rails integration
Hi folks,
I''ve written a little plugin to use for displaying a block of html over
a page while fading out the background. This is like the lightbox.js
library, and all it''s related offshoots (thickbox, greybox, etc.). My
plugin, Redbox, is not really any better than these others (in fact,
it''s less mature, and less tested), but it builds on prototype and
scriptaculous,
2006 Jun 05
1
Action Mailer contact form
I am trying to use Rails and the Action mailer to create a simple contact
form on a website. I am using a table-less model to validate the form
contents, then trying to use the Action Mailer chapter of the "Agile Web Development
with Rails" book as a pattern to develop the send e-mail portion. I am
having trouble getting it working and was hoping someone could point me in the
2008 Feb 29
1
Using ym4r/mapstraction''s cluster.js with RJS
Hey all,
This is a little OT but ...
I''m trying to use this the YM4R/mapstraction clusterer with RJS but
having a hard time, I can create a working cluster when i initiate it in
a controller, but not from RJS.
For the proper flow in my app it would be very helpful to be able to do
it from RJS.
Thanks for the help,
Chuck
--
*Chuck Fletcher*
Email: chuck at chuckfletcher.com
2009 Jan 15
1
Sequential "page." commands in a js.rjs file?
After the (remote) delete action for my lesson_categories controller i
fall through to this js.rjs file:
page.visual_effect :fade, "lesson_category_#{@lesson_category.id}",
:duration => 1
page.remove "lesson_category_#{@lesson_category.id}"
The problem, though, is that the visual effect is initiated, then the
remove is initiated, before the visual effect is finished, so
2006 May 17
0
RJS referring to window.parent
Hi all,
I''ve been doing some work on the Ajax Scaffold
(http://www.ajaxscaffold.com/), to make it work with file uploads
(more specifically, the file_upload plugin).
The first logical step was to get rid of form_remote_tag, since it''s
impossible to send files via XMLHTTPRequests (to my best knowledge).
So I referred to the iframe hack, similar to the upload progress bar
here
2006 Jun 08
3
RJS wierdness - Content div display js code
Hi,
I have a link_to_remote name ''Show notes'', which calls an action that
uses this RJS template:
page.replace "notes_remote", :partial => "notes/hide_notes_link"
page.insert_html :top, "notes_list", :template => "notes/list"
page.visual_effect :highlight, ''notes_list'', :duration => 3
Works great. The
2008 Jan 07
3
Rails check for a .js template instead of .rjs?
respond_to do |format|
format.html
format.js { render :template => "login" }
end
Whenever I send an AJAX request to the action that has that code it says
it cant find the template login.js. Why isnt it looking for login.rjs?
Also when I take out the render it serves up the rhtml template instead
of the rjs template. Any idea why this is? I am using edge rails and the
latest
2007 Nov 29
5
Dynamic JS or RJS ?
Hi,
while I search the net for hints I leave this here, probably you will be
faster than me finding an answer.
The next:
I have a static site where I embed a player using an external js
The html:
<script type="text/javascript"
src="http://www.mysite.com/scripts/player.js"></script>
The JS:
if(navigator.userAgent.indexOf("Opera")!=-1){
2007 May 15
5
Problem with RJS and/or Prototype.js =>ResponseText is blank
Hi, I''ve got a real head-scratcher. I''ve got a standard Ajax form using
form_remote_tag, which calls a controller action which adds a comment
and then sends back some JS via RJS which updates a few items on the
page.
It did work fine but (and I''ve no idea what has happened) now it
doesn''t. It calls the controller action but gets an empty response back
and
2010 Aug 16
8
Executing js.erb file with :format =>'js'
Hi, I''m trying to get my javascript to execute after clicking a link on
my page using :format => "js" here''s my link:
<%= link_to image_tag("/images/icons/user_add.png"),
add_contact_path(:profile_id => profile.id, :url => request.url, :format
=> "js"), :title => "Add person to your contacts"%>
in my controller i have
2009 Sep 25
3
NoMethodError : undefined method `stringify_keys!' for "2":String
Hi,
I have been trying to create a small Rails application. In one of
the steps, I am facing this error as "NoMethodError in
ContactController#update ...... undefined method `stringify_keys!''
for "2":String".
Let me give a brief description of the application. This application
is to Create, View and Update contacts. The problem came when updating
a record.
2007 Dec 11
0
Rails 2 doesn't include builder.js, scriptaculous.js, slider.js, and sound.js. Should I add them?
I''m upgrading the Scriptaculous files in my Rails 2 project to version
1.8.
Rails 2 doesn''t produce builder.js, scriptaculous.js, slider.js, and
sound.js in the Javascript folder by default, and the files it
produces (controls.js, dragdrop.js, effects.js) don''t have a version
number in them.
If I''m replacing the default files with the Scriptaculous 1.8
2006 Dec 20
0
A way to find info about process parent, parent''s parent, and so on?
I am using dtrace on a Mac OS X Leopard beta.
Currently I''m tracing read operations. I''d like to get info about the process which is creating the reads, as well as information about parent processes. The least amount of information I need is pid and process name, but more would certainly be a plus!
I know that in the probe entry, pid, ppid, and process name are easily
2012 Jun 18
1
Slide Show (S9) v1.1 Update - More Template Packs (Deck.js, Impress.js, CSSS, Slidy2, etc.)
Hello,
If you're interested in authoring your presentations/slide shows in
Markdown, you might check out the Slide Show (S9) gem in Ruby. A
simple slide show looks like:
What's Slide Show (S9)?
=======================
A Free Web Alternative to PowerPoint and KeyNote in Ruby
Getting Started in 1-2-3 Easy Steps
===================================
* Step
2006 Jul 24
2
BIG JS limit? Using replace_html with partials containing JS
Hello,
It''s pretty hard giving a practical example on this one.
I have a partial which contains some generated Javascript.
Something like:
order_screen.rhtml
-------------------------------------------
<h1>Order</h1>
<div id="order_part">
<%=render :partial=>''order_new'' %>
</div>
<h1>Ordered products</h1>
2007 Sep 12
2
Prototype.js and Coremetrics eluminate.js issues
Hi,
I am trying to use prototype.js on a JSP that also contains some
javascript from Coremetrics (eluminate.js). Coremetrics is used for
tracking marketing clicks.
When I have both of these javascript imports on the page I get
javascript errors in the eluminate.js file. I get javascript errors
that say "Undeterminate string constant."
It looks like the prototype.js file is somehow
2008 Aug 18
0
On move ACLs from source parent are preserved & not inherited from new parent
Hi!
We're using sernet-samba 3.0.28-21 on debian. (The smb.conf can be found
below)
There are 2 subfolders in root share directory "ponudbe" and "projects":
srv03:/srv/data/test# getfacl *
# file: ponudbe
# owner: root
# group: root
user::rwx
user:COMPANY+administrator:rwx
group::r-x
group:COMPANY+ponudbe_rw:rwx
mask::rwx
other::---
default:user::rwx
2006 Apr 05
2
How to add add child items to parent via parent show view?
I want to know the standard/easiest way to add items to a parent?
Example: comment added to post
I would like this to happen in the ?show? view of post using a form that
is shown when the user clicks the ?add new? button/link. I would also
like validation on the child form with the validation errors appearing
in the post show? view.
Two problems are presented:
1) When the user clicks the
2006 Apr 22
0
RJS question - Query DOM/CSS from RJS?
I understand that I wouldn''t be able to directly query into the
DOM/CSS of a page from within an RJS file because it runs on the
server but is there any way to populate a variable from the controller
or something to gain access to DOM information?
What I want to do is this:
I have some RJS to blind_down an error message panel, but if the form
is resubmitted and there are still errors,
2006 Jan 13
1
Rendering an RJS template within another RJS template
Is there a way to render an RJS template within another?
I''ve put my simplified code below. No errors are generated, but the
partial isn''t rendered. I also tried using render :action =>
''update_actions''
destroy.rjs---
page.visual_effect :fade, comment_container(@object.id.to_s)
# update the number of comments(below is another rjs template)
render :partial