Questions tagged [inplace-editing]
51 questions
3
votes
3 answers
shell script replace variables in file - error with Sed's -i option for in-place updating
Here is my test.env
RABBITMQ_HOST=127.0.0.1
RABBITMQ_PASS=1234
And I want to use test.sh to replace the value in test.env to :
RABBITMQ_HOST=rabbitmq1
RABBITMQ_PASS=12345
here is my test.sh
#!/bin/bash
echo "hello…

user2492364
- 6,543
- 22
- 77
- 147
3
votes
1 answer
Rails: In-place editor but no postback?
I'm using Prototype in my Rails project to do in-place editing (via Ajax.InPlaceEditor) of a form. However, I don't want it to immediately post back and do the update - the form itself is pretty complicated and the user may decide to abandon their…

Matt Rogish
- 24,435
- 11
- 76
- 92
3
votes
2 answers
best_in_place is not a function error in Rails 3.2.1
I am using best_in_place gem for my Rails 3.2.1 application. I have no error in my development. When I try to run the application in production, I am getting a script error
$(".best_in_place").best_in_place is not a function in my browser.
In my…

Amal Kumar S
- 15,555
- 19
- 56
- 88
2
votes
3 answers
How to do in-place editing in android listview?
Basically I have a listview with with each list item as (2 textviews and a checkbox). When a particular list item is clicked, I wanted to replace that row with a new edit-text view and some buttons.
How do I implement this ?
Should I use integer…

Mayuri Khinvasara
- 1,437
- 1
- 16
- 12
2
votes
1 answer
How to preserve line breaks in Scriptaculous InPlaceEditor?
I have a page with various textareas which can be edited using Scriptaculous (is there a better option?):
The PHP file looks like…

Joe W
- 998
- 6
- 16
- 36
2
votes
1 answer
Can't edit after erasing all the text in Prototype's inPlaceEditor
All the examples of Prototype's inPlaceEditor I've found suffer from the same problem. When you enter edit mode and erase all the text and click OK you can't edit any more because the
tag is empty and there is nothing to click on! Here is an…

milan
- 2,355
- 2
- 23
- 38
2
votes
0 answers
Inline editing of image in Angularjs X-editable
I have many fields in my profile page. I am making my profile page inline editable with Angularjs X-editable. I am making progress using guide http://vitalets.github.io/angular-xeditable/
With this I made all the fields editable except the image…

Niraj Chapla
- 2,149
- 1
- 21
- 34
2
votes
1 answer
How to use Ruby's command line in-place-edit mode to remove lines from a text file
I've been a long time perl user, and in perl you can easily remove lines from text files like this:
perl -pi -e 'undef $_ if m/some-condition/' file.txt
I'm trying to move my scripting to Ruby, which also does in-place-edit, so I wrote this:
ruby…

Guss
- 30,470
- 17
- 104
- 128
2
votes
1 answer
Rails- in place editing using best_in_place gem for an array collection defined in model itself
I have seen RailsCasts#302 which describes about the in-place editing using the best_in_place gem. Over there in for gender option Ryan uses the array inside the show.html.erb and makes it a dropdown box(see the gender section where he explicitly…

uday
- 8,544
- 4
- 30
- 54
1
vote
3 answers
Problem with jQuery edit-in-place with live() function.. need a ninja
This is probably an easy fix, but I am having trouble wrapping my brain around it...
I'm using a jQuery edit-in-place plugin for some divs that will be generated on the fly. It should be simple: Click in the newly created div, and be able to edit…

Joseph Wer
- 351
- 1
- 6
- 15
1
vote
1 answer
Commenting a pattern of line in a file
I need to comment a set of line which has similar pattern with a unique value on it.
example
a {
1
2 one
3
}
a {
1
2 two
3
}
In the above example I need to comment the entire block. base on the unique value "two"
like this.
a {
1
2 one
3
}
#a…

rs2687
- 13
- 3
1
vote
1 answer
make inplace tag by default editable without click - primefaces
I am working with primefaces 4.0, I am wondering how to make the following inplace tag editable without clicking the text here is the code

Mohamed Saber
- 54
- 8
1
vote
0 answers
Deleting lines in File with "inplace"
Another question that I have is how to manipulate text files.
I joined several files to one big. Now I have all headlines of the files in the new big one and want to delete them in the file without saving under a new one.
My file is separated by ";"…

DP13
- 11
- 5
1
vote
2 answers
Why is in-place edditing of a file slower than making a new file?
As you can see in this answer. It seems like editing a text file in-place takes much more time than creating a new file, deleting the old file and moving a temporary file from another file-system and renaming it. Let alone creating a new file in the…

yukashima huksay
- 5,834
- 7
- 45
- 78
1
vote
1 answer
Formatting files to be written
Hi please how can I loop over a text file, identify lines with 0s at the last index of such a line, and delete those lines while retrieving the ones not deleted. Then also format the output to be tuples.
input.txt = 1 2 0
1 3 0
…

user3481663
- 79
- 4