similar to: AJAX and partial template rendering

Displaying 20 results from an estimated 20000 matches similar to: "AJAX and partial template rendering"

2006 Mar 28
3
AJAX/CSS issue (more UI focused)
All, This isn''t strictly a problem or issue with RoR but I wondered if someone might have some insight. I have a DIV on a page which I am using to "preview" the contents of a URL provided by the user. Basically, when the user clicks on a link, I do an AJAX call to an action which uses Net::HTTP to request the URL in question and then update the DIVs innerHTML attribute
2006 Mar 20
4
Ajax.Request w/standard redirect doesn''t render
I am doing an Ajax call in my page to a controller method like so: new Ajax.Request(''<%= url_for(:action => "target_list_add" )%>'', { asynchronous:true });" In my controller method "target_list_add", I do something and then I say: redirect_to( :action => ''target_list_upload'', :layout => false ) I know for certain
2006 Mar 20
1
AJAX in conjunction with partials
All, Trying to clear up some confusion on my part. If I make an Ajax call using Ajax.Request and in the controller method that I call, I do a render (:partial => ''whatever.rhtml''), should I expect that ''whatever.rhtml'' will be rendered in the browser or not? Put another way, is it in any way reasonable for me to think that Ajax.Request + partial render
2006 Mar 22
1
Ajax.Updater dropping first <OPTION> on IE?
I am attempting to use Ajax.Updater to update the innerHTML of a SELECT - that is, to feed it a list of <option>..</option> sets generated from a partial. It works as expected on FF1.5, but in IE6 it renders as an empty select. When I use the DOM viewer (or an alert()) to dump the value of innerHTML, it appears intact EXCEPT that the first <option> is missing with no
2006 Nov 11
2
Setting Ajax.Updater update target to alternate window?
I need to make a call to Ajax.Updater(container, url, options) where container needs to be a DOM element in another window. So assuming my form is in window "X", can I specify a DOM element in window "Y" as the update target for my AJAX call? If I can, what is the correct syntax? Thanks, Wes -- Posted via http://www.ruby-forum.com/.
2005 Oct 05
0
Ajax.Updater form values
Hi I came across this while testing which may be somewhat unnatural but could be useful. I wanted to see the html that was being sent back to the browser 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
2006 Mar 14
5
Best way to use partial rendering in global layout
I have a global layout in application.rhtml and I''d like to render a partial template within it. Currently, I have this: <%= render (:partial => ''side_nav'') %> but it seems to be looking in the controller specific view directory. What is the best way to do handle controller - global partial rendering? Wes -- Posted via http://www.ruby-forum.com/.
2006 Feb 20
1
[Prototype] onSuccess Event and Ajax.Updater bug in IE
Hi all, Is there a known bug with Ajax.Updater not working in IE6? I''m having trouble with a Autocompleter control that calls a function that contains an Ajax.Updater as an AfterUpdateElement callback. It works fine in firefox, but I don''t think Ajax.Updater gets called under IE. http://pastebin.com/563889 1. function updater(input, item) { 2. var
2006 Apr 19
1
render() call that does AJAX request?
All, I have a page where I was using link_to_remote to do an AJAX call to dynamically update another part of the page. I''d like to just do the update no matter what (e.g. take out the need for the user to click). So I''m thinking that I need to render, but I want my render to do an AJAX request to the same controller method that my link_to_remote did. How can I achieve
2006 Feb 21
1
RE: [Prototype] onSuccess Event and, Ajax.Updater bug in IE
Joe, After removing all occurrences of charset=utf-8 from my headers I am still getting the same bug in IE. Currently, it''s Content-Type: text/html Any other suggestion? Nathan. > Message: 2 > Date: Mon, 20 Feb 2006 09:13:57 -0500 > From: "Joe Hudson" <joe-x8g0hQFNjJhWk0Htik3J/w@public.gmane.org> > Subject: RE: [Rails-spinoffs] [Prototype] onSuccess Event
2008 Feb 13
8
comparing ajax.updater div in js
This is really bugging me no matter what I''m trying. In javascript, I''m using the ajax.updater, and it (obviously) writes back out to a div. I want to then compare what was echoed out into this div (which came from the php file I listed in ajax.updater) with a string. test should equal "SomeString" because that is what is being echoed out to
2007 Feb 19
0
Ajax.Update nested within Ajax.Request
Hi everyone, I have a script below that submits a form using Ajax.Request which is working fine. onComplete or onSuccess though, I''d like it to refresh the div form (formCapture), but so far I can''t get it to work. The script runs to into the onComplete stage, but the div isn''t refreshed. Can anyone help with this? Regards, Robert Hofmeyr function subForm() { new
2006 Jun 27
5
Ajax - Inserting selected elements from request.responseText
After retrieving a URL using an Ajax.Request... function onComplete (request, json) { // request.responseText holds the entire page Only the content contained in elementID = ''source'' is intended for display At this time, the following code works, but it disturbingly copies the entire page from the source URL into the target DIV $(''target'').innerHTML =
2007 Nov 13
0
Ajax.Updater evalScripts:true
Hello, i habe a problem to include <script> code in div container. function ajaxUriDivJava(url, z) { try{$(z).innerHTML="<centrer><img src=''http:// static.mymir.org/wait30trans.gif''></centrer>";}catch(e){} var pars = ''''; var myAjax = new Ajax.Updater( {success: z}, url, { method:
2007 Mar 02
12
Prototype: Ajax.Request w/asynchronous: false
All, I have the following Ajax call: new Ajax.Request(action, {asynchronous: false, method: ''post'', parameters: params_to_pass, evalScripts: true}); The action that I''m calling is using render :update to send back Javascript. When asynchronous is set to true above, then the Javascript is executed (because of evalScripts:
2006 Mar 13
3
problem updating mulitple divs with ajax
i''m having some issues updating multiple divs via ajax. perhaps someone can lend some assistance. i''ve got 2 divs: user_list and user_form. when a person clicks the "edit this user" or "add new user" link the user_form div is updated via an ajax call and the form is shown in the user_form div. this form is a remote form. it submits to either the update
2005 Aug 21
0
[PATCH] in-place-editor, AJAX loading
I sent this on Friday but somehow managed to email it to the wrong email address! ---- Attached is a patch to add external (AJAX) loading of content to the InPlaceEditor. 2 extra options have been added: loadUrl: a URL to load the content from. If this is present, it will be used instead of the innerHTML. fieldId: I had to add this so we know what the text field is when we''ve
2005 Dec 22
0
RE: Re: ajax - multiple updates on singlexmlhttprequest
>From looking at the Prototype code, it looks like any text in the ''X-JSON'' header will be eval''d and passed as the second parameter to your onSuccess handler. Your handler function could then be (using all the power of Prototype): var handlerFunc = function(t, json) { // Update info container Element.update(''someId'', json.foo); } But your
2006 Jun 27
5
Can''t call public application.rb method from ERb template
All, I have a left navigation partial that I want to dynamically generate CSS classes for based on the current controller action. In my ERb template, I have <DIV class="<%= get_menu_display_style(''login_form'') %>"> In application.rb, I have the method get_menu_display_style defined as: public def get_menu_display_style(action_requested)
2006 Feb 07
1
Help needed with conflicting EventObserver
Hello everyone, I have a page that populates/updates make, model and year select lists via Ajax.Updater and I think that an EventObserver is causing a conflict. Here''s what I''m trying to do. I''m using this page as a create and edit page for a car database. If I''m calling the page in edit mode, I''ll want the make, model and year set (using the