Displaying 20 results from an estimated 700 matches similar to: "Teething problems with Ajax.updater"
2006 Mar 22
1
How to retrieve attribute values of objects?????
Hi,
I am writing following line in my code:-
=================
@product1=Product.find(:all, :conditions => ["id = ? ",
params[:product][''product_id''+count.to_s]])
print @product1.inspect
===========================
So I am getting on console following output.
==========================
[#<Product:0x3cd61c8 @attributes={"demand"=>nil,
2012 Apr 23
1
ggplot2 - geom_bar
Hello,
I've some problem with the ggplot2. Here's a small example:
--8<--
library(ggplot2)
molten <- data.frame(date=c('01','01','01','01',
'02','02','02','02'),
channel=c('red','red','blue','blue',
2008 Mar 31
0
Advice on queue setup needed please.
Hello,
I have two sites. Both the sites will require queues for their own reason,
own campaigns, etc. Like site1 would handle product1, product2, product3,
while site2 can do product4, but can also do customer support for product1
and if anything, can transfer to site1's product1 queue (usually via SIP)
Also, a few of these queues will require AgentLogin() type logging in, and
some
2006 Feb 01
0
Using draggable_element doesnt work with update_element_function
Hi everyone,
I am writing a ruby on rails application, and making heavy use of AJAX calls
and evaluate_remote_response. In my remote responses I often have several
update_element_function calls going on, to update several divs on the page.
What I am doing is calling update_element_function, with the content as a
block. Inside the block I usually have html, or make calls to other partials
or
2006 Feb 05
0
Using javascript with update_element_function
Hi,
I am using evaluate_remote_response and update_element_function, to update
elements with blocks of content, something like this:
<% update_element_function("div_id", :binding => binding) do %>
<div id="newdiv_id">
This is a new div!
</div>
<%= draggable_element(''newdiv_id'') %>
<% end %>
That will update the
2005 Dec 24
2
Ajax Help: Multiple Updates - ?
Hi!
Wondering if anyone can tell me what''s wrong with my code?
I''m trying to use the onChange event of a select list to update multiple
divs...
Agile Web Development with Rails (p. 403) suggests using ":complete =>
eval(request.responseText) instead of :update"
I''ve attempted the following test code:
# in the view
<select name="plist",
2008 May 28
2
Gantt chart like graphics
Dear R Community,
I have a dataframe like this
dat product1 product2 ... productn
01.1.2008 1 1 1
02.1.2008 1 1 2
.
15.2.2008 2 2 NA
.
04.4.2008 2 2 1
05.4.2008 NA 2 NA
(date ascending order, 1:n products with status 1, 2 or NA)
and want to produce a graphic like
2006 Jun 14
3
problem trying to update multiple <DIV> elements with AJAX
I''ve been trying for days now to figure this out on my own, but I can''t,
so this is my cry for help. Here''s my situation: I need to update
multiple <DIV> elements on a page, each with its own HTML, but I just
can''t figure out how to get it to work. That is, I want to replace
everything within each <DIV> element with something new. When I try what
2006 Jul 15
0
Validate using boolean values
The Problem: how to do the validation. I have not written it
correctly!!!
Given two tables: sizes and prices;
with a relation: has_many ,belongs_to
a Price.unit_price for a given Size.meassure must be
marked ''true'' as the standard unit_price for that meassure.
There will be many other unit_prices for a given meassure, those must be
marked ''false''
table
2006 Mar 01
2
active_record postgresql adapter problem
Instead of using numeric I created the field "unit_price" as PostgreSQL
type money. Now when I try and add a row I get the following. How do I
override AR default behaviour to cast numeric post data to money, or am
I forced to only support database types that active_record knows about?
RuntimeError: ERROR C42804 Mcolumn "unit_price" is of type money but
expression is of
2005 Dec 27
0
update_field question
I''m using update_field to update a <div> with the contents of a
text_area as it''s updated by the user (a-la-Typo preview style).
I''m now trying to preload the <div> so that it shows the contents of the
field being edited even if that field doesn''t get edited. In other
words, update_field is only called if the field is updated, but I want
the
2012 Sep 12
6
How to append the random no.s for different variables in the same data.frame
Dear R helpers,
(At the outset I sincerely apologize if I have not put forward my following query properly, though I have tried to do so.)
Following is a curtailed part of my R - code where I am trying to generate say 100 random no.s for each of the products under consideration.
library(plyr)
n = 100
my_code = function(product, output_avg, output_stdev)
{
BUR_mc = rnorm(n, output_avg,
2007 Mar 26
2
Failure creating model in spec setup not reported?
Hi
I''ve just tracked down a wierd error that AFAICT is caused by an
error not being raised in the setup:
context "An Asset" do
setup do
@provider = Provider.create(:name => "Provider1")
@product = Product.new(:name => "Product1", :provider =>
@provider)
@applicant = Applicant.new(:first_name =>
2006 Apr 24
3
Form with multiple rows of content
I have looked at examples for this. I found a similar example in the
Agile Web Dev... book but that didn''t help. Here''s what i am trying to
do.
A Cart has many line items. On the Display Cart page, I want to provide
the user the option to update quantities.
Here''s the rhtml code:
<%= start_form_tag :action => ''update_cart'' %>
2005 Dec 07
3
update_element_function fail gracefully?
I am using the update_element_function to update the text in some
elements. This works fine, however, if I try to update an element
that is not on the page anymore, it fails silently and no further
javascript statements will be executed within that same
request.responseText. Is there a way to fail gracefully in this
scenario and ignore the missing elements?
Thanks,
Tom
2006 May 24
0
Javascript as content parameter for update_element_function?
Is there any way to do this? The goal is to have the update_element_function
update a div with alternating strings. Is there a better way to do this?
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060524/a99b90de/attachment.html
2006 Jan 01
0
Using standard helper methods in my helpers
Hi... I''ve written some simple helper method. My method uses standard
helper methods from Rails. When I try to use them from templates -
everything is working, but when I try to execute from my helper I get an
exception. Here is my code:
module ApplicationHelper
def reset_add_function
r=update_element_function("add") {
link_to_remote( "Nowy watek",
2006 Jul 08
4
Hidden fields in forms
Please can someone show me the correct syntax for a hidden field in
forms, this is my code
<%= start_form_tag :action => ''create'' %>
<div class="form1">
<table width="auto" boader="8" cellspacing="5" cellpadding="5">
<% hidden_field ''line_item'', ''client_id'', :value
2004 Sep 09
0
multiple users from the same machine?
I'm concerned about the machine known as accountingii in the below smbstatus:
Samba version 3.0.5pre2-SVN-build-1326
PID Username Group Machine
-------------------------------------------------------------------
2727 bbeerman users bbeerman1 (10.2.240.172)
30957 llawrence users df2x1121 (10.2.240.190)
28942
2006 Aug 07
0
Re:
>From: Josh Kieschnick <jjkiesch@...>
>Subject: Re: "Undefined method" problem in "Agile Web Development Wit
>Newsgroups: gmane.comp.lang.ruby.rails
>Date: 2006-03-22 04:39:56 GMT (19 weeks, 4 days, 23 hours and 8 minutes ago)
>I am working through that book as well. I am getting the exact same
>error. I thought it was something I did wrong but I have no