similar to: Image Upload > Submit with AJAX that replace a div content with the uploaded file. Possible ?

Displaying 20 results from an estimated 10000 matches similar to: "Image Upload > Submit with AJAX that replace a div content with the uploaded file. Possible ?"

2006 Jan 26
2
link_to_remote > in :action , interrupt ajax to render a new page outside the :update div ?
Hello, I have a simple link_to_remote that refresh a div. I just want to know if it''s possible to interrupt the div''s refresh inside :action to perform a complete reload of the page, outside of the div Actually, I havea a new page, but loaded inside the ":update" div. Someone have an idea please ? the rhtml: **** link_to_remote "yeah" , :update =>
2006 Aug 06
2
file upload with form_remote_tag
Is there a way to use form_remote_tag and to upload a file? The default behavior ignores the upload when the Javascript serializes the form to create the parameter list. Basically, i''m just looking for an ajax file upload capability. Any help would be appreciated. thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Jan 21
1
text_area content with text_area and not text_area_tag ?
Hello, Is it possible to fill the textarea content when using the text_area function ? Why there is 2 , + or - similar class : FormHelper and FormTagHelper ?
2006 Jan 23
6
Ruby at O''Reilly Rough Cuts
Not sure if this is old news or not, but it would appear that both the Ruby Cookbook and a Rails book are now available for purchase at O''Reilly Rough Cuts (something akin to PragProg''s beta book program): http://rubyurl.com/nHz http://my.safaribooksonline.com/?mode=roughcuts&srchtext=ROUGHCUTS I haven''t tried them yet, but it definitely seems worth checking out.
2006 Jun 08
3
RJS wierdness - Content div display js code
Hi, I have a link_to_remote name ''Show notes'', which calls an action that uses this RJS template: page.replace "notes_remote", :partial => "notes/hide_notes_link" page.insert_html :top, "notes_list", :template => "notes/list" page.visual_effect :highlight, ''notes_list'', :duration => 3 Works great. The
2006 Feb 14
3
Can Ajax updates more than one <div>?
Hi, I wish to know, is it possible that Ajax can update more than one zone "<div>"???? like : <%= link_to_remote("Title", :update => ''mydiv0'', :url => {:action=>:say_hello} )%> <div id="mydiv0"> to be changed one</div> <div id="mydiv0"> to be changed two</div> When I execute the code, only
2006 Apr 07
3
RJS removing content of div, but not div itself
Hi, I''m creating a list of ingredients on a page. When the user clicks the ''Add Ingredient'' button a record gets added to the db and the ingredient gets added to the page. On the page, each record is represented by a <div> with three <span>s inside. One of the <span>s has a link_to_remote to ''delete'' the ingredient. When the link
2006 Mar 08
7
Function could determine the caller action ?
Is it possible to determine which action call the function ? In example, func_test in ApplicationController could determine which action from SiteController is calling her ? in class ApplicationController I have def func_test if ( calling from index ) return "1" end if ( calling from contact ) return "2" end end and in class SiteController def
2006 Mar 04
6
Determine if a value is an instance of String , or Array , or...
each loop inside a mixed hash I need to determine if the value is an instance of String How ? hash.each do |k,v| if v ( instance of ) String hash[ k ] = v.capitalize enf end
2006 Mar 15
4
sub-selection with $
Hello, I have 2 navigations ( mainnav and subnav ) with 2 lists List have same names ( li0 li1 li2 ) What is the best way to select li1 of subnav with prototype 1.4 in this case ? I just want to hide/show it Thanks <div id="mainnav"> <ul> <li name="li0"><li name="li1"><li name="li2"> </ul> </div> <div
2006 May 10
2
Redirect whole page from AJAX action that updates a div
Hi, I am calling an action via AJAX to update a div. The action needs to redirect the page in under certain circumstances. However, if I just use "redirect_to" in the action then of course what happens is that the page I want to redirect to replaces only the div, not the entire page, and I get messy nested layouts. Is there a way around this? Can I redirect the entire document from
2006 Jan 17
6
link_to or helper to generate a javascript:history.back() ?
Hello, There is an link_to option or an helper that generate a link like : <a href="javascript:history.back()">Back</a> Thanks
2006 Mar 29
0
css, div-tags and ajax
Hi. I copied parts of the ajax-examples in Agile Rails prog. and modified it so it searched for zip-codes. The result is displayed in search.rhtml. The first version looked like this, I liked the look of the "add to cart" in the depot-example. :class => ''button1'' is originally addtocart which I renamed in the .css-file. <% for city in @cities %> <%=
2005 Dec 30
4
Convert "é" in "&eacute;"
I try to find an function to convert characters in html chars. "é" become "&eacute;" There is something in RoR 1.0 to do that ?
2006 Feb 07
1
touch tones too fast ?
Config: AAH 2.2 Digium TDM card connecting to 3 x Telus POTS lines Polycom 501 phones pretty basic setup, working mostly just fine... When I dial a number such as: 96045551212 Telus automation will sometimes come online and tell me that the number I have dialled cannot be completed as dialled. If I hang up the Polycom 501 and redial the EXACT same number, it will work the second time. I
2007 Dec 04
6
Problem preventing double click with ajax submit button
For a regular form I use the :onlick option to disable the submit button after the first click in order to prevent double clicks (leading to double entries): <% form_tag :action => ''create'' do %> <%= submit_tag "Create", :onclick => "this.disabled=true,this.form.submit();"%> I''m having trouble using this same method to prevent
2006 Jun 14
3
problem trying to update multiple <DIV> elements with AJAX
I''ve been trying for days now to figure this out on my own, but I can''t, so this is my cry for help. Here''s my situation: I need to update multiple <DIV> elements on a page, each with its own HTML, but I just can''t figure out how to get it to work. That is, I want to replace everything within each <DIV> element with something new. When I try what
2006 Mar 23
2
ajax replace div
Hi, Using form_remote_tag methode, is there a clean way to directly replace the content of a given div instead of just update it ? If I destroy the content of the div using this code: :success => ''$(\''mydiv'').innerHTML = \''\'''', It works. But it''s not really a clean way... Any suggestions are very welcome.. Thanks. Seb
2006 Jan 03
7
link_to an external url ?
Simple question. Is it possible to generate a link like <a href="http://www.google.com" target="_blank" >google</a> with the link_to function ? Thanks
2013 Oct 01
2
sshd accepted fingerprint logging
Currently, LogLevel must be set to VERBOSE to see the fingerprint of an accepted key, and the default LogLevel is INFO. Since this is useful security information, I would like to propose that the 'Accepted publickey' message be modified to include the fingerprint of the accepted key. Is this a reasonable solution? Here is an example log snippet with LogLevel VERBOSE: Oct 1 15:23:24