Guruza search results for ajax http://guruza.com/searches/show/32 Questions recently submitted to Guruza that match the query: ajax Fri, 29 Aug 2008 13:51:19 -0700 $50.00 - I'm building a RoR application that uses sever Ajax.Updater's that load parti... http://guruza.com/question/417/reward-50.00 I'm building a RoR application that uses sever Ajax.Updater's that load partials into DIVs on the page. Unfortunately is the user's session expires it loads the contents of '/user/login' into the DIV that was updated by the Ajax.Updater. Furthermore, this login for doesn't work like the one at '/user/login' **What is the best way around this problem?** A valid answer would include some sample code or a link to some. Ideally the solution would happen on the Rails side of things, but if there is an elegant solution in the form of modify the prototype.js I would accept that as well. Thu, 21 Sep 2006 10:45:19 -0700 $5.00 - My site spans ajax requests that take a while to execute on the server. Howe... http://guruza.com/question/360/reward-5.00 My site spans ajax requests that take a while to execute on the server. However, this request becomes invalid if the user makes another request before the first one is completed. In order to save server resources, I'd like to be able to kill the 1st server request when the second one is sent. I was thinking about polling the session to see if a certain criteria is met. If it is, I'd just abort the current call. How would I do that? I guess I'd have to launch a second thread when the ajax request starts (on the server side) and that thread would poll the session every 100ms or so. If the criteria is met, it would kill the request. I'd like to see a code example of this. Wed, 30 Aug 2006 00:25:10 -0700 $5.00 - I'm developing a new web games site - we're letting users upload Flash games ... http://guruza.com/question/302/reward-5.00 I'm developing a new web games site - we're letting users upload Flash games which will be wrapped with our chat client & other community features. I'm curious about integrating with IM clients. I like the way Guruza does it - what do you guys use? I'll be at the RoR meetup tonight so you can tell me in person. Tue, 08 Aug 2006 08:42:41 -0700 $5.00 - Problems with Asynchronous Ajax requests. I have an onload() function that ca... http://guruza.com/question/281/reward-5.00 Problems with Asynchronous Ajax requests. I have an onload() function that calls a simple javascript method that just executes multiple ajax requests. function search() { new Ajax.Request('/main/search/1', {asynchronous:true, evalScripts:true}); new Ajax.Request('/main/search/2', {asynchronous:true, evalScripts:true}); new Ajax.Request('/main/search/3', {asynchronous:true, evalScripts:true}); new Ajax.Request('/main/search/4', {asynchronous:true, evalScripts:true}); } The problem is that when say the first request hangs, the other request pause and wait till the first request is finish. I was under the impression that the other requests would be fulfilled regardless since each request is a new request to the server. I need to be able to have a request sit and not affect the other request. I am using webbrick right now in development mode as my webserver. What am I doing wrong? **UPDATE** The HTTP/1.1 spec does not provide any guidelines on the ideal number of requests to pipeline. It does, however, suggest a limit of no more than 2 keep-alive connections per server. Thu, 27 Jul 2006 18:21:08 -0700 $10.00 - I have a rails app that runs an nmap scan on a host and reports the response ... http://guruza.com/question/279/reward-10.00 I have a rails app that runs an nmap scan on a host and reports the response via ajax. I use backtick to run nmap via my controller. What I've noticed is that if the nmap scan takes a while (say about 2 minutes), rails will block all request until the shell command finishes executing. My question is if there is a more effecient way to run shell commands via rails? Will I have to thread the nmap scan so the rails controller doesn't block until it receives a response? Thu, 27 Jul 2006 12:04:06 -0700 $5.00 - How can I do an OnClick call using AJAX and Ruby on Rails? I have an applicat... http://guruza.com/question/250/reward-5.00 How can I do an OnClick call using AJAX and Ruby on Rails? I have an application that allows you to ping an ip address by clicking on a link called 'ping'. When you click on it, the ping results get set inside a div tag. This works just as intended, however I would like the ping link to become unclickable and for the text to be changed to 'Pinging'. The problem is when I do the ajax call, the link gets updated at the same time as the div does. My intention is to prevent users from clicking on the link more then once, so by updating the link they can see that an operation is occuring in the background. In my mind I envision that the onclick would update the text of the link and commit the ajax call that would update the results div, does this sound right at all? Wed, 19 Jul 2006 05:48:51 -0700 $25.00 - What is the most important thing that we can do to improve Guruza? I will ... http://guruza.com/question/233/reward-25.00 What is the most important thing that we can do to improve Guruza? I will select the 5 "best" answers and then pick one at random for the reward! rich-collins-computer:~ rcollins$ irb irb(main):001:0> require 'rubygems' => true irb(main):002:0> require 'facet/array/at_rand' => true irb(main):003:0> "Dave | nerkles | AgeKay | Jake McArthur | funnyguilly | larry | jer | bryce".split(' | ').at_rand => "Dave" irb(main):004:0> Congrats Dave and thanks for all of the suggestions from everyone! Tue, 11 Jul 2006 16:32:22 -0700 $5.00 - I have a new Web 2.0 site that I've just built and I want to promote it. What... http://guruza.com/question/150/reward-5.00 I have a new Web 2.0 site that I've just built and I want to promote it. What are 10 places you'd promote it to get the most traffic? Thu, 29 Jun 2006 20:13:19 -0700 $10.00 - Can I use Ajax to request a controller/script multiple times and simulate mul... http://guruza.com/question/93/reward-10.00 Can I use Ajax to request a controller/script multiple times and simulate multiple threads? Fri, 09 Jun 2006 13:42:18 -0700 $5.00 - Miguel Can you help me debug chat? http://guruza.com/question/85/reward-5.00 Miguel Can you help me debug chat? Wed, 07 Jun 2006 13:56:46 -0700 $3.50 - Testing UTF8: 注目エントリーの閾値 http://guruza.com/question/81/reward-3.50 Testing UTF8: 注目エントリーの閾値 Tue, 06 Jun 2006 12:58:50 -0700 $100.00 - What is the sqrt(0)? http://guruza.com/question/75/reward-100.00 What is the sqrt(0)? Sun, 04 Jun 2006 08:35:08 -0700