Displaying 3 results from an estimated 3 matches for "myrequest".
Did you mean:
brequest
2005 Nov 15
1
Context-question
...these days, Im asking
my question
instead of looking it up. :-)
Im making an Ajax.Request, but would like to maintain the context in the
onComplete-function.
Fx.
----------------- SNIP ------------------------
function MyClass(){
this.showMsg=function(msg){
alert(msg);
}
this.myRequest=function(){
var options={
onComplete:function(t){
this.showMsg("Request ended");
}
}
new Ajax.Request("http://myserver", options);
this.showMsg("Request started");
}
}
var test=new MyClass();
tes...
2007 Jan 21
0
Safari doesn't pass the headers.
...39;t work on Safari.
I''ve opened a ticket http://dev.rubyonrails.org/ticket/7087 for full
reference. The test case is the next:
/app/controllers/problem_controller.rb
class ProblemController < ApplicationController
def index
render :action => ''index''
end
def myrequest
render(:update) {|page| page.updateContent(params[:content])}
end
end
/app/controllers/problem_helper.rb
module ProblemHelper
def updateContent(content)
page.replace_html ''content'', content
end
end
/app/views/problem/index.rhtml
<html>
<head>
<%= javascr...
2006 Jun 29
7
Ajax.Request abort question
...ended?
right now i cant seem to get the servlet to stop processing even though the
abort method has been called, im starting to think the abort method isnt the
magic bullet that i was lazily hoping for.... can anyone help me out?
my call looks like this to kick off the process for the user:
var myRequest = new Ajax.Request(... blah blah);
and inside my cancel function, it looks like this:
myRequest.transport.abort();
thanks for the help!
BD
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://list...