Good News Everybody!
The new search engine is LIVE!
Please report any problems to david (at) midrange.com.
|
Walden
Thank you again for your continued help.
Walden H. Leverich wrote:
No. I can only add scripts & HTML in one or more blocks before the AFIELD input and also in more or more blocks after the input fields but before the buttons at the bottom are written out.Rob,
Do you have control of the <BODY> tag?
Specifically can you add an
onLoad= attribute?
I don't know - does the above help?
I wasn't expecting a solution to the focus problem and am most grateful. I tried it and it works in NS & Firefox, but not in IE. It does make a tremendous difference to productivity when it works but the majority of people use IE so I do need to find a way of getting it going for IE.The onLoad attribute specifies a function for the browser to call when it's done loading the page. This would solve two problems:
1) Since the page was loaded you would be sure that all the elements were there. Thus the getElementsByName and getElementById would always work.
2) You could solve your focus problem by using the focus() method: document.getElementsByName('AFIELD.007-016')[0].focus();
If you can't change the body tag you could also inject some code into the body tag by placing the following in one of your script blocks:
document.getElementsByTagName("BODY")[0].setAttribute("onLoad", "DoOnLoad()"); function DoOnLoad() {document.getElementsByName('AFIELD.007-016')[0].focus();}
This adds the onLoad attribute to the BODY tag and tells it to call DoOnLoad() it also defines DoOnLoad to set the focus.
It really doesn't seem likely but I really was so careful.
Many thanks
best wishes
Rob
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.