Displaying 20 results from an estimated 200 matches similar to: "Element.focusFirstElement() causing issue with Element.addMethods()"
2008 Feb 07
3
Adding my own extensions with Elements.addMethods()
When I add my own extensions to DOM elements, is there a way to only
add my extensions to the specific types of DOM elements (e.g. SELECT)
to which my extensions apply or are intended to operate?
Based on the Prototype API documentation (http://prototypejs.org/learn/
extensions), it appears that anytime I extend an element, all the
extensions (Prototype''s and my own) are copied to that
2007 Aug 29
0
Element.addMethods vs extending prototype.
Hi.
I''m using prototype.js V1.6.0_rc0.
I''ve successfully used Element.addMethods() to add some additional
functionality to my forms ... Element.addMethods(''FORM'', { ... });
So far so good.
I now want to add a new property to all forms.
Is there an equivalent Element.addProperty(''FORM'', { ... }); technique
I could use?
As readAttribute /
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
2007 Sep 20
10
Element.addMethods functions swallowing exceptions (IE6 + 7)
IE6 and IE7 are not correctly handling the ''throw'' command for
functions attached to Element via Element.addMethods. Firefox and
Safari are fine.
See the example below.
For IE6: functions called with no attributes (ie: funcName())
correctly handle thrown errors. Funcions called with attributes (ie:
funcName("foo")) will respond to the throw command and pass execution
2007 Feb 21
8
Element.addMethods() is not a function after upgrade to 1.7.0
After upgrading to prototype 1.5.0 and scriptaculous 1.7.0 my
autocompleter.local died... firebug reports that effects.js is to
blame calling Element.addMethods();
I can not find out why cause as far as I can see it does exist in
prototype.js.
Any pointers anyone :(
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
2010 Feb 05
1
Error 11: can not backup /var/lib/zope2.9
Moin,
I wrote a small backup script that use rsync: r5backup
(http://sourceforge.net/projects/r5backup/). It backup dozen of unix machines
for many people.
But when I try to backup /var/lib/zope2.9 I get an error 11. It does not
matter if zope is running or not.
I can't see an error meassge in the (verbose) logfile:
[client] parse_filter_file(/etc/r5backup/profiles/boulder.exclude,0,3)
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
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,
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 07
3
R-Logo in \LaTeX (Mag. Ferri Leberl)
Dear Mag. Ferri Leberl,
I'm using something like:
----------------------- tex.tex ---------------------------
\documentclass{article}
\usepackage{graphicx}
\usepackage{fancyvrb}
\newcommand{\Rlogo}{\protect\includegraphics[height=1.8ex,keepaspectratio]{Rlogo.pdf}}
\newcommand{\myinput}[1] {\begin{scriptsize}
\VerbatimInput[frame=single,label=#1]{#1}
\end{scriptsize}}
\title{The R logo,
2008 Mar 07
3
R-Logo in \LaTeX (Mag. Ferri Leberl)
Dear Mag. Ferri Leberl,
I'm using something like:
----------------------- tex.tex ---------------------------
\documentclass{article}
\usepackage{graphicx}
\usepackage{fancyvrb}
\newcommand{\Rlogo}{\protect\includegraphics[height=1.8ex,keepaspectratio]{Rlogo.pdf}}
\newcommand{\myinput}[1] {\begin{scriptsize}
\VerbatimInput[frame=single,label=#1]{#1}
\end{scriptsize}}
\title{The R logo,
2005 Dec 27
1
Form Validation?
How I can I implement form validation easily to helpers such as
text_field_tag? If I specified a name of ''myinput'' how would I notify
rails that ''myinput'' is erroneous?
--
Posted via http://www.ruby-forum.com/.
2007 Nov 26
3
Time Series Issues, Stationarity ..
Hello,
I am very new to R and Time Series. I need some help including R codes
about the following issues. I' ll really appreciate any number of
answers...
# I have a time series data composed of 24 values:
myinput = c(n1,n2...,n24);
# In order to make a forecasting a, I use the following codes
result1 = arima(ts(myinput),order = c(p,d,q),seasonal = list(order=c(P,D,Q)))
result2 =
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?
2018 May 01
0
issue with model.frame()
> On May 1, 2018, at 6:11 AM, Therneau, Terry M., Ph.D. via R-devel <r-devel at r-project.org> wrote:
>
> 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
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",
2018 May 01
1
[EXTERNAL] Re: issue with model.frame()
Great catch. I'm very reluctant to use my own model.frame, since that locks me into
tracking all the base R changes, potentially breaking survival in a bad way if I miss one.
But, this shows me clearly what the issue is and will allow me to think about it.
Another solution for the user is to use multiple ridge() calls to break it up; since
he/she was using a fixed tuning parameter the
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
2018 May 01
2
issue with model.frame()
>>>>> Berry, Charles <ccberry at ucsd.edu>
>>>>> on Tue, 1 May 2018 16:43:18 +0000 writes:
>> On May 1, 2018, at 6:11 AM, Therneau, Terry M., Ph.D. via R-devel <r-devel at r-project.org> wrote:
>>
>> 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