Displaying 6 results from an estimated 6 matches for "updatediv".
2005 Dec 24
2
Ajax Help: Multiple Updates - ?
...gt;
eval(request.responseText) instead of :update"
I''ve attempted the following test code:
# in the view
<select name="plist", class="required", onchange="<%=
remote_function(:complete => evaluate_remote_response, :url => { :action
=> :updateDivs }) %>" >
<option>Select a Person</option>
<option>Select a Dog</option>
<option>Select a Frog</option>
</select>
<br>
<div id="detail1"> </div>
<br>
<div id="detail2"> </div>
<br&g...
2006 Jun 16
10
Issue with caching of .PNG files in IE..
I''m running a Rails application with WEBrick server. We are displaying
an Image from the server to the Client (Browser). First time on the
browser everything looks fine, upon clicking the link, it contacts the
server and displays in IE brwoser the image that was stored on the
server.
But in case if the image gets changed on the server(File Name being the
same), then even though i
2006 Jun 19
1
AJAX - Image output to an IMG tag ?
...t 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 => ''updatediv'',
:url => { :action => :my_method })
But i want to update the output which is an ''Image'' in my case into a
HTML IMG tag and display it in the browser. I want to go only for <img>
tag..
Thank You
Dinesh
--
Posted via http://www.ruby-forum.com/.
2006 Apr 18
7
[Prototype] evalScripts not working for me
...e "test" button pops a "test is not defined" error. This
is basically the same code that is in the example at http://
www.sergiopereira.com/articles/prototype.js.html so I don''t know what
I''m doing wrong.
Here is how I call Ajax.Updater:
new Ajax.Updater(updateDiv, "Profile/update.aspx", {
asynchronous: true,
parameters: params,
evalScripts: true,
onComplete: function() { refresh_columns(); }
});
Yes, I am stuck in ASP.NET for this project. :-(
--
Brad Ediger
866-EDIGERS
_______________________________________________
Rails-spinof...
2005 Jun 10
1
Submitting an ajax form via a select
I''m trying to submit an ajax form via an onchange method in a select
menu, but I can''t seem to do it.
The problem holding me up, is that I can''t figure out how to set the
ID of the form when using a form_remote_tag (I need to use the ID of
the form as the forms on the page are variable, so I can''t reference
it in the form array). Setting :id =>
2006 Mar 08
6
Difficulty with params hash and submit_to_remote
Hi,
Is there any trick to initializing the params hash via submit_to_remote()? I
have a form with two submit methods - the regular, non-AJAX method, and the
AJAX method. The regular method works like a champ. The submit_to_remote
invokes the correct controller, but the params hash is empty except for the
values for :action and :controller.
I''d show my code, but it''s on