Displaying 20 results from an estimated 1100 matches similar to: "Can you apply effects to elements create in same RJS file?"
2017 Jun 24
0
replication not done with missing DC?
Hello,
I have been able to restore a backup, disabled samba initially, changed hostname, and then joined as a DC. It looks as if that was successful and some data was replicated. I had to manually update some DNS data to get it operational however. As a test whether user data (my major concern) was replicated, I disabled the old DCs and ran samba-tool user list, and the result was as expected.
2005 Dec 04
1
Understanding nonlinear optimization and Rosenbrock's banana valley function?
GENERAL REFERENCE ON NONLINEAR OPTIMIZATION?
What are your favorite references on nonlinear optimization? I like
Bates and Watts (1988) Nonlinear Regression Analysis and Its
Applications (Wiley), especially for its key insights regarding
parameter effects vs. intrinsic curvature. Before I spent time and
money on several of the refences cited on the help pages for "optim",
2006 Apr 05
2
RJS and remote forms
I''ve run into what I think is a browser bug related to using
remote_forms pushed in an RJS update.
In my controller, I have an action that creates a new model and returns
a form for one of its children:
def create_party
party = Party.create
render :update do |page|
page.insert_html :top, ''party-list'', :partial => ''party_header'',
2009 May 20
2
prototype.js insert issue
Hi,
I am trying to use the following lines in my RJS and have a problem
page.insert_html :bottom,:list,"<ul>"
#some conditions checks
page.insert_html :bottom,:list,"<li>Hello item</li>"
#some more code to add <li>s
page.insert_html :bottom,:list,"</ul>"
The problem I am having is the first line <<page.insert_html
2006 Jul 26
3
insert_html inserting fragment twice
Has anyone had trouble with inline RJS insert_html with the latest
version of Rails?
My problem is that insert_html inserts the html fragment twice. For
example,
render :update do |page|
page.insert_html :top, "some_list", "<li>booyow</li>"
end
would render "<li>booyow</li>" twice.
Thanks.
--
Posted via
2006 Jul 03
6
Rjs $("aaa").insertHtml is not a function error
Hi,
I''ve searched the list and found that someone had the same problem as me
http://lists.rubyonrails.org/pipermail/rails/2006-May/043760.html
I''m have in my page a link like this
<%= link_to_remote ("Add
#{image_tag(''add.png'')}",:url=>{:action=>''addProduct''})%>
and in my controller
def addProduct
..................
2006 Apr 19
4
RJS replace_html auto-closing tags
I''m using the following RJS template to spit out a div containing a
list of projects:
page.replace_html ''results'', ''<div>''
@projects.each do |p|
page.insert_html :bottom, ''results'', p.name + "<br/>"
end
page.insert_html :bottom, ''searchresults'', ''</div>''
page.show
2006 Aug 02
9
RJS not cross browser compatible?
I have an RJS template that does the following
page.insert_html :bottom, "some_id", ''<tr id="some_id"><td></td></tr>''
This works just find in safari and firefox. In IE and Opera it doesn''t
work so great. Any ideas? Am I doing something wrong here?
--
Posted via http://www.ruby-forum.com/.
2006 Jun 04
1
Fwd: Re: How to call a value labels attribute?
How is what you are doing any different from factors?
> x <- factor(c(1, 2, 3, 3, 2, 3, 1), labels=c("apple", "banana", "other"))
> x
[1] apple banana other other banana other apple
Levels: apple banana other
> as.numeric(x)
[1] 1 2 3 3 2 3 1
> levels(x)[3] <- "birne"
> x
[1] apple banana birne birne banana birne apple
2008 Sep 22
3
syntax error in RJS
I''m new to Ruby on Rails and came across a problem I could not solve
alone.
I''ve a pretty simple RJS file that looks like the following:
3.times do
page.insert_html :bottom, ''messages'', ''test''
end
page.call ''updateMessageWindow''
However this snippet gives a syntax error:
ActionView::TemplateError (compile error
D:/Eigene
2001 Mar 14
3
get statistics by group
Hi,
I have a data set look like this:
=================================
Fruit Quty
apple 20
banana 10
orange 17
apple 30
apple 15
orange 26
banana 15
.........and so on ..........
=================================
The level of fruit is 30, that is, there are 30
different fruits. I'd like to compute some simple
statistics for each different fruit and get output
like this:
2020 Jun 15
3
Voice "broken" during calls
On Monday 15 June 2020 at 21:19:51, Luca Bertoncello wrote:
> But I'm not really sure, that Asterisk could be the problem, since, as I
> said, the problem happens even if I connect the phone direct to the
> server of Telekom...
I think that is significant, even if the routing is still going through the
Banana.
> Well, during the calls, the BananaPI has a load of max 1, and it
2010 May 03
7
rendering images dynamically
Hi,
I have a rails application where I respond to a request by fetching
image urls from various web api calls and need to display them as they
come available. I am able to display all the images once I get them
all, but that causes an unacceptable delay for my user.
One approach I am trying is, from my controller, set an @image
variable, and then pass in a block to the model that retrieves the
2002 Sep 10
3
print
Hi all,
Suppose I have a vector
Fruits <- c('Apple','Orange','Pear','Banana','Mango')
I want to print the statement
"The fruits in the basket are: Apple, Orange, Pear, Banana, Mango"
If I do:
print(paste('The fruits in the basket are:',Fruits))
The output is:
[1] "The fruits in the basket are: Apple" "The fruits in
2004 Nov 01
3
Reading word by word in a dataset
Hello All,
I'd like to read first words in lines into a new file.
If I have a data file the following, how can I get the
first words: apple, banana, strawberry?
i1-apple 10$ New_York
i2-banana 5$ London
i3-strawberry 7$ Japan
Is there any similar question already posted to the
list? I am a bit new to R, having a few months of
experience now.
Cheers,
John
2008 Aug 17
2
Optim stripping attributes from relistable objects
Dear all,
The following code is inspired by the help file for the relist()
function (see?relist), which explicitly details how you can use a
relistable object in conjunction with optim to pass and reconstruct
complex parameter structures/groupings. The idea is that the optim()
function can only work with vectors, but in many cases you would like
to use a complex structure inside the objective
2007 Dec 20
3
How-to spec this helper method?...
Hey gang,
I have this dead-simple method defined in a helper:
def add_category_link(name)
link_to_function name do |page|
page.insert_html :bottom, :categories, :partial =>
''category'', :object => Category.new
end
end
Where, and mostly how, would I spec this? I haven''t been able to find
how to stub the rjs in a helper spec, so
2006 Apr 09
4
Best RJS process for what I''m trying to do...
I just wanted to ping this off the list to get some advice since I''m
now pulling my hair out. Thanks in advance for taking any time to look
at this. It''s much appreciated. Now, my problem is my RJS is working
but it''s not inserting how I want it to insert. I have a partial I''m
rendering in my view that looks like this:
<ul
2006 Mar 15
2
installing/updating rsync 2.6.7 on os x
I'm trying to update my rsync on os x 10.4.5.
downloaded the latest rsync-2.6.7.tar.gz
as described in the configure --help I started ./configure and the
output tells me that all works out fine.
then running rsync (in /usr/local/bin) in bash the output still tells
me, it would be: rsync version 2.6.0 protocol version 27
what am I doing wrong?
thanks
Simon
2006 Mar 24
2
Return all rows, split then show uniques
I''m returning some rows from a tags database that look like this:
ID WORDS
1. apple banana pear
2. banana melon
3. apple peach lime
What I want to do with that data is use the .split method to divide them
into separate values in an array, then use the .uniq method to return a
unique list of the words like so:
apple, banana, pear, melon, peach, lime
So in my controller I