similar to: Ajax callback w/o model update?

Displaying 20 results from an estimated 10000 matches similar to: "Ajax callback w/o model update?"

2006 Jun 26
4
Migrations and svn branches...
We are currently doing some development on a variety of branches that each have their own set of migrations (gee, database changes on a branch? how novel). The problem is with this strictly linear numbering of the migrations and these alternate branches. Let''s suppose I have branches/foo that adds two migrations 024_add_foo.rb and 025_refine_foo.rb and then another branches/bar
2006 Feb 16
4
newbie question regarding basic AJAX form verification
Hi, I''m confused about how form verification with AJAX works. Let''s say I have a ''new.rhtml'' view that contains a form with two fields, and the form action is ''create''. Let''s assume that I also want to do some type of data validation on one of the two fields via AJAX before I submit the form. But since I''ve already
2006 Jun 14
1
Absolute URL from link_to?
What options do I need to provide to link_to so that it generates truly absolute URLs (i.e. including protocol://host:port/path)? It seems that even when I provide :host and :protocol arguments to url_for that it suppresses these when they match the current request.
2006 Jul 08
1
Ajax, RJS, and Standard Form Errors
Hi all, I''m trying to take the standard scaffold and add a bit for ajax to it. I have a two column page with the list on the left and the right side is reserved for the create/edit actions. On a successful save my rjs executes and updates the list view on the left and returns the right side to a "home" page. However, if one of the model validations fail I use rjs ro
2006 Feb 23
1
Ajax, validation, flash messages & redirects...
Hi everyone, I''m working on an file upload page that uses an ajax progress bar (http://sean.treadway.info/demo/upload/). I''ve also got validation on the uploads (must be a certain file size/mime type etc). When uploads pass validation - all is dandy. But when they fail - I can''t work out how to redisplay the form with the flash error messages (that normally appear
2006 Apr 23
3
Does AJAX form_remote_tag remove "\r\n"?
When I submit textarea with "\r\n" inside its content, all the "\r\n" are gone at the receiving end? Is there a known behavior I should be aware off? Or should I start looking some where else. Thank you, Sharkie
2008 Mar 31
1
How to make a ajax (xhr) redirect?
Hi all, In my application, I want seamless degradability so I use request.xhr? to check whether a request is an ajax call. However here and there, I need to use redirect_to - in this case the request is not xhr anymore, and the check doesn''t work as expected. Is there a way to make xhr- like redirect (which allow to get to another controller+action)? Thanks, - Chuong
2006 Mar 23
3
How to redisplay submitted data on validation error?
Hi! If i have an object it''s easy. But i''m making a simple contact form and i check if email address is correct. If it''s not i redisplay the form with the info that there was an error (should i use redirect_to or render :action? what''s the difference?), but all previously submitted data is lost. I tried creating variables using names of the form fields, but
2011 Mar 07
1
Error compiling Asterisk 1.8.3 on Sun SPARC x64 w/Debian Squeeze
Hello all, Figured I'd repost this with an edited subject line, to attract attention of people with Debian On Sparc experience. Apologies in advance if this kind of thing is frowned upon :) [AR] hash/hash.o hash/hash_bigkey.o hash/hash_buf.o hash/hash_func.o hash/hash_log2.o hash/hash_page.o hash/ndbm.o btree/bt_close.o btree/bt_conv.o btree/bt_debug.o btree/bt_delete.o btree/bt_get.o
2006 Apr 18
6
Best Practice for Returning to Calling Page?
I have a partial, it''s a shopping cart display, it''s designed to appear on several different pages of my site. One of the buttons on the shopping cart empties the cart, and then I want the calling page to redisplay. In other words, the cart controller needs to return the visitor to the same page -- however since the cart could appear on any given page, this has to be
2015 Mar 07
2
AWS/EC2 server selection
Hi Jeff Are you aware of any challenges of hosting it on AWS? It will help me to work out alternate plan. Is there any recommendation? Should I split it to multiple instances and balance traffic across multiple small server instances? I can use Kamailio to balance traffic. I see many posts referring to AWS deployment. Please help me to choose AWS server instance. *Thanks & Regards,*
2006 Apr 17
2
Refreshing RHTML page with previously posted data?
All, After a POST, I want to be able to redisplay a view with the data that was previously entered when my controller action notices a validation failure and calls render on the view that does the submit. Example: View x.rhtml - text field is filled in Call controller action Controller action fails validation calls render (:action => ''x'') x.rthml shows up with blank text
2015 Mar 08
2
AWS/EC2 server selection
Digital ocean offers ssd on all the virtual machines. Uptime is good. Jai Rangi Www.didforsale.com www.cebodtelecom.com www.cebod.com > On Mar 8, 2015, at 8:11 AM, Jeff LaCoursiere <jeff at jeff.net> wrote: > > > Amazon instances are shared resources. I wouldn't want to count on timing or disk throughput, and you can't just ask them to do "ssd" - its a
2006 Jul 16
17
AWDWR question
In an early section on Action View, showing code being put directly into the rhtml file: <% require ''date'' DAY_NAMES = %w{ Sunday Monday Tuesday Wednesday Thursday Friday Saturday } today = Date.today %> <h1>Hello, Dave</h1> <p> It''s <%= DAY_NAMES[today.wday] %>. Tomorrow is <%= DAY_NAMES[(today + 1).wday %>. </p> I get this
2006 Apr 27
12
Execute controller function from RJS
Hi all, I wonder if it is somehow possible to execture or redirect to a controller function from RJS? Right now I do: def foo() render :partial => ''executeagain'' end _executeagain.rhtml <script> new Ajax.Updater(''elmntID'', ''/test/foo/'', {evalScripts:true}); </script> This will loop I know :) How can I achieve the same
2006 Apr 28
1
beginner - default form values
I want to build a simple calculator with 1 form and a results page. The form will be redisplayed with an error message upon an invalid value entered. I won''t be using any database/active record for this. The problem i have is when i return to the form page i want to redisplay the values already entered in the form fields. Should i use text_field (which seems to be tied to a model) or
2006 May 08
17
partial problem
def my_controller @variable = [{''myfield''=>''grey''},{''myfield''=>''blue''}] end #-------------------------my_view <table> <%= render :partial=>''my_partial, :collection=>@variable %> </table> #----------------------_my_partial <tr> <td><%=
2006 Jan 24
5
Password fields and security?
Hi all I wanted to ask why Rails'' password_field helper uses the input password as default value when reloading a form because of errors? Isn''t this a potential security leak? On any other webs I''ve seen so far the password fields have to be filled in again after every reload of the site so the password doesn''t exist in plain text in the html code... What
2018 Nov 20
4
llvm.org pre-built clang significantly slower than apple/xcode clang
Hello LLVM/Clang developers, We recently switched to use the same clang version on all our platforms. This included switching from apple-clang from xcode to a pre-built binary we downloaded from llvm.org. We noticed that this actually came with a pretty big performance regression in compile times. If we do the simplest test program like this: #include <string> #include <iostream>
2016 Jan 20
4
Executing OpenMP 4.0 code on Nvidia's GPU
Hi Arpith, That is exactly what it is :). My bad, I thought I copied over the libraries to where LIBRARY_PATH pointing but apparently it was copied to a wrong destination. Thanks a lot. On Wed, Jan 20, 2016 at 4:51 AM, Arpith C Jacob <acjacob at us.ibm.com> wrote: > Hi Ahmed, > > nvlink is unable to find the GPU OMP runtime library in its path. Does > LIBRARY_PATH point to