My onLoad code is ignored by Domino

I have some code entered in the onLoad event in Designer, but it’s being ignored.

Instead, Domino is magically creating a body tag with an onLoad=“init()”.

Nothing is defined in any subform’s onLoad code. The HTML Head Content is being created as expected, as is the code in $$HTMLHead field. The form element is not explicitly coded anywhere (such as Pass-thru HTML).

This form is being loaded into an iframe of a larger page, but that code doesn’t define this form’s onLoad, either.

I don’t know where else to look. Someone please tell me where I can find this onLoad code?

TIA.

-Jeff

Subject: My onLoad code is ignored by Domino

Take another, longer, harder look at your onLoad – specifically the client selector. I’d be willing to bet that you’ve been editing like crazy in the “Notes Client” section while the “Web” section has been sitting untouched with init() in it all along. Done it myself a couple ‘r’ three times.

Subject: My onLoad code is ignored by Domino…Busted!

You busted me. You’re right. Now a further question (if I may):

What is the “Common JavaScript” choice?

Before your post, I was looking in the “Client” code and I switched to “Common JavaScript”. I received the warning, clicked OK, and saw the same code I had before (that is, not “init()”).

Then I switched to “Web” and still saw the same, not “init()”, code.

After reading your email, I switched to “Web” before switching to “Common JavaScript” and saw what you predicted, “init()”.

What am I missing?

Thanks, again.

-Jeff

Subject: RE: My onLoad code is ignored by Domino…Busted!

“Common JavaScript” simply means that the code will run both in the Notes client and on the web. I have no idea why you saw the same code when you switched client choices – the code should have changed with the selector. That is, you should have seen init() in the Web section and “not init()” in the Client section.