similar to: How to pass a javascript variable to ruby variable

Displaying 20 results from an estimated 20000 matches similar to: "How to pass a javascript variable to ruby variable"

2006 Jul 20
2
ROR dev on Different Ruby versions
Hi, First I would like to ask if someone could give me the direct link to the mailing list this forum mirrors. This is so I can do searches directly and not bother folks with repeat questions. Now my question: I recently installed a ROR app built on Ruby 1.8.2 and moved it to ROR on Ruby 1.8.4. I got a few errors and had to regenerate my app in the later and copy the App files and a few
2006 Jul 18
5
Installing ROR/Webrick app on Windows 2000/2003 Server
Hi all, I am currently not able to use search since it is disabled, so I will ask my question and hope I am not repeating a past question. I am looking into developing an app to run in Windows 2000/2003 Server environment. To install ROR on a server to run an app on Webrick do I need any extra steps beyond those needed to install on my development laptop (XP prof) ? The idea is to run the
2006 Mar 02
2
custom sql queries beyond CRUD
Hi, I am just starting of in rails. I am trying to understand the features of rails and I have this burning question. (and search is not available now): Apart from relying on the automatic CRUD sql script produced, is there a way I can create my own sql script ex: with many joins between exixting tables (for reporting ). All I need is to declare the custom query and place the result in a
2006 Apr 25
3
command rake migration also runs #down method ?
Hi, i am new to rails and trying to understand the migrate feature of rake whenever I call "rake migrate", i understand it call all the latest version of a given of given migrate files. Now when these files are executed, id the #down method called and then the #up ? or must i explicitly call the #down method from rake. If yes how do i do that from rake ? I experimented with rake
2006 Jul 23
3
Where else can I access this ROR List ?
Hi, because search is not working, I would like to access this list through some other means so that i can search past questions and feedback. Can someone give me the links or infomartion needed to subscribe. I especially need the ability to do searches TIA, Tuka -- Posted via http://www.ruby-forum.com/.
2006 May 03
3
One layout for entire App ?
Hi, Being true to DRY, I know in Rails it is possible to define a single layout associated to a controller and all associated views, lists etc.. by the layout name taking on the name of the controller but is it possible of a layout to be shared between many controllers ? TIA, Tuka PS: I accidentally posted this in the Test forum.. so I moved it here to get a pertinent reply -- Posted via
2006 May 08
4
How to disable textbox in Ruby?
Hi, I want to disable textbox in my page so that user can not modify its contents. How can we do that in ruby? Thanx, Prash -- Posted via http://www.ruby-forum.com/.
2006 Mar 14
3
Can anybody tell me step by step how validate data on form?
Hi, I am new to ROR. I have created a form with foru fields in ROR. Now its working fine for all CRUD operations. But I want to validate data on form for "validates_presence_of" validation. How to do this? I tried it by putting line "validates_presence_of :description" . But its not working. Its throws error like "undefined method `each'' for
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 Feb 21
6
What do I need to learn Ruby, Rails, JavaScript, AJAX?
So I''ve sort of come to the conclusion that if I wanna get stuff done, I need to either A) Find some dang money and pay people to do it or B) Do it myself. I''m opting for B. Soooo...now I''ve got some programming/technologies to learn. I''m self-employed and I can afford to take a month (or 2) off to totally immerse myself in this and learn how to do it.
2009 Mar 07
0
RJS: pass javascript variables in ruby calls
Hey, I have this link_to_function which takes an RJS block as follows: page.insert_html :bottom, :documents, :partial => "upload_fields", :locals => { :doc => Document.new, :index => ''UNIQUE_ID'' } It adds a partial to a div. I need index to be a unique id, but can''t generate one. I have an actual javascript function next_index() that will
2009 Jan 19
1
pass ruby array to javascript function
Im wondering how to go about passing a ruby array to a javascript function. I was able to do this the other way around and pass a javascript array to an action using JSON and convert it back to a ruby array: Object.toJSON(<%= array_or_string_for_javascript(@array) %> then in the action I was able to do: ruby_array = JSON.parse(params[:array]) But this time I want to pass an array to a
2006 Jan 21
3
Passing ruby variable via remote_function (JavaScript)
Hi, Brand new to this so please excuse anything obvious that I don''t yet get. Here''s what I''m trying to do (This is all in a .rhtml file): As a simple test I create a local variable called ''localVariable'' and give it the string "Hello" like this; <% $localVariable = ''Hello'' %> Next I want to call a function
2006 May 20
3
Alphabetically sorted list pages + dynamic forms
Hey everyone, I''m new to RoR - how can I get my database content filtered by alphabet? Eg, on my php site now I use this format: http://www.scenepointblank.com/reviews/index.php?page=B How can I get this kind of functionality out of ruby? Also, how could I go about making a multiple select box of authors, then depending on how many you chose, the next page of the form displays a
2007 Jul 11
0
Ruby Live Tree Error
The website I am working (http://xoth.media.mit.edu:8000/ica/view) on uses a LiveTree add-on that should update a portion of the page to reflect the components of the tree when the appropriate textbox is used. For some reason, instead of simply updating a portion of the page, the site is opening a whole new page with on the partial updated component displayed. Why is it doing that and how can I
2004 Jun 10
1
Moving from WhiteBox to CentOS 3.1
Hello I am leaving Whitebox because of lack of up to date sec. updates. Did any body try to "upgrade" WBEL to CentOS? Any dificulty or problems? Thanks Petr Klima
2006 Jun 29
1
can i update the page whitout reload it?
hello everybody my name is reynaldo and my question es the next: i have a form whit a combobox and a textbox the combobox have the number of days: 1,2,3,4,etc and i want show in the texbox the result of the number of days for a number for example: when de user choice 1 day, show in the box $200 when de user choice 2 day, show in the box $400 when de user choice 3 day, show in the box $600 when
2006 Apr 05
8
Pass paramter via form
Hi, I want to allow users ti search my blog. I have the following code below to initiate the form. <%= start_form_tag :action => ''search'', :search => search %> <p align =center><%= text_field ''search'', ''search'',"size" =>"20" %> <%= submit_tag ''Search'' %></p>
2011 Nov 01
0
Read/Write textbox in R
I am writing a GUI for my R script. It is a very basic form consisting of textboxes and buttons. I tried to run the following example to learn how to read value currently entered into the textbox: ( it requires tcltk/tcltk2 packages ) # Create the widgets base <- tktoplevel() list <- tklistbox(base, width = 20, height = 5) entry <- tkentry(base) text <-
2008 Jan 16
4
ActionController::InvalidAuthenticityToken in LoginController
Hi, I''m having a problem trying to get a login controller working. When I try and post to my login controller I get the following error: ActionController::InvalidAuthenticityToken in LoginController#login login_controller: class LoginController < ApplicationController def login case request.method when :post if @session[''user''] =