Results tagged prototype 1.6
With prototype 1.6 being released it has left some abilities, classes, functions, or methods behind. One of those depreciated classes is the Insertion class which was replaced with insert(). insert allows you to insert content into your documents. That content can be either text, HTML, a DOM Element, or any type of object with a toHTML or toElement method. The content can be placed using a parameter of bottom, top, before, or after value. Let's try it.
First we are going to create a function and call it myFunction and a new String object which we will use for our insert.
function myFunction() {
var test = "This is a new String.";
}
Now let's create an instance of our insert class.
new Element.insert('myDiv', {top:test});
So now our script looks like this
First we are going to create a function and call it myFunction and a new String object which we will use for our insert.
function myFunction() {
var test = "This is a new String.";
}
Now let's create an instance of our insert class.
new Element.insert('myDiv', {top:test});
So now our script looks like this
More : Prototype 1.6, insert();.
2whoa.com - NEW!!
Home
jQuery
Javascript
Archives
MLB Wallpapers
NFL Wallpapers
NBA Wallpapers
NHL Wallpapers
Flames Wallpaper
Watch Live Games!
NHL
NBA
Soccer
NFL
and more..
BMW, Toyota, Volvo, Saab, Audi, Nissan Mercedes, Volvo, Nissan,Volvo Volvo Volvo Honda, Acura, Honda, Acura Forerunner, SUV, Volvo, Mercedes, Toyota
Volvo, Toyota, Volvo, Saab, Audi, Nissan Mercedes, Volvo, Nissan,Volvo Volvo Volvo Honda, Acura, Honda, Acura Forerunner, SUV, Volvo, Mercedes, Toyota
Home
jQuery
Javascript
Archives
MLB Wallpapers
NFL Wallpapers
NBA Wallpapers
NHL Wallpapers
Flames Wallpaper
Watch Live Games!
NHL
NBA
Soccer
NFL
and more..
BMW, Toyota, Volvo, Saab, Audi, Nissan Mercedes, Volvo, Nissan,Volvo Volvo Volvo Honda, Acura, Honda, Acura Forerunner, SUV, Volvo, Mercedes, Toyota
Volvo, Toyota, Volvo, Saab, Audi, Nissan Mercedes, Volvo, Nissan,Volvo Volvo Volvo Honda, Acura, Honda, Acura Forerunner, SUV, Volvo, Mercedes, Toyota


