Posts tagged "Water Pipes"

HTML and javascript trying to do a onload and getElementByID call?

Question by Nor: HTML and javascript trying to do a onload and getElementByID call?
for my homework assignment i need to write a javascript that changes some text in a HTML document using javascript im tryint to do it with the getElementByID and i also have to use the onload call for it as well but for some reason i cant get it to work. This is what i got so far.

"http://www.w3.org/TR/xhtml11/DTD/xhtm…




Buildings Insurance

You need this type of insurance to cover you in case of
sever damage to your home
(for example fire, flood, vehicle or tree crashing into it)
as well as more everyday risks like accidentally breaking a window

Contents Insurance

You need this type of insurance to cover
things in your house
such as furniture, electrical goods, carpets and curtains, againsts risks
such as fire, theft, water damage (due to burst pipes. etc) or accidental breakage



any help is greatly appreciated.

PS. i tried linking the HTML with my javascript and that didn’t work than i just put the javascript at the end of my body so thats why my javascript is directly implemented into my HTML either way will work i would prefer to just link the javascript to the HTML document though, thx again

Best answer:

Answer by S
Your onload calls changeText(), but your script has change_text().

Give your answer to this question below!

Be the first to comment - What do you think?
Posted by - May 24, 2011 at 6:00 pm

Categories: House Insurance Contents   Tags: Buildings Insurance, call, Carpets, Contents Insurance, Curtains, Electrical Goods, Everyday Risks, Fire Flood, Fire Theft, Furniture, getElementByID, Homework Assignment, HTML, Html Document, Html Javascript, Insurance Cover, javascript, Javascript Html, Javascript Onload, onload, trying, W3c, Water Damage, Water Pipes, Window Contents

HTML and PHP trying to do a onload and getElementByID call?

Question by Nor: HTML and PHP trying to do a onload and getElementByID call?
for my homework assignment i need to write a javascript that changes some text in a HTML document using javascript im tryint to do it with the getElementByID and i also have to use the onload call for it as well but for some reason i cant get it to work. This is what i got so far.

"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">




Buildings Insurance

You need this type of insurance to cover you in case of
sever damage to your home
(for example fire, flood, vehicle or tree crashing into it)
as well as more everyday risks like accidentally breaking a window

Contents Insurance

You need this type of insurance to cover
things in your house
such as furniture, electrical goods, carpets and curtains, againsts risks
such as fire, theft, water damage (due to burst pipes. etc) or accidental breakage



any help is greatly appreciated.

PS. i tried linking the HTML with my javascript and that didn’t work than i just put the javascript at the end of my body so thats why my javascript is directly implemented into my HTML either way will work i would prefer to just link the javascript to the HTML document though, thx again

Best answer:

Answer by MathMan TG
Two problems:

1)
The two spellings of “change text” have to match – including case.



function change_text()

Use changeText in both places
or change_text in both places
not one of each.

2)
The closing brace on change_text is facing the wrong way.
use } instead of {

Fix those two and then it works.

In Firefox, there is an Error Console available under Tools on the Menu Bar.
It can help you by showing where you have syntax errors.
Not sure how to see them in IE, but there must be some way.

What do you think? Answer below!

Be the first to comment - What do you think?
Posted by - April 25, 2011 at 2:00 am

Categories: House Insurance Contents   Tags: Buildings Insurance, call, Carpets, Contents Insurance, Curtains, Electrical Goods, Everyday Risks, Fire Flood, Fire Theft, Firefox, getElementByID, Homework Assignment, HTML, Html Document, Html Javascript, Menu Bar, onload, Spellings, Syntax Errors, trying, Water Damage, Water Pipes, Window Contents, Wrong Way

Repairing water damage

Water damage to your house or business can be caused in several ways. It could maybe happen little by little as a result of somewhat leaky pipe fittings or even a small split in your foundation, or  it might occur quickly with damaged water pipes (like may happen in the winter) or even a hole in the roof made by a hurricane. No matter the way it occurs, it is a problem that needs to be dealt with promptly. The longer the dampness is left in place, the greater damage it is going to do.

Water which causes the destruction is normally put in 3 different types.

Category 1 – Clean water

Category 2 -  Slightly polluted and can bring about sickness

Category 3 -  Highly contaminated and can cause serious disease or death.

Regarding category 1 water damage, the home/business owner might be able to manage it themselves if it is in a smaller area. Then again, when it is in a very large area, or maybe is a Category 2 or 3,  it really is time for you to call in a trained specialist. The potential for lots more damage, or even health problems can be a possibility. Having said that, if the home or business owner still chooses to handle the problem on their own, here are some important things that should be performed right away..

1)The very first thing to do when water damage is experienced is always to switch the power off. Water and electric power certainly are a deadly pair. Stop the flow of water in case it’s still happening. You can’t start cleanup until this is accomplished. You’ve got to cut off a main valve.

2)Next, begin cleaning up the water.  It is critical to get all of the water extracted as you can as quickly as possible, or you will have a good place for mildew to develop and bring about  a lot more issues. If you think it is a category two or three you ought to be putting on rubber gloves and also a mask.

3)Once you have as much water out as you believe it is possible to, you should bring a few heavy duty fans to the location and put them to work drying up the moisture. They will need to remain working provided there’s even a small level of dampness.

4)In case you have damage you know can’t be repaired like saturated drywall, warped or ruined floor coverings or carpet, it must end up being taken out; it still has plenty of moisture content and it is just in the way.

5)When you’re sure the moisture issue is solved and all the ruined items are outside the building and also the area is clean, It is time to overview the damage. You’ll still have to call in a pro to help examine for mildew, deodorize and disinfect, and look at electrical wiring if it had been damaged

Remember all through this procedure that the KEY to water damage restoration is getting all of the wetness out so  more deterioration can’t occur.

Be the first to comment - What do you think?
Posted by admin - May 30, 2010 at 12:31 am

Categories: Uncategorized   Tags: Category 3, Clean Water, Cleanup, Dampness, Health Problems, Heavy Duty Fans, Hole In The Roof, Home Business Owner, hurricane, Important Things, Leaky Pipe, Mask, Mildew, Nbsp, Pipe Fittings, Rubber Gloves, Several Ways, Water Damage, Water Pipes, Water Power