similar to: Passing Muliple Parameters with remote_function

Displaying 20 results from an estimated 300 matches similar to: "Passing Muliple Parameters with remote_function"

2006 May 09
6
RJS, & mulitple Drop Down Boxes.
Hello Again Rails Folk! I''m trying to creat a page similar to what the person is doing here... http://mudabone.com/aietc/?page_id=410 Instead of doing it the way he/she has, I decided to use RJS files, or at least I tried. Here''s my view <%= start_form_tag %> <%= javascript_include_tag "prototype" %> <p> Union: <div id="union">
2006 Aug 09
2
has_many through delete issue
I have the following many-to-many relationships defined in my model code to model a many to many relationship between Media and PriceCode with Price being the association table: class Media < ActiveRecord::Base has_many :prices has_many :price_codes, :through => :prices end class Price < ActiveRecord::Base belongs_to :media belongs_to :price_code end class PriceCode <
2006 Nov 08
1
Muliple SQL statements / Return percentage of rows
I''m stumped... I need to return a number of rows with the top & bottom x percentage of rows removed in mysql 4.x e.g. SELECT COUNT(*) value_count, SUM(deals.value) / COUNT(*) average_value FROM deals ORDER BY deals.value Now say that returns the sum of 100 deals, what I actually need to do is return the count & sum of rows 10-90 (i.e. the top & bottom 10% rows removed)
2011 Aug 25
0
plotting muliple CI ellipses for lm estimates
Hi, I have read your post about plotting multiple CI ellipses and I would like too, but I don?t know how. I would like to plot an ellipse for each group and I have slope and intercepts, but I don?t know what to put in the arguments shape and radius. CAn you help me please?
1999 May 25
1
Muliple partial matches with pmatch
I am using R0.64.1 under Windows 95. The help for `pmatch' states that: If `duplicates.ok' is false multiple matches will result in the value of `nomatch' being returned, and if it is true, the index of the first matching value will be returned. The help for pmatch gives the following examples: pmatch("m", c("mean",
2008 Apr 13
1
plotting muliple CI ellipses for EB estimates
I have empirical Bayes estimates for slopes and intercepts for a number of subjects and I would like to plot the slopes and intercepts with confidence ellipses. These ellipses would be based on the confidence intervals for the slope and intercepts (forming the major and minor axis of each ellipse), and the correlation in the slope and intercepts. The ellipse function in the car library
2013 Nov 05
1
How can I use muliple cores of CPU in Windows or OS X?
Dear all, I have about 50 pages of R codes and ran it in both OS X and Windows. It takes at least haft a day to have the results. The running time is not very different in both Systems. I found that R does not use all cores of CPU by default. Can anybody help me to use all cores of CPU in my programming from the beginning or through programming in both OS X and Windows? Many thanks your
2004 Dec 20
1
muliple plots with pairs (matrix of scatter plots)
I am trying to make a graph with 4 scatter matrixes plots and couldn't do it. While trying to find a solution for this I also came across the idea of giving different values to the same argument for each of the lower and upper function but couldn't do it. (Examplified below with the col argument). The first problem of plotting 4 scatter matrixes in a graph is a problem of real
2006 Apr 25
2
Noob Question: Regarding Form
I''m hoping there''s an easy way to do this.  I''m trying to read options from a database, and insert them into form tags.  So for example, In the Database Table: options size: 300 type: text_field maxsize: 300 and I want to create a text_field form tag, with all the appropriate options, is there an easy way to do this, other than having the code output the HTML
2004 Aug 06
1
Suggestions??: Got too many (2) domain info entries for domain
HI there, I'm franging around trying to put (open)LDAP at the centre of my universe, which works with imap/pop and sendmail, but samba is a different kettle of fish... after much testing I finally get bogged down at: "Got too many (2) domain info entries for domain" in the logs, and nothign progresses after that. And "yes" the ldap root bind password is set, iptables
2006 May 03
3
using select_date causes errors...
I''m getting errors whenever the user chooses, for example, April 31st ( since there is no 31st in April, navicat freaks out ), there MUST be a method that ruby has that would allow me to validate a date before I submit to navicat. I haven''t been able to find anything online about it either, it''s probably something simple, I just can''t figure it out. Thanks
2006 Apr 20
5
strange mysql problem
i have this model: class LineItem < ActiveRecord::Base belongs_to :quote end in the console: >>l = LineItem.create ActiveRecord::StatementInvalid: Mysql::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' , , , )'' at line 1: INSERT INTO line_items (`qty`, `quote_id`,
2006 Oct 26
0
Prototype: focusFirstElement and tabindex -1 ?
Hi, I''m new to prototype but it seems like an EXELENT framework. But I got a problem with the focusFirstElement when the first element have a tabindex="-1" since when negative number the user are never able to tab the element, so I would not want them to get focus on the element either. Is there really any time when a user want the set the focus on an element with negative
2006 Jun 09
0
Re: Rails Digest, Vol 21, Issue 189
Hello and thanks for emailing B2B Logic. I am out of the office until Monday June 19th. Any emergency problems, comments or concerns should be directed to Ryan Lundie: ryan@b2blogic.net Thanks Randal Santia B2B Logic.net
2006 Jun 29
1
before_destroy & verification
Hey, probably an easy question but, I''m trying to get a method to run "before_destory" for a model, and I want the method to throw an error, and not delete the object from the database, if a certain condition is held Obviously, I can just raise an error and rescue it... but for some reason I can''t get <% error_messages_for ''model" %> to catch
2016 Nov 11
6
Asterisk 11.24.1 garbled audio
>Information on timing sources can be found here: >https://wiki.asterisk.org/wiki/display/AST/Timing+Interfaces >As noted on that page, ConfBridge can use any timing interface Asterisk >provides, and is not limited to the DAHDI timing interface. Generally, >timerfd is a good timing interface. >That aside, I would try to rule out external issues with the garbled audio
2006 Jul 30
2
how to use remote_function :with option?
I''d like to send some simple info to my controller using the :with option for remote_function remote_function :url => url_for(:action => ''my_action''), :with => ??????? But I don''t know anything about JavaScript. How can I use the :with option to send a simple parameter to the controller? I''ve tried a few things, but I haven''t
2006 Jun 07
0
javascript that remote_function creates
I''m tring to use remote_function instead of writing all the javascript out, but am having difficulties.. I have this code in a layout: <body onload="<%= remote_function(:update => ''show_active'', :url => {:action => ''show_active_bugs''}, :complete => visual_effect(:blind_down, ''show_active'')) %>">
2006 Jun 12
0
Passing parameters to ''remote_function''
Hi, I am trying to use the ''remote_function'' helper method from the PrototypeHelper class on a the onblur event of a text_field for filling a form with data via AJAX. How can I get the value of the text_field for making a query to the database in the controller action? <%= text_field("item", "code" , :onblur => remote_function(:update =>
2006 Jun 15
0
Include JavaScript variable in <%= remote_function %> call?
How can I do this? For instance, something like: <script ...> function check_duplicate(name) { <%= remote_function :url => {:action => ''check_duplicate'', :name => name } %> } </script> Obviously the above is just a dummy mockup. I have much more complex (and complete) sections of code that need to accomplish a task like this. Anyone know of a