similar to: Strange Ajax Error Since Upgrade

Displaying 20 results from an estimated 5000 matches similar to: "Strange Ajax Error Since Upgrade"

2006 Feb 22
0
Can you make an HTTP request inside an Ajax action?
I have a regular controller action which, when called, makes an HTTP GET request to another server. That works fine. I''d like to throw that inside an action called with link_to_remote, but that''s having problems. The error I get follows. Any ideas? Pat http://localhost:3000/main/ -> /javascripts/prototype.js [2006-02-22 06:08:11] ERROR ThreadError: timeout within
2007 Apr 28
0
WEBrick::HTTPStatus::LengthRequired Error
[2007-04-27 23:47:14] ERROR HTTPRequest#fixup: WEBrick::HTTPStatus::LengthRequired occured. Anyone have any idea what is going on here? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
2006 Aug 14
4
Updating a table with Ajax
I''ve been banging my head against the wall trying to update a table (add/delete rows) using Ajax. It seems simple enough but just doesn''t work for me. I can get it to work using DIVs instead of a table, but doing the layout with DIVs is much more cumbersome and I know it works for others with a table (though I haven''t been able to find an exact example code anywhere).
2006 Jul 09
6
ajax effects
Hi, i was wondering if there was some kind of general line of code i could add to my application, anywhere i suppose, that would generate some kind of effect to notify the user that an effect is happening...it could be a box on the top of the screen or something, that would be like the small bar at the end of the browser that shows the user the status of a loading page ... i was hoping
2006 Jun 28
3
couple newbie questions
Hello Folks, I am starting out with RoR and just browsed through Dave''s book ? couldn''t stop reading. I started building a prototype to get better hands on experience and I have run into two simple issues that I am hoping will be a quick answer for some of you experts out there. *Issue 1:* >From within a "companies" controller and list_companies.rhtml view
2006 Mar 20
1
RJS & IE Woes
Hi, I''m trying to do a very simple slide_down effect with RJS templates. Basically a user selects a check box and a text box slides down. This works great in firefox, but causes IE to crash. The text box appears and slides down. Then the browser crashes. the in the partial is <div id=''forklift_div''> <label for=''incident_forklift''>Was
2006 Mar 26
4
edge and 1.8.2/1.8.4 issues
I recently upgraded to 1.8.4 to try out mongrel, and so far have been in a kind of hell where I can''t get my app working! Currently running (or trying to run): Ruby version 1.8.4 (i386-mswin32) RubyGems version 0.8.11 Rails version 1.0.0 Active Record version 1.13.2 Action Pack version 1.11.2 Action Web Service version 1.0.0 Action Mailer version 1.1.5 Active Support version
2006 Apr 13
1
Adding a title to an AJAX link.
Hello all. I am trying to add a title to a link_to_remote created AJAX link. What I want to create is: <a href="#" title="VALUE-HERE" onclick="new Ajax.Updater(''content'', ''/area/show/28/40'', {asynchronous:true, evalScripts:true}); return false;">Area Name</a> However I cannot seem to get it to work, the API says
2006 Feb 28
1
Ajax functions with embedded objects
Hi, In my project, there is an rhtml page with an embedded SVG file. In my javascript functions, I can find an object by id inside the SVG file with the following: ObjectInSVG = top.document.embeds[0].getSVGDocument().getElementById("rect"); Now, I want to use Ajax methods, like link_to_remote, in the rhtml page to manipulate the SVG objects. The problem is that link_to_remote
2006 Nov 26
2
Writing a mod_put HttpHandler
I''m looking at writing a Mongrel handler that mimics the behavior of the Apache mod_put [1]. It allows for the streaming upload of very large (GB) files; it also supports resumable upload. Before I get too involved, I''d like to ask if my reading of the mongrel source code is correct, i.e. what I want to do isn''t currently possible. Looking at the class
2006 Jan 26
2
link_to_remote > in :action , interrupt ajax to render a new page outside the :update div ?
Hello, I have a simple link_to_remote that refresh a div. I just want to know if it''s possible to interrupt the div''s refresh inside :action to perform a complete reload of the page, outside of the div Actually, I havea a new page, but loaded inside the ":update" div. Someone have an idea please ? the rhtml: **** link_to_remote "yeah" , :update =>
2007 Nov 11
1
Passing from data via POST
Mongrel Users: How does the HttpHandler process() method deal with data passed via POST? The HttpRequest object captures all GET params appended to an URL, but I just tried to retrieve data passed via POST and it came up nil. that is, I assumed the HttpRequest object contained the param named in the html form and its value.But the POST passed params are not found in the request object. Please
2006 Oct 14
2
sending parameters with link_to_remote Ajax Request
In a panel, I have an hidden input field which is modified by a javascript function (from calendar) how can I sent the value of this input field in my link_to_remote call ? presently I just send back one parameter (an id) but I need both... <input type="hidden" name="booking[start_at]" id="f_date_s" value="booking[start_at]" /> ... <%=
2006 Jun 23
4
Ajax.Request with page reload?
I need to send a POST request via a link, along with paramater data for an action, and the page needs to reload. link_to_remote worked great when I was updating a DOM element but obviously won''t work when I need to reload a page. Is there an option -- Posted via http://www.ruby-forum.com/.
2008 Jul 08
8
POST instead of GET gives 404 (newbie)
Hi, Using JRuby 1.1 and Rails 2.0, I created a small project in NetBeans that allows me to generate a dynamic dialplan in XML. In case it matters, I''m using builder-2.1.2 and activerecord-2.0.2. Going in the browser to: http://localhost:3000/routing/dialplan?Caller-Destination-Number=0 Does exactly what I want: <document type="freeswitch/xml"> <section
2006 Apr 21
3
rjs in multiple ajax page
Sorry for the long explanation but I''m having trouble integrating rjs into my form page. Here''s my page: <div id="posts"> <ul id="post_list"><%= render :partial => ''list_results'', :collection => @posts %></ul> <p><%= link_to_remote(''+'', :url => {:action =>
2006 Feb 28
2
AJAX: do render but show element in same click?
I''m a rails newbie. I''ve got a link_to_remote that puts a partial render into a div ("note1", "note2", etc.). As part of the display that comes up, I put in a hide note link (element.toggle). Click that, the div goes away, everything''s great... except now I can''t get it back. How can I call the remote AND make the div show at the same
2010 Jan 13
2
[Ajax on Rails]How to pass an object via param
I''m trying to pass an object as a parameter on a link_to_remote. What I do is pretty simple: link_to_remote ''Insert subquestion'', :url => {:action => ''add_subquestion'', :question => @question}, :update => '''', :method => :get But, obviously, what I get is a string which has the address of the object. Can I
2006 Jun 19
1
AJAX - Image output to an IMG tag ?
Hi, I''m using the "link_to_remote" AJAX function call from my "view", and what i want is after i get the results from the function call, I want to update the result directly into to an image ie. <IMG> tag, how to do this.?? ie. if we want to update the result into a ''div'' element we do like this, which works fine.. link_to_remote(:update
2006 Feb 14
3
Can Ajax updates more than one <div>?
Hi, I wish to know, is it possible that Ajax can update more than one zone "<div>"???? like : <%= link_to_remote("Title", :update => ''mydiv0'', :url => {:action=>:say_hello} )%> <div id="mydiv0"> to be changed one</div> <div id="mydiv0"> to be changed two</div> When I execute the code, only