search for: updatecontent

Displaying 12 results from an estimated 12 matches for "updatecontent".

2005 Sep 02
3
Ajax.InPlaceEditor
...form posts to the correct URL that I specify in the code, yet it does NOT pass the paramater of ''value'' nor its value... In fact it passes NO paramaters to the URL I specify, it just hits the URL.... So... On IE I get the value, but its not posted to the URL I specify(/secure/updateContent.cgi?....) And... On Firefox it posts to the correct URL, but I dont get the value.... Heres my code: <span id="edit $title" style="text-decoration: none;background-color:#36475E;">$title</span> <a id="edit $title co...
2006 Apr 07
0
Ajax.Updater asynchronous => false
...ynchronous option to false. I tried this and noticed that the content was being requested synchronously but the content was never injected into the DOM tree like one would expect from Ajax.Updater. In order to get the content returned by XmlHttpRequest inserted into the DOM tree, I had to call updateContent() on the Ajax.Updater instance, which happens automatically when using asynchronous requests. Asynchronous Version: new Ajax.Updater( some_id, url, { onComplete: function () { alert("update completed"); } } ); Synchronous Version: var updater = new Ajax....
2006 Apr 08
0
Re: Rails-spinoffs] Ajax.Updater asynchronous => false
...false. I tried this and noticed that the content > was being requested synchronously but the content was never injected into > the DOM tree like one would expect from Ajax.Updater. > > In order to get the content returned by XmlHttpRequest inserted into the > DOM tree, I had to call updateContent() on the Ajax.Updater instance, > which happens automatically when using asynchronous requests. > > Asynchronous Version: > > new Ajax.Updater( > some_id, > url, > { onComplete: function () { alert("update completed"); } } > ); > &g...
2007 Jan 21
0
Safari doesn't pass the headers.
...ed 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> <%= javascript_include_tag :defaults %> <script...
2007 Mar 01
3
Ajax.PeriodicalUpdater using Effect.Highlight to highlight newly loaded div
Hi folks. So far I have managed to get dataloading into a div froma php script. This script just passes the time on the server in a div to the javascript below. I am trying to get the last loaded data to call Effect.Highlight but it seems to highlight the 2nd last data instead. Can anyone see what''s going wrong here? I''ve tried everywhere to solve this. Check the code in action
2006 Feb 14
5
problem with sortable lists and IE
...? $(container.failure) : (container.success ? null : $(container)) } this.transport = Ajax.getTransport(); this.setOptions(options); var onComplete = this.options.onComplete || Prototype.emptyFunction; this.options.onComplete = (function(transport, object) { this.updateContent(); onComplete(transport, object); }).bind(this); this.request(url); }, updateContent: function() { var receiver = this.responseIsSuccess() ? this.containers.success : this.containers.failure; alert("test 1"); // this will execute var response = this....
2006 Apr 25
1
asynchronous False and Ajax.Responders object (bug)
...Updater). There is bug in prototype (discused in mailing - list: here http://wrath.rubyonrails.org/pipermail/rails-spinoffs/2006-April/003488.html and here http://wrath.rubyonrails.org/pipermail/rails-spinoffs/2006-April/003497.html). trying to put data from server to my html properly, I need call updateContent() on Ajax Updater. This small hack semms work very well, but there is another problem. I want show some visual indication when an AJAX call is in progress, and I''m using standard Ajax.Responders. So generally it work but there is 2 exception: 1) It''s not working with synchronous...
2005 Oct 05
0
Ajax.Updater form values
...wser by Ajax.Updater, so I was specifying a <textarea> as the target container. This worked fine in Firefox both platforms, but not in Safari or IE6. After investigating it seems that setting the innerHTML property of form objects is the problem. I modified the Ajax.Updater.prototype.updateContent method to check if the container has a "value" attribute and set that instead if it exists if (this.options.insertion) { new this.options.insertion(receiver, response); } else if (receiver.value !== undefined) { //form inputs need to set their value...
2005 Sep 19
0
AJAX update_method support
...s it was fixed in RoR and works correctly. I''m not a RoR user, but use Prototype with Perl and wondered if there were any other users having a problem where they get an error with Ajax.Updater when in IE. There''s no real error, but the MS JS debugger has a problem with line 6 of updateContent in prototype.js. Any help is greatly appreciated! Kevin -- Kevin Old kevinold@gmail.com
2005 Aug 23
2
using the evalScript option on Ajax.Updater
...ar that the regex is finding my JS in the response... I''m doing an update request and the response is coming back correctly to the updateConent function as this string: <script language="Javascript"> alert("fdsfa"); </script> But the scripts var inside of updateContent is still coming out as null. Thus, obviously, my alert isn''t being run, because it doesn''t think it''s a script. My regex is a little rusty, so I''m not quite sure what the ":" does in the ScriptFragment variable it''s using to parse out JS code...
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
2007 Mar 01
6
prototype ajax.updater response bigger than 10k on safari
Hi All, Safari crashes everytime my ajax response is bigger than 10k, i traced it down and found out that it breaks when evalScript is being called, maining when extractScript is trying to match the regex..... is this a known bug on safari? if yes is there anyway to get around it? thanks in advance --~--~---------~--~----~------------~-------~--~----~ You received this message because you