Displaying 5 results from an estimated 5 matches for "theresponse".
2006 Apr 10
10
Prototype Ajax - How to pass my own params to onComplete ?
...along
NamedActionElement = theElement;
//skip setting up my vars for the ajax call
//make the ajax call
var ajaxCall = new Ajax.Request( urlCall,
{method: ''post'',
postBody: postFormData,
onComplete: NamedActionResponseHandler}
);
}
function NamedActionResponseHandler(theResponse)
{
var elementThatTriggeredEvent = NamedActionElement;
//do stuff based on values i have encoded into the element and
//the data returned in theResponse
}
----------------------
As you can see, i have to have this global variable so my onComplete
function can know which element triggered the e...
2006 Apr 10
1
RE: Re: Prototype Ajax - How to pass my own params toonComplete
...changed recently). You can do
.bindAsEventListener to make sure the event object is passed along, in
the case of real event handlers, but that doesn''t apply here.
I''m not sure why my suggestion earlier didn''t work. You should be able
to do this:
onComplete: function (theResponse) {
NamedActionResponseHandler(theResponse, theElement); }
function NamedActionResponseHandler (theResponse, theElement) {
// work your magic
}
If you are sending your ajax call inside another object and need to make
sure the response function is called on the same object, that is where
the .bind(...
2009 Jul 26
1
obtain names of variables and data from glm object
...ta=DAT)
Is there an elegant way--or the "right way" within the R way of thinking--to
obtain the names of the response variable, the predictor variables, and the
dataset, as character strings?
For instance, suppose the "right way" was to use the (currently fictitious)
functions theresponse(), thepredictors(), and theDataSet(). Then I would be
able to write a function that obtains the names and subsequently pastes text
along the following lines:
theResponse <- theresponse( myglm )
theFirstPredictor <- thepredictors( myglm )[1]
theDataSet <- theDataSet(myglm)
title(main=...
2006 Apr 10
1
RE: Prototype Ajax - How to pass my own params toonComplete ?
...etting up my vars for the ajax call
>
> //make the ajax call
> var ajaxCall = new Ajax.Request( urlCall,
> {method: ''post'',
> postBody: postFormData,
> onComplete: NamedActionResponseHandler}
> );
> }
>
> function NamedActionResponseHandler(theResponse)
> {
> var elementThatTriggeredEvent = NamedActionElement;
>
> //do stuff based on values i have encoded into the element and
> //the data returned in theResponse
> }
>
> ----------------------
>
> As you can see, i have to have this global variable so my onComplet...
2006 Jan 23
6
Performance Issues with Autocompleter
Hi All,
I am currently using script.aculo.us and Autocompleter for a project which I
am dealing now. I
faced a situation for which I couldnt find any solution and I could not see
any reference
regarding this issue in the enhancement/bug lists of script.aculo.us either.
Autocompleter component is working perfectly, if the information returned
from the server
does not exceed ~1000 LIs.