OnLoad & OnChange do not work together...?

Tech-Archive recommends: Fix windows errors by optimizing your registry



I've tried to add a picture beside each textbox in the onload event of the
lead form. This picture should be used as a help and shows some helptexts on
mousehover.
This worked without any problems, and it looks like this: (just for three
pictures)

function OnLoad()
{
var fieldNames = new Array(3);
fieldNames[0] = "subject";
fieldNames[1] = "lastname";
fieldNames[2] = "companyname";

var helpTexts = new Array(2);
helpTexts[0] = "Hilfe 1";
helpTexts[1] = "Hilfe 2";
helpTexts[2] = "CompanyHelp 3"

for (i=0; i<fieldNames.length; i++)
{
var inputData = document.getElementById(fieldNames[i] + "_d");
var inputDataHtml = inputData.innerHTML;
var newInputDataHtml = inputDataHtml + "<img src='/_imgs/icn_help16.png'
alt='" + helpTexts[i] + "'></img>";
inputData.innerHTML = newInputDataHtml;
}

}


So if i now add some commands in the OnChange event of one this fields, this
commands are NOT going to be executed!


Does anybody have an idea what the problem could be or already solved this
problem?

Greez Joe
.



Relevant Pages

  • Re: Some notes to Netsurf
    ... See the picture self in the editor window - not the ... <commands>. ... WebSpider has a browser type interface - although it isn't a browser - ...
    (comp.sys.acorn.apps)
  • Re: Need Help Creating an Image Slideshow
    ... the same frame after a delay of some seconds. ... Wait xx seconds (different interval for each picture) ... var t = 0; ... consider using a slideshow object in the first place. ...
    (comp.lang.javascript)
  • Re: javascript picture insert?
    ... Outta curiosity, on the butterfly pages url you listed...what is the little gray door on the right side, then I see two more gray vertical rectangles. ... | I'm trying to place a picture on a page "offer_form.htm" by linking from ... | var qvbl; ... | I've made the whole shebang work in a new practice web, ...
    (microsoft.public.frontpage.client)
  • Re: Some notes to Netsurf
    ... See the picture self in the editor window - not the ... <commands>. ...
    (comp.sys.acorn.apps)
  • Re: Word 2007 Moving a PIC
    ... Pictures can be moved without a textbox. ... Select the picture and use either right click or on the ribbbon Picture Tools=>Format ... With inline with text graphics are treated as being the same as 'big text items' by Word as far as positioning. ... For help in finding your way around Word 2007 you may find the Was/Is tools and spreadsheets of commands here to be helpful. ...
    (microsoft.public.word.drawing.graphics)