Displaying 20 results from an estimated 1000 matches similar to: "Some questions about Ajax.Updater"
2006 Mar 21
13
"Remembering" link to redirect to after logging in
Hi,
Suppose I have a resource such as http://localhost:3000/topsecret/data
that requires the user to login first.
What I did was make use of before_filter to check and see if the session
variable is set with the logged in user''s id (similar to the example in
"Agile Web Development with Rails").
However while the filtering function does work correctly in redirecting
the
2007 Aug 20
3
Contribution on extending createElement
Hi all,
I work a lot with scripts that modify the DOM, and I have always found
quite annoying that the code would always get very verbose as soon as
I wanted to create even simple structures :
var my_div = document.createElement(''div'');
var my_anchor = document.createElement(''a'');
my_anchor.setAttribute(''href'',my_link);
var my_text =
2006 Feb 09
5
Ajax.Updater not populating element - please help
Hello everyone,
This is related to my post a few days ago regarding multi select
lists. I''ve rewritten the code and now can''t seem to get the
Ajax.Updater in getModels() to "execute", and the element never gets
populated.
I know it''s something obvious and hope someone could point it out to me.
Thanks for any help.
Here''s my code:
<script
2006 Mar 23
1
Implementing a model with logging?
Hi,
I''ve been trying to work out a model (let''s say a StudentRecord) which
has a number of attributes, and the key thing I''m trying to do here is
to implement it such that you can actually view modifications made over
time by various users (think of it as a wikipedia style of logging).
Is there some provision in rails that''d provide this functionality for
2006 Jan 14
3
link_to_remote where the url contain a javascript variable
Ok, so I am basically trying to use ''link_to_remote'' and pass the value
of a javascript variable as an argument. Something like that:
link_to_remote "my_link",
:update => ''my_div'',
:url => { :action => "my_action", :var =>
''my_var'' }
Basically,
2006 Feb 20
1
[Prototype] onSuccess Event and Ajax.Updater bug in IE
Hi all,
Is there a known bug with Ajax.Updater not working in
IE6? I''m having
trouble with a Autocompleter control that calls a
function that contains
an Ajax.Updater as an AfterUpdateElement callback. It
works fine in
firefox, but I don''t think Ajax.Updater gets called
under IE.
http://pastebin.com/563889
1.
function updater(input, item) {
2.
var
2008 Nov 22
3
RJS page.update question
How does page.update actually work? I know its a wrapper for
Prototype.update but how does it get the partial in there?
Say I wanted to update a div with the contents of a partial manually
like this.
content = render(:partial => ''whatever'')
page.call "$(''my_div'').update(#{content})"
But his does not work. It keeps giving me weird errors about
2006 Apr 18
1
Ajax.Updater: getting onComplete to fire in IE
Has anyone found a way to get onComplete to fire in IE? I''ve built a
bunch of functionality around Updater and this is a show-stopper for
me. I''m on the latest Scriptaculous.
Thanks much,
Jamie
2006 Feb 04
1
Error when using form helper and child objects
Hi,
This is one problem that has gotten me stumped for quite a while. I have
an Item that has_many :DeliveryMethod, and what I seek to achieve is to
create a form that''d let me create an Item, as well as its
DeliveryMethods in 1 single form.
And so I tried something like:
<%= text_field_tag ''Item[DeliveryMethod][price]'', @Item.DeliveryMethod
?
2014 Aug 21
2
pregunta
Estimados
Estoy entrenando hacer funciones que respondan a comandos,
en esta caso en la salida gráfica se observa que dice : Exposure=var3 y
outcome=var 1
quisiéramos que se reflejan los nombres de la base de datos : var1=estado,
var2=cake, var3=chocolate
Espero haberme explicado adecuadamente
Adjunto tabla con datos
####################################
#Comando que llama
2014 Aug 21
2
pregunta
Buenas noches Javier y José,
Estoy en contra de usar attach(), asi que propongo la siguiente alternativa
con with():
# paquete
require(epicalc)
# los argumentos en ... pasan de epicalc:::cc
# ver ?cc para mas informacion
foo <- function(var1, var2, var3, ...){
or1 <- cc(var1, var2, ...)
or2 <- cc(var1, var3, ...)
list(or1 = or1, or2 = or2)
}
# datos
x <-
2006 Jan 13
5
Form field naming semantics question
Hi,
I have a question today regarding how the various form elements in
_form.rhtml are named.
I understand that for a database table "persons" with a column headed by
"name", then in _form.rhtml it will probably be like:
<p><label for="person_name">Name><br/>
<%= text_field ''person'', ''name''
2006 Feb 21
1
RE: [Prototype] onSuccess Event and, Ajax.Updater bug in IE
Joe,
After removing all occurrences of charset=utf-8 from
my headers I am
still getting the same bug in IE.
Currently, it''s Content-Type: text/html
Any other suggestion?
Nathan.
> Message: 2
> Date: Mon, 20 Feb 2006 09:13:57 -0500
> From: "Joe Hudson" <joe-x8g0hQFNjJhWk0Htik3J/w@public.gmane.org>
> Subject: RE: [Rails-spinoffs] [Prototype] onSuccess
Event
2006 Apr 12
33
DUNDi with SIP
Anyone out there have a functional DUNDi configuration using SIP for the
inter-Asterisk transport? I've gotten it to work with IAX2, but if I
change it to SIP it does not pass the call over even though it knows
where to send it. Thanks.
The contents of this email message and any attachments are confidential and are intended solely for addressee. The information may also be legally
2006 Aug 04
3
Using multiple controllers within the same page
I have a page that I want to use data from several tables. I wanted to
split these into their own div''s but I do not know how to access the
different part''s controllers. There are seperrate controllers because I
developed the parts seperately.
Has anyone done this?
Thanks!
--
Posted via http://www.ruby-forum.com/.
2006 Mar 21
4
Using onSubmit tag in form_tag?
Hi guys,
I have been working on a form that would use javascript to validate the
data before submitting it, and from my view.rhtml I have a statement
like this:
However such a statement generates a HTML tag that looks like this:
<form action="/users/Login?onSubmit=validate%28%29" method="post">
Seems like Rails thinks it is a parameter instead of an option, so
2008 Jan 05
4
PeriodicalUpdater onComplete broken?
Using the PeriodicalUpdater, I''m finding the onComplete is not firing.
I thought I''d get some feedback here before filing a bug report.
http://ianty.com/updater/update_test_1.6.0.1.html
http://ianty.com/updater/update_test_1.6.0.html
The above are examples of this for prototype 1.6.0 & 1.6.0.1.
I''m expecting the onComplete to fire after the update takes place, per
2007 Mar 01
6
prototype ajax.updater response bigger than 10k on safari
Hi All,
Safari crashes everytime my ajax response is bigger than 10k, i traced
it down and found out that it breaks when evalScript is being called,
maining when extractScript is trying to match the regex.....
is this a known bug on safari?
if yes is there anyway to get around it?
thanks in advance
--~--~---------~--~----~------------~-------~--~----~
You received this message because you
2007 Oct 17
1
How to save association rules generated by arules package
Hi,
I have been able to generate association rules for Market Basket Analysis
using the following codes:
****************************************************************************
*******************************************
library("arules")
rules <- read.csv("write1.csv",na.strings=c(".", "NA", "", "?"),header=TRUE)
2006 Apr 06
4
function onComplete how to overload?
Hi all. I my apps I need to use Ajax.Request Object. One of the object options is onComplete fuction which looks like this:
funcion onComplete (originalResponse)
{
..some operations
}
I need pass to function one more parameter, how to do it? is is possible? I can''t use AJAX Updater because result of Ajax Call is uploaded to the div that I defined earlier, and in my situations I