Displaying 17 results from an estimated 17 matches for "item_1".
Did you mean:
item1
2006 Jan 20
1
Update HTML Element with Ajax
...--
<li id="<%= item.id %>" >
<%= item.name %>
<%= item.body %>
</li>
edit.rjs
------------------------
page.replace_html @item.id, :partial=>''item''
if I call /items/list I will get
<ul id="items">
<li id="item_1">...</li>
<li id="item_2">...</li>
...
</ul>
And wenn I edit first item I will get
<ul id="items">
<li id="item_1"><li id="item_1">...</li></li>
<li id="item_2">...</li&...
2007 Nov 02
3
script.aculo.us: onUpdate in Sortable.create
Can''t seem to get the onUpdate to work in for a sortable list. I am
following the documentation and the included functional tests but
nothing is firing for me. Any idea why?
Sortable.create(''list1'', {
tree:true
, onUpdate:function(sortable){
alert(''onUpdate'')
}
, handle: ''handle''
, scroll:window
,
2006 Jun 04
3
Data manipulation from a database
Say, for example, I have this in my db:
id name date
1 Item_1 feb-19
2 Item_2 feb-20
and I want to manipulate it so that the view can output this:
feb-19:
Item1
feb-20:
--
Posted via http://www.ruby-forum.com/.
2006 Jan 30
5
RE: sortable list question
Assuming that $(ids[i]) is the hidden input field, wouldn''t the
following line need to reference it as a form element?
> $(ids[i]).innerHTML = i;
I would assume it should be (the "'''' + " makes it a string, not sure if
you can set a form element value to an int, maybe you can):
$(ids[i]).value = '''' + i;
Or maybe I''m not
2006 Feb 27
4
Getting nuts with sortables...
Folks,
It has been a whole day spent on this but I still can''t get my mind
around the most probably very stupid/basic mistake here... First, the
code I use:
<h3>List A</h3>
<ul id="lista" >
<li id="item1"> Item 1</li>
<li id="item2"> Item 2</li>
<li id="item3"> Item 3</li>
</ul>
2006 Jan 24
8
scriptaculous sortable
Hi,
maybe I am using this the wrong way but I have a list as follows
<ul id="secondlist">
<li>bla bla</li>
<li> bla bla </li>
</ul>
and then I add dynamically further <li> elements and create a Sortable
but the onUpdate only fires for <li> items that have not been created
via Javascript.
Any clues?
<script
2006 Aug 08
3
Updating a tr with RJS
I''m having a strange display issue when trying to update a tablerow
using RJS.
This is the code in the RJS template:
page.replace_html "item_#{@item.id}", :partial => ''item_display''
So the existing <tr> has an id like item_1. When the update actions
completes, it renders this template and effectively replaces the tr with
item_display which as a tr of its own. The issue is, the new row doesn''t
span the width of the table.
Has anyone encountered this before?
Thanks.
--
Posted via http://www.ruby-forum.com...
2006 May 30
1
sortable_element does not initiate AJAX calls
Having an odd problem with sortable_element. The :url option doesn;t
seem to actually work. No AJAX calls are being generated. I can tell
because Firebug extension does not show any AJAX requests, and the
development.log file does not do anything when droppping the items in
new positions.
Here is the code I am using for sortable generation:
<%= sortable_element
2005 Aug 09
0
how do I report the list order of a drag and drop list back?
Hello,
I try to report the new order of a list back to the server, after the
drag & drop is done, but I am not sure how to do it.
My ids are underscore separated like this:
<ul class="sortablelist" id="ja">
<li class="green" id="item_1">Item 1</li>
...
</ul>
I define the sortable like this:
Sortable.create("ja",
{
containment:["ja","jb"],
onUpdate:function(){
new Ajax.Updater(''list-info'',?
''/...
2006 Feb 14
5
problem with sortable lists and IE
...x;
padding:0;
list-style-type: none;
width:250px;
}
#list li {
margin:0;
margin-bottom:4px;
padding:5px;
border:1px solid #888;
cursor:move;
}
</style>
<ul id="list" style="padding: 2px">
<li id="item_1">one</li>
<li id="item_2">two</li>
<li id="item_3">three</li>
<li id="item_4">four</li>
<li id="item_5">five</li>
<li id="item_6">six</li>
<li id="item_7"&g...
2017 Aug 30
1
Dataframe Manipulation
...ease help me
> .
>
> Note* the file I'm attaching is very confidential
>
> On 30 August 2017 at 15:02, Ulrik Stervbo <ulrik.stervbo at gmail.com> wrote:
>
>> Hi Hemant,
>>
>> Does this help you along?
>>
>> table_1 <- textConnection("Item_1;Item_2;Item_3
>> 1KG banana;300ML milk;1kg sugar
>> 2Large Corona_Beer;2pack Fries;
>> 2 Lux_Soap;1kg sugar;")
>>
>> table_1 <- read.csv(table_1, sep = ";", na.strings = "", stringsAsFactors
>> = FALSE, check.names = FALSE)
>>
&g...
2006 Jul 28
12
MenuEngine
Hi all,
MenuEngine is a small Rails engine that can generate templated
drop-down DHTML menus commonly used for web site navigation. Supports
creation of menus from a YAML file, from code and from pre-configured
HTML. Optionally integrates with UserEngine for authorization.
http://www.muermann.org/ruby/menu_engine
Project page:
http://rubyforge.org/projects/menuengine
This is my first attempt
2017 Sep 04
1
Dataframe Manipulation
...ntial
>>>
>>> On 30 August 2017 at 15:02, Ulrik Stervbo <ulrik.stervbo at gmail.com>
>>> wrote:
>>>
>>>> Hi Hemant,
>>>>
>>>> Does this help you along?
>>>>
>>>> table_1 <- textConnection("Item_1;Item_2;Item_3
>>>> 1KG banana;300ML milk;1kg sugar
>>>> 2Large Corona_Beer;2pack Fries;
>>>> 2 Lux_Soap;1kg sugar;")
>>>>
>>>> table_1 <- read.csv(table_1, sep = ";", na.strings = "",
>>>> stringsAsF...
2017 Aug 31
0
Dataframe Manipulation
...ile I'm attaching is very confidential
>>
>> On 30 August 2017 at 15:02, Ulrik Stervbo <ulrik.stervbo at gmail.com>
>> wrote:
>>
>>> Hi Hemant,
>>>
>>> Does this help you along?
>>>
>>> table_1 <- textConnection("Item_1;Item_2;Item_3
>>> 1KG banana;300ML milk;1kg sugar
>>> 2Large Corona_Beer;2pack Fries;
>>> 2 Lux_Soap;1kg sugar;")
>>>
>>> table_1 <- read.csv(table_1, sep = ";", na.strings = "",
>>> stringsAsFactors = FALSE, check.na...
2005 Sep 23
1
Sortable list with Ajax and delete function - working example
Hi.
I read most of the postings here but unfortunately I didin''t found a complete example which could be used. Of cource the ones who are professionals in javascript could implement the missing peaces from the puzzle.
What I''m required to do is a tree (sortable list) where items can also be deleted and at each modification a function (ajax) is called to save the changes. For
2017 Aug 30
3
Dataframe Manipulation
Hey PIKAL,
It's not a homework neithe that is the real dataset i have signer NDA for
my company so that i can share the original data file, Actually I'm working
on a market basket analysis task but not able to convert my existing data
table to appropriate format so that i can apply Apriori algorithm using R,
and this is very important me to get it done because I'm an intern and if i
2017 Aug 30
2
Dataframe Manipulation
...rent category then the cell supposed to fill as NA. please help me with R or C/c++ code( R would be
preferred) here I?m attaching you all three tables for better reference i have first two tables and i want to get a table like table 3
Tables are explained in the attached doc
Table 1 :
Item_1 Item_2 Item_3 Item_4
T1 1KG banana 300ML milk 1kg sugar NA
T2 2 Large Corona Beer 2 pack Fries NA NA
T3 2 Lux Soap 1kg sugar Na...