This code is the Shared Border:
<html><head><meta http-equiv="Content-Type" content="text/html;
charset=windows-1252"><title>Shared Top Border</title><meta name="Microsoft
Theme" content="none">
<meta name="Microsoft Border" content="none">
</head><body>
<table id="SBT" border="0" width="100%">
<tr>
<td style="text-align: left" width="31%">
<p style="text-align: left">
<img border="0" src="../images/logos/stdgear_web_header.gif" width="306"
height="52"></td>
<td style="text-align: center" width="33%"> </td>
<td style="text-align: center" width="35%">
<p style="text-align: right">
<applet id="phrases" code="fprotate.class" codebase="../" width="325"
height="75">
<param name="rotatoreffect" value="none">
<param name="time" value="5">
<param name="image1" valuetype="ref"
value="../images/phrase/phrase_01.jpg">
<param name="image2" valuetype="ref"
value="../images/phrase/phrase_02.jpg">
<param name="image3" valuetype="ref"
value="../images/phrase/phrase_03.jpg">
<param name="image4" valuetype="ref"
value="../images/phrase/phrase_04.jpg">
<param name="image5" valuetype="ref"
value="../images/phrase/phrase_05.jpg">
<param name="image6" valuetype="ref"
value="../images/phrase/phrase_06.jpg">
<param name="image7" valuetype="ref"
value="../images/phrase/phrase_07.jpg">
<param name="image8" valuetype="ref"
value="../images/phrase/phrase_08.jpg">
<param name="image9" valuetype="ref"
value="../images/phrase/phrase_09.jpg">
<param name="image1" valuetype="ref"
value="../images/phrase/phrase_10.jpg">
<param name="image2" valuetype="ref"
value="../images/phrase/phrase_11.jpg">
<param name="image3" valuetype="ref"
value="../images/phrase/phrase_12.jpg">
<param name="image4" valuetype="ref"
value="../images/phrase/phrase_13.jpg">
<param name="image5" valuetype="ref"
value="../images/phrase/phrase_14.jpg">
<param name="image6" valuetype="ref"
value="../images/phrase/phrase_15.jpg">
<param name="image7" valuetype="ref"
value="../images/phrase/phrase_16.jpg">
<param name="image8" valuetype="ref"
value="../images/phrase/phrase_17.jpg">
</applet></td>
</tr>
</table>
</body></html>
This is my test page I have been messing with...less code than actual:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Temp</title>
<meta name="Microsoft Theme" content="std-gear-theme 1011, default">
<meta name="Microsoft Border" content="tb">
</head>
<body onload="document.forms[0].fields[0].focus()" topmargin="5"
leftmargin="5" rightmargin="5" bottommargin="5">
<table border="0" width="100%">
<tr>
<td width="15%" style="text-align: center" valign="top"> <p>
<img border="0" src="images/logos/STD-Logo-041004-01.gif" width="95"
height="80"></p>
<p> </td>
<td>
<form method="POST" action="--WEBBOT-SELF--" name="F1" id="F1">
<!--webbot bot="SaveResults" U-File="_private/form_results.csv"
S-Format="TEXT/CSV" S-Label-Fields="TRUE" startspan --><input TYPE="hidden"
NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults" i-checksum="43374"
endspan -->
<p> </p>
<p><input type="text" name="T1" size="20"></p>
<p><input type="text" name="T2" size="20"></p>
<p><input type="text" name="T3" size="20"></p>
<p><input type="submit" value="Submit" name="B1"><input type="reset"
value="Reset" name="B2"></p>
</form>
</td>
</tr>
</table>
</body></html>
Thanks
David
Ronx said:
You can post the code here - change any references you don't want to be
made public. Make sure you get the code from View Source.
Before that, if the form is processed by the FrontPage extensions, try
changing fields[0] to fields[1] in the code. FP adds a hidden field at
the start of the form which fields[0] refers to.
--
Ron Symonds - Microsoft MVP (Expression)
Reply only to group - emails will be deleted unread.
http://www.rxs-enterprises.org/fp
This is an internal site only. Can I send you the page?
David
Ronx said:
Please give a link to the page.
--
Ron Symonds - Microsoft MVP (Expression)
Reply only to group - emails will be deleted unread.
http://www.rxs-enterprises.org/fp
Thanks for the quick response. I do not have any forms in the 'Top Shared'.
This works onload="document.forms[0].fields[0].focus();" as well as
onLoad="F1.T1.focus()" when the Shared Border is removed. But when
onload="document.forms[0].fields[0].focus();" is used I receive null or not
an object for a script error.
David
:
Is there a form in either top or left shared borders?
forms[0] refers to the first form in the HTML (view source in browser to
see the HTML, FrontPage does not display the HTML for shared borders)
and fields[0] refers to the first field in that form. If the form you
need to focus in is the second form on the page, then use
forms[1].fields[0]
--
Ron Symonds - Microsoft MVP (Expression)
Reply only to group - emails will be deleted unread.
http://www.rxs-enterprises.org/fp
I have found the reason that I am having an issue regarding the focus of my
first field. I am using a Shared Border at the top of the page. Once I
remove the Shared Border, the onload works fine. How do I get around this?
Thanks
David
:
It needs to replace or add to your current body tag. In other words, if
your body tag is currently this -
<body ...> (where the ellipsis represents any additional attributes,
including *none*)
then you would change it to this -
<body onload="document.forms[0].fields[0].focus();" ...>
(Note that you carry your pre-existing attributes and values, if any, into
this new body tag)
--
Murray
MVP Expression Web
Hello Jon, I attempted the code you provided as well as the other. I can
not seem to get this to work. Does this need to be placed in a specific
location in the body?
David
:
Hi Gus,
<body onload="document.forms[0].fields[0].focus();">
--
Cheers,
Jon
Microsoft MVP
hi:
I've been unable to set the first field when a FP page with a form
loads.
How can I do this?
Appreciate any help.
Cheers,
Gus