Add content on to the beginning of something (usually a file).
Questions tagged [prepend]
497 questions
6
votes
3 answers
6
votes
3 answers
Removing text that was appended previously
I have a highlighting function using JQuery, that changes the css for the clicked element in a menu. The function also prepends a pair of left brackets << to serve as pseudo arrows.
But how do I remove that << when I switch to the next …

Tom
- 2,928
- 4
- 28
- 36
6
votes
2 answers
Prepending Data to a File
There's no way in any operating system I'm aware of for a program to prepend data to a file efficiently.
And yet, this doesn't seem difficult -- the file system can add another extent to a file descriptor if needed.
So the question is, why don't…

user541686
- 205,094
- 128
- 528
- 886
6
votes
4 answers
prepend/append works in Chrome and Firefox but not IE11 and Edge
Trying to prepend data inside a text box in Chrome and Firefox works.
Get error: SCRIPT438: Object doesn't support property or method 'prepend'
in IE11 and Edge. Thx
function init_TGs(){
if (confirm("Initialize TinyG's?")){
…

creeser
- 363
- 1
- 4
- 11
6
votes
1 answer
React Native - How to prepend AND append data in ListView without full re-render
I've been working really hard to solve this problem for a long time now.
I've looked at StackOverflow AND other issues for a solution but I couldn't find a clear one.
I know that I can prepend WITH full re-render, but I don't know how I can prepend…

김진규
- 77
- 8
5
votes
3 answers
Can I create a self-closing element with createElement?
I'm trying to append a line of HTML before all the children of the body.
Right now I have this:
// Prepend vsr-toggle
var vsrToggle = document.createElement("div");
vsrToggle.innerHTML = "
5
votes
2 answers
jquery prepend to textarea text()
I have a text area. I can set the text of it with
$("#mytextarea").text("foo")
I can prepend to the text area like this:
$("#mytextarea").prepend("foo")
But I cannot prepend to the jquery text() object like…

shino
- 4,562
- 5
- 38
- 57
5
votes
1 answer
prepend string to entire column in mongodb
I would like to prepend a string to all values of a mongo collection's column.
Something like
db.testcoll.update({},{$set:{column1 : "prependstring"+ column1}});
Is there something like this ?

thegrid
- 509
- 1
- 6
- 20
5
votes
2 answers
How to prepend to a StringBuilder?
VB.NET have a method, just like java, to append to an object of type StringBuilder
But can I prepend to this object (I mean a add some string before the stringbuilder value, not after). Here is my code:
'Declare an array
Dim IntegerList() = {24,…

Amaynut
- 4,091
- 6
- 39
- 44
5
votes
1 answer
Javascript Object - prepend object to existing object
I have this javascript objects.
I want to add this javascript object to the beginning of the jsObject variable: