Displaying 4 results from an estimated 4 matches for "anarray".
Did you mean:
inarray
2005 Jul 08
8
Integrating script.aculo.us into existing javascript codebase
...openrecord.org). I''m running into a
problem with prototype.js and the existing codebase''s use of for/in
loops over an Array.
prototype.js defines Object.prototype.extend as a function. I believe
this causes a problem when I do a "for/in" loop on an array e.g.
var anArray = [1,2,3]
for (var key in anArray) {/*do some stuff */}
Above code snippet doesn''t quite work, because var key gets set to
"0", "1", "2" and then "extend" in one of the loop traversal. I
believe that''s because prototype.js defines obj...
2006 Nov 08
4
writing SQL query WHERE.. IN.. anArray ?
I have an array @dpt_ids
ex : @dpt_ids = ["43", "48", "49", "50", "51"]
I try to insert it into my sql query to be used in a ''find_by_sql''
query = "SELECT * , #{kms} AS km FROM cities"
query << " WHERE department_id IN ( #{dpt_ids} ) "
but this transform my array into a unique string :
2003 Oct 04
3
More questions about R extension programming
...e elements arrays rather than
lists? I see in Rinternals.h there is a function defined as
Rf_allocArray(SEXPTYPE, SEXP);
What do I need to supply for the second argument? Could I use this
function rather than allocVector() to create an actual array object? And
then say set elements with
INTEGER(anarray)[0] = 1
or are the 'getter'/'setter' functions for arrays different ( I could'nt
seem to find any) ?
3) I'm a little puzzled since I allocate a list (say length = 2) object
by
alist = allocVector(VECSXP,2);
and use the same syntax for a vector object. From what I underst...
2006 Jan 03
45
Status of Prototype
Hi *,
we are using prototype in Apache MyFaces as our javascript library of
choice. Recently, there has been much discussion on our mailing list
as to the usability of prototype in a dynamic environments where
several javascript libraries are used.
The critics of prototype argue that the prototype objects are not
namespaced - and that prototype extends basic javascript-objects with
method names