Displaying 20 results from an estimated 800 matches similar to: "make sortable divs and innerHTML"
2006 Oct 23
3
passing parameter to action
i have a table of data in my application. i would like to be able to
sort the data in the table by clicking on the column header. the way
i was thinking i want to do this is just by making a ''sort'' action,
and then calling the sort action from each link in the table header
(passing the respective column name). it doesn''t seem to be possible
to pass parameters to an
2004 Mar 02
3
Margins on tables
It has long been a nuisance to me not being able to form margins on
multiway tables in a simple fashion, so i wrote margins().
In my opinion it should go into the base package. The code and the
documentation is in:
http://www.biostat.ku.dk/~bxc/R/margins/
Please help yourself, and enhance and rename as you see fit.
Bendix
----------------------
Bendix Carstensen
Senior Statistician
Steno
2018 May 02
0
Converting a list to a data frame
On Wed, 2 May 2018, Kevin E. Thorpe wrote:
> I suspect this is pretty easy, but I'm having trouble figuring it out.
> Basically, I have a list of data frames such as the following example:
>
> list(A=data.frame(x=1:2, y=3:4),B=data.frame(x=5:6,y=7:8))
>
> I would like to turn this into data frame where the list elements are
> essentially rbind'ed together and the
2005 Oct 05
2
customer defined sort order
I have a category list which the customer wants administratively to define
the sort order, instead of alphabetical or whatever. The obvious approach
seems to be to put a sort_order int on the record and use this as the
presentation sort order. Then to shift the item up in the sort order to swap
the current and the prevous item in the sort_order.
Does this seem like a sensible approach, or is
2006 Aug 17
8
Creating queries..
Hi, I am trying to implement a few queries now. What are good ways to do
this?
Right now, I have a list page that does sorting and can carry out a
generic pagination request.
@user_result_pages, @user_results = paginate(:user_results,
:per_page => 20,
:conditions => @condition,
:order_by => @sort_order)
I create @sort_order earlier in the list function. The problem I am
having is
2018 May 02
8
Converting a list to a data frame
I suspect this is pretty easy, but I'm having trouble figuring it out.
Basically, I have a list of data frames such as the following example:
list(A=data.frame(x=1:2, y=3:4),B=data.frame(x=5:6,y=7:8))
I would like to turn this into data frame where the list elements are
essentially rbind'ed together and the element name becomes a new
variable. For example, I would like to turn the
2009 Sep 16
1
extracting one element from all list elements
Hi
I have a list which cosists out of dataframes of the same structure. Now I
want to extract one column (let's say column "A") from all dataframes and
have them in a matrix (or dataframe).
At the moment I am doiong:
d <- data.frame(A=runif(100), B=rnorm(100))
theList <- list(e1=d, e2=d, e3=d, e4=d)
f <- sapply(theList, function(l){l$A} )
But I am sure ther is a more
2006 Aug 14
5
Tutorial for Queries
Hi! I''m looking for a good tutorial that explains the main points of
performing queries with Rails. I do have AWDWR and have read the
section on ''find'' but I''m looking for something that goes into more
detail on how to perform queries across tables.
Abstracted from my current application, this is an example:
* person has_many sites
* site has_one room
*
2004 Aug 03
3
dots expansion
Hi list,
I'm trying to write a function similar to rbind, except that needs to
add a factor to each component array before rbinding them together so
that the rows from different arrays are distinguishable.
The problem that arose is how to loop through arguments in the dots
"..." list. I need to get a hand on each of them but don't know how many
of them there are and what
2017 Jul 31
1
lldb-amd64-ninja-netbsd7 builder
To whom it may concern:
I've been monitoring the lab.llvm.org builders for a bit over a week now
and this builder:
http://lab.llvm.org:8011/builders/lldb-amd64-ninja-netbsd7
has been down since April. It also has no admin listed. Could it be
removedfrom thelist of builders?
Sean
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Nov 28
1
Can anyone read a S-PLUS .dmp file for me?
Hi WizaRds,
I tried reading the S-PLUS file
ftp://ftp.research.att.com/dist/bayes-meta/hblm.dmp
into R using
data.restore("hblm.dmp")
but I got an error:
Error in attributes(value) <- thelist[-match(c(".Data", ".Dim", ".Dimnames", :
row names must be 'character' or 'integer', not 'double'
In
2007 Dec 29
1
Odd Values For Powercoms
All,
I'm using the Powercom driver from 2.2 (not the one recently mailed to
thelist).
Since it's a KIN2200AP, I'm using the driver settings right from the
manpage.
All the values look "sane" when I'm on-line, but note some of the odd
values (<-- Here) when on battery:
Also, does anyone know if this UPS supports logging of the "boost" or
2006 Apr 18
0
RE: innerHTML and scripts not running and evalScriptsin IE
>>Someone suggested using document.write to write a new script element. I
>>don''t see how this helps because I am not aware of any way to write to a
>>completed page without overwriting the page. This appears to me to be
>>simply a page reload.
Wonder why you remember Martin''s name and not mine..lol /joke
Why don''t you start with a simple
2008 Mar 11
7
sortable scroll in div problem : dragged element doesn't follow the mouse pointer
Hello,
I''m facing a strange problem with a long list of Sortable items in a
container that has an overflow:auto.
If I drag an item from the top to the bottom, the container div is
scrolling, but there is a difference between the position of the
dragged element and the mouse pointer.
An example is better that a thousand words.
Try to drag the first item at the bottom of the
2006 Aug 09
0
Scriptaculous blind up effect not working from innerhtml in IE? Help please.
I have some tables wrapped in divs, when you
click them, they are hidden and then some of the data
is added as a div into another div by way of
innerhtml. When you you click on these new divs that
are in the html, they should go away. This works fine
in Firefox but doesn''t work at all in IE. Does anyone
have any ideas? The weird thing is if I take the
source of the html after the
2007 Jun 07
4
Effect.Fade and innerHTML?
Hi there,
I''m now having an odd problem with Effect.Fade not working based on
the innerHTML of a div.
Take the following for example...
<div id="blah">
Nothing here yet.
</div>
If I then update "blah", hide it and then fade it in, like so:
<script type="text/javascript">
document.getElementById("blah").innerHTML =
2006 Mar 17
10
breadcrumbs?
Before I start down this road, has anyone done a breadcrumbs
implementation they''d be happy to share?
Thanks
Chris T
2006 Apr 12
11
innerHTML and scripts not running
Hello,
I''m having an issue with getting embedded javascript code to actually
run when loaded via an Ajax.Request() call and the callback function
inserts the generated HTML and js code to my current page. It seems
that the javascript code is not properly parsing.
For example, I''m using the following function showinfo() to return
some html code.
function showInfo(go_url){
2018 Jan 19
1
Web scraping different levels of a website
Hey Ilio,
I revisited the previous code i posted to you and fixed some things.
This should let you collect as many studies as you like, controlled by
the num_studies arg.
If you try the below url in your browser you can see that it returns a
"simpler" version of the link you posted. To get to this you need to
hit F12 to open Developer Tools --> go to Network tab and click on the
2005 Mar 04
4
Upgrading broke the .find methods???
I just updated to rails (via gem) and now all my .find..... methods
give me "wrong number of arguments(3 for 0)" with the exception of
find_by_sql which works fine but I want to avoid for obvious reasons.
I''ve tried simplifying everything down to the bare minimum
Priorities.find(1)
and I printed out Priority.table_name to confirm it was still correct.
What gives? Did I