Displaying 20 results from an estimated 300 matches similar to: "Problem passing event object"
2014 Dec 08
2
CRAN packages mis-using \donttest : falsy
Hi all,
anyone has an idea how I could fix this?
\donttest{
## Set colors from colorspace package with a fallback
col <- try(colorspace::rainbow_hcl(5), silent = TRUE) %||% rainbow(5)
}
The problem is that this makes R CMD check freak out
(http://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-debian-clang/falsy-00check.html)
if the colorspace package is not declared as a dependency.
2006 Jun 30
2
Ajax.Request synchronization (onSuccess before onComplete?)
2 questions regarding the synchronization of these events.
1) is onSuccess called before onComplete ( I assume it is)
2) if called after, is onComplete called after the onSuccess
method has completed or are you at the mercy of synchronization issues?
Hopefully someone can enlighten me. I tried reading the Prototype.js but
couldn''t seem to determine this on my own.
2006 Jan 25
10
Ajax.InPlaceEditor onSuccess: ???
I''m looking for onSuccess: in Ajax.InPlaceEditor, but it doesn''t
appear to exist. onComplete isn''t what I need because I only want my
callback on success. Is there a way to do this?
Thanks,
Jamie
2008 May 21
6
this.initialize has no properties error in Prototype Code
Hi All,
I''m a super newbie with Prototype and am trying to implement my first
solution using it.
This is my code:
var span = ''totalViews'' + video_id;
var params = ''video_id='' + video_id;
Ajax.Response(''trackVideo.php'',
{
method: ''post'',
parameters: params,
onSuccess: function(transport)
{
2007 Sep 27
4
transportXML returns null?
Hi,
I want to load an XHTML file into DOM. I issue Ajax.Request and on
success do:
var response=transport.responseXML
Response is null. On the other hand:
var response=transport.responseText; // has the data.
Why is response=transport.responseXML returns null?
Here is the code:
function display() {
url = "http://" + location.hostname + port + "/fusion/
2006 Feb 14
7
onFailure fails?
Hi all,
I have this code:
new Ajax.Request(''non_existant.file'', {
onSuccess:function(){alert("yay");},
onFailure:function(){alert("boo");}
});
Why does the onFailure alert never get called? It works fine if I use
a real file (onSuccess gets called).
Thanks,
Douglas
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 Jun 28
12
Ajax.Updater
Hi,
someone can help me, I am ot able to find the way how to user
Ajax.updaterto test if the request give some positive or negative
result.
I am able only to return the result inside a div.
An example is appreciated.
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
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
2005 Dec 05
3
Effect.Highlight on Ajax.Updater
Hello to all list members...
Exchuse for my bad english, I don''t write english very well.
I''m searching for a solution to hilight a div when his value change.
The value in these div is take from Ajax.Updater .
the code is:
new Ajax.Updater(''acc'',''tools/head_info.php'',{asynchronous:true});
and have a settimeout to recall it every 5 seconds.
2007 Jun 16
3
Help with effect queue.
I have an interesting challenge for you. I am using both Scriptaculous
and Prototype on a web site (not using Ruby) and I am trying to queue
effects and updates. Here is the situation - I have a page with
editable blocks, when the user clicks on the edit button under the
box, I want it to:
1) Use Ajax to go out and get the code to build the editor form.
2) When it has the form, use Effect.BlindUp
2008 Jan 04
6
Ajax.Request: onFailure vs. onException
Hello All,
I''m trying to capture the exception message that my server application
is providing in response to my Ajax.Request. However, I''m confused as
to when onFailure is fired vs. onException. The onException handler has
access to the javascript exception object and I''d understood that it was
only called when the dispatch fails. Not sure what exactly that means
2007 Nov 20
3
Ajax.Updater -- Cancel DOM write?
Is it possible to cancel the DOM write to the element passed to
Ajax.Updater? I didn''t see anything in the documentation, and I''d like
to use this instead of Ajax.Request. There are situations where the
results that are returned will not be what is expected, and I have no
control over this. For this reason, I''d like to be able to cancel
writing to the DOM.
Thanks in
2006 Aug 17
2
link_to_remote option :onsuccess, execute js function
How should I define the :onsuccess option in my - link_to_remote - tag,
to execute a Js function
I wrote :
:success => "toggleButton(this, /db_bfilter/i);"
''this'' is the current element defined in my view :
<span id="db_bfilter0" class="depressed"><%= filter_link_helper "This
week" %></span>
<span
2006 Apr 22
0
Checkboxes get reset in sortable element in IE
Hi,
I am creating a list of checkboxes and text using this code:
<% count = 0 %>
<ul id="fields_list">
<% fields_ary.length.times do %>
<%= "<li id=''item" %> <%= count %> <%= "''><span class=''chkBox''> <input
type=''checkbox''></span><span
2009 Jun 14
3
Basic AJAX Response (Mootools)
Hi,
I''ve done AJAX calls to Rails'' Controllers before yet never required to
generate a response back to the view. In this respect, I have tried to
keep it moronically simple and just add a node to see that it works, yet
the response doesn''t come through / isn''t interpreted as it should. Long
story short, code :
// Have to use Mootools to integrate a
2006 May 24
5
Ajax.RssReader object
Hi all,
I''m happy to announce that I''ve completed the first version of my
Ajax.RssReader object. It needs some extra''s, but the basic functionality is
now available. You can download it from
http://www.sayoutloud.com/javascripts/rssreader.js
Usage:
function myCallbackFunction( rss ) {
alert(rss.channel.title);
for(n=0; n<rss.items.length; n++) {
2008 Feb 22
1
Ajax.Responders.register: onFailure not working
Hello together.
I''ve tried to register an onFailure behavior for all my Ajax.Requests
and .Updaters to handle a session-based timout system.
On each server request via Ajax there is a check whether the user
hasn''t made something for the last x minutes, and if he hasn''t, the
php page throws an 403 forbidden header (via header("HTTP/1.1 403
Forbidden")).
I am
2007 Jun 04
2
Re: Ajax.Request question with JSON return
Do I need something like this:
eval(''('' + this.header(''X-JSON'') + '')'')
(taken from Cody Swann,
http://ajaxian.com/archives/prototype-extension-dynamic-script-pattern-support
).
I''m guessing my problem is simpler, and I''m leaving something small out
related to the header though.
Thanks for any help
-Mark
1. evalJSON:
2006 Feb 13
2
[PATCH] Allow generic autocompleter (Ajax.Watcher)
Hey. Below is a patch to allow generic Ajax.Autocompleters. Basically
it''s for people who wanna be able to watch an input for changes, but
don''t want it to pop up an autocompleter box below. Useful for live
previews, that kind of thing.
Someone''s gonna have to fix the tabstops. I couldn''t be arse to work out
how to make vim do the softtabs properly. Spaces for