Displaying 20 results from an estimated 900 matches similar to: "Specify ID for a form?"
2007 Nov 15
4
Ajax.InPlaceEditor: controls.js update
I''m not sure if this is a bug or not, but I had to patch controls.js
file to accommodate the idea that I had planned.
I had to combine Ajax.InplaceEditor and AutoCompleter for a "tagging"
feature at my office.
With the autocompleter, I need to target an INPUT FIELD by ID.
However the generated INPUT field from the Ajax.InPlaceEditor did not
include this attribute in
2006 Apr 24
4
javascript in RoR page - Check ALL/uncheck ALL buttons
I am trying to implement a check all and uncheck all button for my check
boxes.
Here is what I have below. I am getting this error each time:
Error: document.myform.add_visit_for_this_Pt has no properties
Source File: http://localhost:3000/AddPatientVisit/addvisits
Line: 1
Strange that I can''t seem to pass value into the function.
Thanks for your help!
<SCRIPT
2009 Jan 08
4
Problem with disable_with
Hi Group,
I have a registration.html.erb page with the following JavaScript at
the top which I use to validate form fields:
<script type="text/javascript">
<!--
function validate(){
if ((document.myForm.email_projectname.value=="")||
(document.myForm.email_projecttype_id.selectedIndex<1)||
(document.myForm.email_region_id.selectedIndex<1))
{
alert
2013 Apr 05
2
model.frame: object is not a matrix
Over a decade ago there was a problem with model.frame when the variable
names were long:
https://stat.ethz.ch/pipermail/r-help/2002-August/024492.html
I have similar symptoms with R 2.15.3 on Windows 7:
Browse[2]> x <- model.matrix(formula(myform), p$data)
Error in model.frame.default(object, data, xlev = xlev) (from mice.R#601) :
object is not a matrix
My attempt at a work-around
2008 Mar 10
5
Passing extra parameters to functions called from Observers
Hi again,
When you have an ''obeserver'' setup as follows:
$(''myForm'').observe(''submit'', validateForm);
If a user submits the form the ''validateForm'' function is called and
is automagically passed the ''event'' to work with. This is fantastic!
But is there a way to pass another argument to the function?
2010 Mar 05
1
How to parse the arguments from a function call and evaluate them in a dataframe?
Hi,
I would like to write a function which has the following syntax:
myfn <- function(formula, ftime, fstatus, data) {
# step 1: obtain terms in `formula' from dataframe `data'
# step 2: obtain ftime from `data'
# step 3: obtain fstatus from `data'
# step 4: do model estimation
# step 5: return results
}
The user would call this function as:
myfn(formula=myform,
2018 May 01
4
issue with model.frame()
A user sent me an example where coxph fails, and the root of the failure is a case where
names(mf) is not equal to the term.labels attribute of the formula -- the latter has an
extraneous newline. Here is an example that does not use the survival library.
# first create a data set with many long names
n <- 30? # number of rows for the dummy data set
vname <- vector("character",
2007 Jul 03
2
"form_for" names fields using brackets = javascript problems
Hi all,
The "form_for" helper and its friends "text_field_for" etc generate form
fields with names like "forum[title]", i.e. using square brackets to
denote attributes on model objects.
Now, for the convenience of the user I want to do some simple
client-side validation to check that some fields have been filled in. So
I am trying to write javascript like
"if
2005 Nov 17
1
afterFinish option not working as expected
Hello,
I''m trying to use the afterFinish parameter on the BlindDown effect,
but it''s not working as I expect it to. My function appears to be
called just as the effect is starting, not when the BlindDown is
complete (finished drawing).
Here''s the code that I''m using for the most part...
Effect.BlindDown( mydiv, { afterFinish:Form.enable(myform) } )
Any
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
2008 Jun 18
1
Form submit listener not catching form.submit();
Event listener for a form being submitted is not catching an A tag
with a submit in it.
Example JS:
$(form).observe(''submit'', function(e) {
e.stop();
// Something
});
Example HTML:
<a href="#" onClick="myForm.submit();">Submit form</a>
Any idea how to fix this without added more js to button?
2006 May 20
1
Slider.js - Attemting to put values in form.
I can''t figure out how to take that value that the user has chosen in
the slider and put that into a form value. Does anybody know how to do
this?
Here is my code so far (It''s pretty much directly from script.aculo.us):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>Text effects tests</title>
<script
2006 Aug 11
5
actionmailler corrupting emails
Hi All,
I have a problem with actionmailer corrupting my html emails. It is
adding the character ''3D'' before any quotes (single or double) in my
source and smattering ''='' characters throughout as well. Very
strange. Here''s an example from one of the emails:
________________
<body>
<div id=3D''wrapper''>
<div
2009 Oct 07
1
output validations errors form causing type error?
Hi,
I was wondering if it is possible to output validation errors in a
nested form? I suppose this should be possible, but I am experiencing
an error message that I can''t track down.
The error I get is the following :
TypeError in Store/orders#create
Showing app/views/store/orders/new.html.erb where line #45 raised:
can''t convert Array into String
This is ocurring in the
2006 Apr 08
0
Understanding observe_form...
Hi all,
I''m trying to understand the workings of the observe_form function.
In my application I have a search form with a number of parameters, and
I want to have a live search counter on screen, so as the user chooses
different parameters, she can see a live count of how many search
results match.
What I''m not clear on is how to use the "with" option, and what
2006 Feb 08
9
InPlaceEditor - IMG for OK / Cancel?
Hi all,
Is it possible to use images instead of plain text for the "OK" and "Cancel"
controls?
Thanks,
Best Regards,
EJC
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
2008 Feb 13
0
Element.focusFirstElement() causing issue with Element.addMethods()
Prototype 1.6.0.2
Internet Explorer 7
I''ve found that when I call $(''myform'').focusFirstElement(); to set
focus on the first field in my form, that this statement "wrecks" the
extensions I''ve added using Element.addMethods() if it executes before
Element.addMethods().
When I try to call one of my exenstions, the IE7 JavaScript
interpreter throws an
2007 Feb 04
0
Very strange observe_form problem
I am doig something very simple here and this is not working correctly.
So any help is greatly appreciated.
I ahve this code in my template:
<% form_for :company_branch, @company_branch, :html => {:id =>
"company_branch_form"} do |f| %>
<%= f.text_field :street1 %>
<%= f.text_field :street2 %>
<% end %>
<%= observe_form("company_branch_form",
2011 Jan 23
2
Passing in arguments into function
Hi,
I had a function that looked like:
diff <- lm(x ~ y + z)
How can I pass the argument to the 'lm' function on the fly? E.g., if I pass it
in as a string (e.g. "x ~ y + z"), then the lm function treats it as a string
and not a proper argument.
many thanks
[[alternative HTML version deleted]]
2008 Jun 19
5
observe_field
I have been trying to pass a collection_select parameter and a text field
parameter to observe_field so that it watches both the parameters
simultaneously.
but what i can see is , when i select some value from drop down and dont
write anything in text field its giving correct results.parameters are also
correct passed, but just after that if i write something in text field that
value also get