search for: periodicalupdater

Displaying 20 results from an estimated 38 matches for "periodicalupdater".

2005 Dec 21
1
RE: Prototype: correct useage of onCompletewithAjax.PeriodicalUpdater
The only call that PeriodicalUpdater will make periodically to you is the insertion call. I think of onComplete as being ''I''ve done everything I was going to do'', which for Updater is right after it''s done a single update, but for PeriodicalUpdater, it''s after it''s finished all of...
2005 Dec 21
1
RE: Prototype: correct useage of onComplete withAjax.PeriodicalUpdater
>From a quick look at the source code, it looks like onComplete is only called when the whole thing is done - in the case of Updater, right after the update, in the case of PeriodicalUpdater, right after it has been stopped. It looks like you need to pass your callback method as an ''insertion'' method in the options. This takes two parameters, the first will probably be the first parameter you passed to new PeriodicalUpdater, the second will be the response. e.g. n...
2007 Feb 23
4
Does Ajax.PeriodicalUpdater have a shield against multiple parallel executions?
Hello Does Ajax.PeriodicalUpdater have a shield against multiple parallel executions? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3M...
2008 Jan 05
4
PeriodicalUpdater onComplete broken?
Using the PeriodicalUpdater, I''m finding the onComplete is not firing. I thought I''d get some feedback here before filing a bug report. http://ianty.com/updater/update_test_1.6.0.1.html http://ianty.com/updater/update_test_1.6.0.html The above are examples of this for prototype 1.6.0 & 1.6.0.1. I'...
2008 Jun 13
3
dynamically change frequency in periodicalUpdater
Hello All, I''ve seen this topic but it seems no one has post a response. I''m using periodicalUpdater to display live content queried from a database. Sometimes the result can be thousands of rows and before it finishes processing (displaying as a visual indicator) all the data, the next request is sent to the server. I''d like to have a periodicalUpdater whose frequency can be set bases o...
2006 Nov 08
1
Yet another periodicalupdater question
I have something I want to do with the periodicalupdater.. 1) place text in a field by id (I know how to do this part as periodicalupdater makes is quite easy) 2) run a javascript statement to assign a value to a variable. Any ideas how I can do this with one periodicalupdater statement? Thanks, --~--~---------~--~----~------------~-------~--~----~...
2005 Dec 21
0
Prototype: correct useage of onComplete with Ajax.PeriodicalUpdater
Hello all, I know it''s a Prototype question, but I hope someone can tell me what I''m doing wrong (I hope Prototype gets documented soon ;-( Problem: using a onComplete callback with Ajax.PeriodicalUpdater (using scriptaculous 1.5 with Prototype 1.4) Works: function fooBar() { Element.hide(''foobar''); } new Ajax.Updater(''buddies-and-locations'', ''/ajax-url'', { asynchronous:true, onComplete: function(request) {fooBar();}, onLoad...
2007 Aug 29
1
Re: using Ajax.PeriodicalUpdater in iPhone
...ably the iPhone. I mean, would you *really* want your phone to be connected to the internet all the time? On 8/28/07, richieright-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <richieright-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi, > > I met a strange problems with PeriodicalUpdater in iPhone. This timer > event will last only four or five times. > > Code: > start :function(){ > ... > var soptions = {} > soptions.postBody = "RequestBody=" + > pars.toAjaxRequest().Body; > soptions.onSuccess = this.getMeeting...
2008 Jan 22
3
prototype 1.6 Ajax.PeriodicalUpdater executing old scripts??
Hello , I have a PeriodicalUpdater executing every x seconds and sends a ajax request to update an element. Each time it comes back, the element is getting replaced with some html and and possibly <script>coolFunction()</script>. This seems to work fine when for prototype 1.5. However when I upgraded to prototype 1.6, it...
2006 Jul 17
1
RJS and PeriodicalUpdater -- example?
In a controller, I''m trying to do def do_some_periodic_thing render :update page << ''var foo = new Ajax.PeriodicalUpdater("someDiv", "/some/path", {asynchronous:true, frequency:1, evalScripts:true} );'' end end In the view, I have <%= link_to_remote "Test Periodical", :url => { :action => "do_some_periodic_thing"}%> But according to the log, /some/path...
2005 Jul 27
1
Upload Progress, Error in Ajax.PeriodicalUpdater
Hi, I''m using Upload Progress class of rails and geting this javascript error in js console: "*Ajax.PeriodicalUpdater is not a constructor*" The view have somethink like: <%= form_tag_with_upload_progress( {:action => ''create_gallery''}, { :name => ''new_gallery'', :begin => "alert(''begin'')", :finish => "al...
2007 Mar 07
0
PeriodicalUpdater with Logarithmic decay
Greetings all, So, I''ve finally found a place to play around with the Ajax.PeriodicalUpdater. In looking at the API, I''m liking the decay option -- not necessarily for my current purpose, but just to keep in mind -- and I have a question: can the decay be a function which returns an integer? Basically, why I''m looking for is a logarithmic decay (where the system up...
2008 Apr 21
0
Stopping Ajax.PeriodicalUpdater based on response
I have an Ajax.PeriodicalUpdater updating a div on my page and I want to be able to execute the stop method when the div contains certain content. As I understand it, I cannot pass in an options.onComplete handler and onSuccess is executed before the response is completely interpreted by the browser. I tried using Ajax.Responder...
2007 Sep 28
3
Why PeriodicalUpdater doesn't work on Internet Explorer?
I have the following code: <script type="text/javascript"> Event.observe(window, ''load'', function() { var updater = new Ajax.PeriodicalUpdater(''chatbox'', ''chat.php'', {method: ''get'', asynchronous: true, frequency: 0.55, decay: 2, onSuccess: function(){$(''chatbox'').scrollTop=$ (''chatbox'').scrollHeight}}); }) </script> It''s for a chat...
2005 Sep 27
8
prototype.js
Hi *, We don''t know if you guys are the right audience, but we got a problem with prototype.js we need to solve. Essentially, it is a compatibility bug with the IE. We wrote a component so it updates itself periodically using AJAX. we used the prototype.js to accomplish this (using the periodicalUpdater object). now the component works fine using firefox or opera, but NOT with IE. the problem is the following line of code: receiver.innerHTML = response; where receiver is of type: ''HTMLTableSectionElement'' (inheriting the innerHTML attribute from HTMLElement, which is a plain st...
2006 May 02
6
Stopping the Ajax.PeriodicalUpdater -- My Kludge?
...poll pbKill() which checks the percent value & if it''s greater than 10, issues STOP to updater before destroying it (when a STOP is recieved, the onComplete function is called[pbClean()]). <script type="text/javascript"> // <![CDATA[ if (!pb) { var pb = new Ajax.PeriodicalUpdater("ajaxUpdate", "ajax_mailingStatus.php", { asynchronous:true, frequency : 2, onSuccess: pbCheck, onComplete: pbClean }); } var percent = 0; function pbCheck(request,json) { percent = json.percent; } setTimeout(pbKill,5000); function pbKill() { if (percent > 10) {...
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 Mar 01
3
Ajax.PeriodicalUpdater using Effect.Highlight to highlight newly loaded div
..."></script> <script src="includes/scriptaculous.js" type="text/javascript"></ script> <script type="text/javascript"> var ajaxPopulater = function (id,url){ url = url + ''?StopCache='' + new Date; new Ajax.PeriodicalUpdater(id, url, { method: ''post'', frequency: 1, asynchronous: true, insertion: Insertion.Top, onSuccess: highlight, decay: 1 }); } var highlight = function(originalRequest){ new Effect.Highlight(''test''); } </scr...
2006 May 23
10
throttling...
Is there a way to throttle the firing of updater requests easily with Prototype? Thanks, mark
2010 Feb 25
10
ajax.updater problem
...y problem is that my program doesn´t refresh the div tag, following it´s my source code. Anyone can say me why it doesn´t work? <head> <%= javascript_include_tag ''prototype'' %> </head> <script type="text/javascript"> { new Ajax.PeriodicalUpdater(imagen, ''image_tag("/guarrada/guarrada/foto.jpg")'',{frequency:''1''}); } </script> <h1>HOLA MUNDO</h1> <%= link_to "My blog", posts_path %> <p><%=image_tag("/guarrada/guarrada/foto2.jpg")...