similar to: Setting flash notice via javascript?

Displaying 20 results from an estimated 2000 matches similar to: "Setting flash notice via javascript?"

2009 May 07
5
Controller redirect_to to leave iframe
Inside an iframe, I want the controller to redirect_to to the parent (i.e. target =''_parent''). Any ideas? (Everything I''ve tried- via redirect_to - just keeps it inside the iframe)
2007 Dec 03
2
attachment_fu 'replace' method?
Is there a ''replace'' method or similar for attchment_fu? For instance, I have an image that is uploaded and stored. Now I want to replace it with a different image. I do not want to do a delete and then new - since I need to keep various attributes associated with the previous image. thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message
2008 Aug 20
1
acts_as_ferret and DRb server errors
I am seeing this in my ferret_server.log when I do a search: DRb server: ensure_index_exists for class Myclass1 DRb server: ensure_index_exists for class Myclass2 DRb server: ensure_index_exists for class Myclass3 DRb server: ensure_index_exists for class Myclass4 #method_missing(:id_multi_search, ["Myclass1", "test*", ["Myclass4", "Myclass3",
2006 May 19
9
Resize uploaded image file without creating temp file?
Hi, I need to take a single uploaded image file and save three resized versions of it, a thumbnail, normal and large version. I was planning on doing this in my model by having an array of geometry strings and looping through them, each time saving a new image object resized to the correct geometry. I know that file column does similar stuff, but I would prefer to have a separate database row
2006 Apr 17
5
Pull down menus / Nested Javascripts
Has anyone implemented a tab bar with pull down menus in RoR? I''ve tried various javascript solutions but they all fail once you try to call them from ruby. Any pointers gratefuly received.... Cheers John -- Posted via http://www.ruby-forum.com/.
2006 Apr 12
11
innerHTML and scripts not running
Hello, I''m having an issue with getting embedded javascript code to actually run when loaded via an Ajax.Request() call and the callback function inserts the generated HTML and js code to my current page. It seems that the javascript code is not properly parsing. For example, I''m using the following function showinfo() to return some html code. function showInfo(go_url){
2019 Aug 07
8
samba-tool PTR with /16 network
Yes, offcourse, the 172.19 is a "bad" example. I suggest we use the official RFC 1918 zones. 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 And for example 192.168.0.0/24 as extra, or people get confused. ;-) Greetz, Louis > -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > Rowland penny via samba > Verzonden: woensdag 7
2009 Jul 24
6
Routes from raw js (using XMLHttpRequest)
I am making an ajax call from js to call a method (assocboxchange) in my controller (AssociatesController), using XMLHttpRequest. I know the XMLHttpRequest works fine because I use it in other places with success. My problem is my URL I am using for this request doesn;t access the method in my controller which I (think) I am specifying. I am having it post to /channels/assocboxchange/" with
2005 Mar 25
4
ajax and clearing the form
Hi I played a little bit with rails+ajax, works fine... but how do I reset the form? I tried: --- <%= form_remote_tag(:html => {:name => ''form_update''}, :url => :url_new_item_with_ajax, :update => ''container'', :loading => "Toggle.display(''new-item''); $(''new-item-desc'').innerHTML =
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
2008 Dec 13
2
What is "The Rails Way" to do this?
I have a PHP application with the following in one of the "views": <input type="button" onClick="newAlt()" value=" + "></nobr> The JavaScript for "newAlt()" is: // using DOM create new input box for alternate part function newAlt() { var html = "<input style=''background-color:#FFFFCC'' "; html +=
2009 Apr 17
2
how to call javascript function in text_field_tag
Dear all Sorry for dummy question. How can I convert a text input in form to upper case letter in view? Can I call the javascript function toUpperCase() in text_field_tag?? <%= text_field_tag(:sometext, nil, :size => 14) %> I know I can achieve this using params[:sometext].upcase in controller, but I want to do this in view. Any ideas? Many thanks Valentino -- Posted via
2006 Jul 06
2
link_to_remote method display a loading image?
Hey guys, what would be the best way to incorporate this into the builtin link_to_remote() method? document.getElementById(''main'').innerHTML = ''<img src="/images/loading_small.gif">''; Id like for the item above to take place while the page is loading. I''m currently doing this with another javascript but would prefer to use rails.
2010 Nov 08
1
API Google MAPS
Hello everybody, I''m working with Version 3 of Google Maps JavaScript API, and I have the next code: In a layout of my application: <script type="text/javascript" src="http://ajax.googleapis.com/ajax/ libs/jquery/1.4.1/jquery.min.js"></script> <script type="text/javascript" src="http://maps.google.com/maps/api/js?
2008 Jul 01
5
Attaching event observers to a series of elements - best practice?
Hi all, New member here. I''ve been working with Prototype for a while, and I love it. However, there''s one thing I still can''t figure out. Let''s say I have an array of objects, representing contacts in an address book: var contacts = [ { id: 1, firstName: "Bob", lastName: "Smith" }, { id: 2, firstName: "Sue", lastName:
2013 Jan 02
2
[LLVMdev] LLVM IR execution in JavaScript
On 02.01.2013, at 20:37, Alon Zakai wrote: > > > ----- Original Message ----- >> From: "Sebastian Redl" <sebastian.redl at getdesigned.at> >> >> It would be awesome to combine the llvm.org demo with the in-browser >> emscripten (or possibly a server-side emscripten) so that the user >> can execute his snippets in the browser. >>
2007 Sep 27
4
transportXML returns null?
Hi, I want to load an XHTML file into DOM. I issue Ajax.Request and on success do: var response=transport.responseXML Response is null. On the other hand: var response=transport.responseText; // has the data. Why is response=transport.responseXML returns null? Here is the code: function display() { url = "http://" + location.hostname + port + "/fusion/
2006 Mar 15
2
Using form_remote_tag, setting the form name
I''m using form_remote_tag like this: <%= form_remote_tag \ :update => "div_id_dataentry_bottom_ajax", :loading => "document.getElementById(''wait'').innerHTML=''Loading...'';", :url => { :action => "dataentry_bottom_edit" } %> And it makes this code: <form
2008 Feb 13
2
javascript pop window from form how to update field back to main form
Hi I have question where I run web form. Now on this form I have one field with link select user. This link will pop up new window with javascript and on this window I have form with items which end user can select. Once selection is done end user press button Select User. Now I need to close that javascipt window and send back value of that selection back to form and to the field which has
2006 Jan 09
6
drag and drop problem
I am working on a resource planning problem. I like to use a nice drag and drop interface for that. E.g. have a box of persons and a box of projects, now I would like to assign a persom to project by dragging it from the available resources box to a recieving project box. I have studied the amazing drag and drop shopping card code listed here http://demo.script.aculo.us/shop What I need to