Displaying 20 results from an estimated 4000 matches similar to: "rendering RJS template from view"
2006 Jan 29
1
RJS template problem!
hi all,
i have the following controller:
class UserController < ApplicationController
.
.
.
def login
@user = User.new(params[:user])
@logged_in_user = @user.try_to_login
if @logged_in_user
session[:user_id] = @logged_in_user.id
else
flash[:notice] = "ungültige Daten!"
end
end
.
.
.
end
with this rjs template:
login.rjs:
if @logged_in_user
2006 Jul 03
2
rjs renders string or partial but not template or action
Hi,
I have an rjs file. I only have one controller called called front. I
have views called "new_title.rhtml" and "_new_title.rhtml"
These work
page.replace_html ''title'', ''new title''
page.replace_html ''title'', :partial => ''new_title''
page.replace_html ''title'',
2005 Dec 26
0
[rjs] How can I render a action template instead of partial
Hi,
I want to render a action template with rjs, so instead of doing this:
page.replace_html ''maincontent'', :partial => ''list'' I want to do this:
page.replace_html ''maincontent'', :action => ''list'' but the render (that
is called by replace_html, outputs to the reponds_body), so it doesn''t work.
Is there a
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
2006 Feb 02
0
RJS Template rendering viewable code
Hi,
I''m adding some RJS templates to my application and everything seams
to function properly except the final rendering shows the javascript
code created by the template and what I think are line breaks. The
same partial is used in two other places and seams to work fine when
called from an RHTML file.
Rendered:
new Effect.Fade(''job14'',{});
2006 May 28
1
RJS template / page.insert_html problem
Hiall,
I have a rjs template which is calling page[:xxx].replace_html ... a
couple of times and this works perfectly. However, in the same rjs
file I have two calls to page.insert_html, which do not work. No error
in development.log, nor error message in browser, the new content for
the div simply isn''t changed at all.
This is my code:
...
action = "save_" +
2009 Jul 28
4
RJS-Template and link_to_remote
Hi, I am quite new to rails and can''t use any rjs-templates.
The problem is, that he can''t use/find the methods in that template
e.g. ''page'' or ''replace_html''. I get an error message on these
methods.
Here''s what I got so far in my example:
Controller:
----
class AjaxTestController < ApplicationController
layout
2012 Jul 19
6
Rendering Partial
I am a bit confused when coming from layout and partials.
To start of I have a file called application.html.erb which has my
layout such has follow
<html>
<head>
<body>
<%= render ''layouts/footer'' %>
</body
</html>
This call a new file _footer.html.erb
This file his has follow
<footer class="footer">
<nav>
<%=
2006 Mar 15
4
RJS template eating encoding
I was previously doing an update via .rhtml templates creating an AJAX
:evaluate_remote_response. I use UTF-8 in my pages, and my app
requires that I be able to, say, put Japanese characters in.
The problem is that when I switched this over to an RJS template it
started eating the encoding. I now get garbage characters where before
I got the correct ones.
The code for the RHTML:
<%=
2006 Apr 04
7
Not getting the whole RJS-based partial rendering concept ...
I have been trying all kinds of different ways to produce what I think
should be a simple effect, but have not had any luck yet and apparently
I am not following the general idea...
What I am trying to accomplish is the following (part 1 works and part 2
does not):
1. One of my views has a link_to_remote which updates a div container
with a table of data
my example is
<div
2006 Aug 18
1
controller is to app.rb ; view is to layout folder ; rjs template is to ??
any help with this analogy? i have an rjs template that goes along with a method
i have in application.rb and the functionality will be used from many diff
controllers (the method take a tag as param to accomplish some AJAX
acrobatics).. just trying to stay DRY here. is there no other way other than
sticking the same rjs template in each view folder that uses this functionality?
i guess i could do
2001 Feb 22
2
Problem with tcltk listbox
Hi!
I've got two problems with listboxes and selection:
I created a listbox, no problem. Then I bind the Button-1 of the mouse to the listbox to start some things by pressing the mousebutton. The proiblem is that as I click a item of the listbox this error occured:
Error in .Tcl(.Tcl.args(...)) : [tcl] bad listbox index "": must be active, anchor, end, @x,y, or a number.
Repaeting
2024 Oct 08
2
rpcclient setdriver fails with WERR_ACCESS_DENIED
Hi Rowland,
Thanks very much for your quick response.
> Have you tried the command with a member of Domain Admins instead of
> Administrator ?
I just did and I now feel that something is wrong with
our Administrator-account.
Granting the SePrintOperatorPrivilege to user NAV\prtadmin with user
NAV\Administator failes on our fileserver (INVALID PASSWORD).
Granting the
2006 Jun 28
0
Getting name of currently rendering ERb template in view?
If I''m writing code in a template and I want to refer to the name of the
template itself so that I can pass it to a helper method, is there a
built-in variable (like controller_name or action_name) that I can use.
Assume x.rhtml and in this template I have helper_method(). I want to
pass "x.rhtml" into helper_method without hardcoding it.
Do I have access to the _currently
2005 Dec 15
0
RJS Templates and the Replace semantics
I have an issue with the way replace_html works in an RJS template.
This is a copy of a post on my blog (http://blog.craz8.com
<http://blog.craz8.com/> ) that describes the problem and my working
solution to the problem.
If I have a collection of things that are output like this:
<div id="things">
<% @things.each do |thing| %>
<%= render :partial =>
2023 Aug 31
1
Need help with idmap-configuration
Hi,
I'm migrating a samba3-server that is used both
as a NT4-DC and a filesver into a pair of samba4
servers, one should become the new AD-DC and the
other one should be the new fileserver.
The new AD-DC seems to work fine. I created all
local unix users and unix groups on the new AD-DC
before I started the classic upgrade and deleted
all of them after the update was finished. That
way the
2020 Jul 07
0
[centos/centos.org] branch master updated: Fixed old 7 release tag in download page
This is an automated email from the git hooks/post-receive script.
arrfab pushed a commit to branch master
in repository centos/centos.org.
The following commit(s) were added to refs/heads/master by this push:
new a672319 Fixed old 7 release tag in download page
a672319 is described below
commit a672319a9a7eb3a7d567d2f22b4bf0175440b13f
Author: Fabian Arrotin <arrfab at centos.org>
2007 Feb 13
1
RJS specs
Hi again...
This is wierd spec problem no. 3. I''ve got a simple one line RJS
file that renders a partial specified by the controller
page.replace_html("product_info", :partial => @product_partial)
The partials in question will contain purely static content - the
idea is to have some dynamic links, so you hit
http://localhost:3000/gap/product_info/product_1
2006 Mar 14
2
RJS & Unicode (again)
I have a problem with unicode & RJS. I searched several boards & blogs,
but was not able to find a solution. Let me explain my problem with an
example.
View (test.rhtml):
...
<div id="a_test_div">?????????</div>
...
Output:
?????????
RJS-Template (an_action.rjs):
page.replace_html ''a_test_div'', ''?????????''
Calling
2024 Oct 08
1
rpcclient setdriver fails with WERR_ACCESS_DENIED
On Tue, 8 Oct 2024 14:58:11 +0200
Peter Koch via samba <samba at lists.samba.org> wrote:
> Hi Rowland,
>
> Thanks very much for your quick response.
>
> > Have you tried the command with a member of Domain Admins instead of
> > Administrator ?
>
> I just did and I now feel that something is wrong with
> our Administrator-account.
Probably not.