Cursor Location in a form text box

S

Steve Spicer

This has always bugged me. If you create a textbox with an initial value
which is a field value, like <% = FP_FieldVal (fp_rs, "FirstName")%> then
when the form is live and you click in the text box when it's empty (there
was no field value in the db) the cursor is on the second character. If the
user doesn't manually backspace to the first character it loads a value into
the database with a <space> first character. That can screw up sorting
something fierce. It's not a problem when there is no initial field value
coded into the text box or if you tab into the textbox. Try it.
Is there any kind of workaround?
 
S

Stefan B Rusynko

There should not be a space there unless you either set a space a a defaut value in your Db or your html has the space in it

Make sure the code looks like (on 1 line)
<textarea rows="2" cols="20"><%=FP_FieldVal (fp_rs, "FirstName")%></textarea>


--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| This has always bugged me. If you create a textbox with an initial value
| which is a field value, like <% = FP_FieldVal (fp_rs, "FirstName")%> then
| when the form is live and you click in the text box when it's empty (there
| was no field value in the db) the cursor is on the second character. If the
| user doesn't manually backspace to the first character it loads a value into
| the database with a <space> first character. That can screw up sorting
| something fierce. It's not a problem when there is no initial field value
| coded into the text box or if you tab into the textbox. Try it.
| Is there any kind of workaround?
 
J

Jon Spivey

to be sure you could trim the value
<textarea rows="2" cols="20"><%=trim(FP_FieldVal (fp_rs,
"FirstName"))%></textarea>
 
S

Steve Spicer

That doesn't work either. You can go to
http://www.spicerweb.org/tesadd.asp
to see what I mean. You will need to click on the hyperlink in the results
to take you to the edit page where you can click in the empty last name
textbox.
The cursor will be on the second character.

Jon Spivey said:
to be sure you could trim the value
<textarea rows="2" cols="20"><%=trim(FP_FieldVal (fp_rs,
"FirstName"))%></textarea>

--
Cheers,
Jon
Microsoft MVP

Stefan B Rusynko said:
There should not be a space there unless you either set a space a a defaut
value in your Db or your html has the space in it

Make sure the code looks like (on 1 line)
<textarea rows="2" cols="20"><%=FP_FieldVal (fp_rs,
"FirstName")%></textarea>


--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| This has always bugged me. If you create a textbox with an initial value
| which is a field value, like <% = FP_FieldVal (fp_rs, "FirstName")%>
then
| when the form is live and you click in the text box when it's empty
(there
| was no field value in the db) the cursor is on the second character. If
the
| user doesn't manually backspace to the first character it loads a value
into
| the database with a <space> first character. That can screw up sorting
| something fierce. It's not a problem when there is no initial field
value
| coded into the text box or if you tab into the textbox. Try it.
| Is there any kind of workaround?
 
S

Stefan B Rusynko

Post a code snipped of your form at the top of http://www.spicerweb.org/tesadd.asp

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| That doesn't work either. You can go to
| http://www.spicerweb.org/tesadd.asp
| to see what I mean. You will need to click on the hyperlink in the results
| to take you to the edit page where you can click in the empty last name
| textbox.
| The cursor will be on the second character.
|
| "Jon Spivey" wrote:
|
| > to be sure you could trim the value
| > <textarea rows="2" cols="20"><%=trim(FP_FieldVal (fp_rs,
| > "FirstName"))%></textarea>
| >
| > --
| > Cheers,
| > Jon
| > Microsoft MVP
| >
| > | > > There should not be a space there unless you either set a space a a defaut
| > > value in your Db or your html has the space in it
| > >
| > > Make sure the code looks like (on 1 line)
| > > <textarea rows="2" cols="20"><%=FP_FieldVal (fp_rs,
| > > "FirstName")%></textarea>
| > >
| > >
| > > --
| > >
| > > _____________________________________________
| > > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > > "Warning - Using the F1 Key will not break anything!" (-;
| > > To find the best Newsgroup for FrontPage support see:
| > > http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > > _____________________________________________
| > >
| > >
| > > | > > | This has always bugged me. If you create a textbox with an initial value
| > > | which is a field value, like <% = FP_FieldVal (fp_rs, "FirstName")%>
| > > then
| > > | when the form is live and you click in the text box when it's empty
| > > (there
| > > | was no field value in the db) the cursor is on the second character. If
| > > the
| > > | user doesn't manually backspace to the first character it loads a value
| > > into
| > > | the database with a <space> first character. That can screw up sorting
| > > | something fierce. It's not a problem when there is no initial field
| > > value
| > > | coded into the text box or if you tab into the textbox. Try it.
| > > | Is there any kind of workaround?
| > >
| > >
| >
| >
| >
 
S

Steve Spicer

I've posted code at http://www.spicerweb.org/tesadd.asp for that page and for
the editestdb.asp page that the hyperlink takes you to. That page is the
first step in an edit database page which is not completed for this test. The
whole routine for pages to editing the database I created several years ago
for a work "rolodex" and it's bugged me since then that the cursor would be
placed on the second character.
The tutorial for creating the edit pages is at
http://spicerweb.org/tutorial/tutorial/tutorial.htm

Stefan B Rusynko said:
Post a code snipped of your form at the top of http://www.spicerweb.org/tesadd.asp

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| That doesn't work either. You can go to
| http://www.spicerweb.org/tesadd.asp
| to see what I mean. You will need to click on the hyperlink in the results
| to take you to the edit page where you can click in the empty last name
| textbox.
| The cursor will be on the second character.
|
| "Jon Spivey" wrote:
|
| > to be sure you could trim the value
| > <textarea rows="2" cols="20"><%=trim(FP_FieldVal (fp_rs,
| > "FirstName"))%></textarea>
| >
| > --
| > Cheers,
| > Jon
| > Microsoft MVP
| >
| > | > > There should not be a space there unless you either set a space a a defaut
| > > value in your Db or your html has the space in it
| > >
| > > Make sure the code looks like (on 1 line)
| > > <textarea rows="2" cols="20"><%=FP_FieldVal (fp_rs,
| > > "FirstName")%></textarea>
| > >
| > >
| > > --
| > >
| > > _____________________________________________
| > > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > > "Warning - Using the F1 Key will not break anything!" (-;
| > > To find the best Newsgroup for FrontPage support see:
| > > http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > > _____________________________________________
| > >
| > >
| > > | > > | This has always bugged me. If you create a textbox with an initial value
| > > | which is a field value, like <% = FP_FieldVal (fp_rs, "FirstName")%>
| > > then
| > > | when the form is live and you click in the text box when it's empty
| > > (there
| > > | was no field value in the db) the cursor is on the second character. If
| > > the
| > > | user doesn't manually backspace to the first character it loads a value
| > > into
| > > | the database with a <space> first character. That can screw up sorting
| > > | something fierce. It's not a problem when there is no initial field
| > > value
| > > | coded into the text box or if you tab into the textbox. Try it.
| > > | Is there any kind of workaround?
| > >
| > >
| >
| >
| >
 
B

Bob Lehmann

You have a space in the value -
<input type="text" name="T2" size="35" value="&nbsp;">Bob Lehmann"Steve
Spicer said:
I've posted code at http://www.spicerweb.org/tesadd.asp for that page and for
the editestdb.asp page that the hyperlink takes you to. That page is the
first step in an edit database page which is not completed for this test. The
whole routine for pages to editing the database I created several years ago
for a work "rolodex" and it's bugged me since then that the cursor would be
placed on the second character.
The tutorial for creating the edit pages is at
http://spicerweb.org/tutorial/tutorial/tutorial.htm

Stefan B Rusynko said:
Post a code snipped of your form at the top of http://www.spicerweb.org/tesadd.asp

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| That doesn't work either. You can go to
| http://www.spicerweb.org/tesadd.asp
| to see what I mean. You will need to click on the hyperlink in the results
| to take you to the edit page where you can click in the empty last name
| textbox.
| The cursor will be on the second character.
|
| "Jon Spivey" wrote:
|
| > to be sure you could trim the value
| > <textarea rows="2" cols="20"><%=trim(FP_FieldVal (fp_rs,
| > "FirstName"))%></textarea>
| >
| > --
| > Cheers,
| > Jon
| > Microsoft MVP
| >
| > | > > There should not be a space there unless you either set a space a a defaut
| > > value in your Db or your html has the space in it
| > >
| > > Make sure the code looks like (on 1 line)
| > > <textarea rows="2" cols="20"><%=FP_FieldVal (fp_rs,
| > > "FirstName")%></textarea>
| > >
| > >
| > > --
| > >
| > > _____________________________________________
| > > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > > "Warning - Using the F1 Key will not break anything!" (-;
| > > To find the best Newsgroup for FrontPage support see:
| > > http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > > _____________________________________________
| > >
| > >
| > > | > > | This has always bugged me. If you create a textbox with an initial value
| > > | which is a field value, like <% = FP_FieldVal (fp_rs, "FirstName")%>
| > > then
| > > | when the form is live and you click in the text box when it's empty
| > > (there
| > > | was no field value in the db) the cursor is on the second character. If
| > > the
| > > | user doesn't manually backspace to the first character it loads a value
| > > into
| > > | the database with a <space> first character. That can screw up sorting
| > > | something fierce. It's not a problem when there is no initial field
| > > value
| > > | coded into the text box or if you tab into the textbox. Try it.
| > > | Is there any kind of workaround?
| > >
| > >
| >
| >
| >
 
S

Steve Spicer

Sure do when you view source. But how does the space get there?
I did change the value in the code to
<input type="text" name="T1" size="35"
value="<%=FP_FieldVal(fp_rs,"T2")%>"></td>
to eliminate the space beween fp_rs, and "T2" but that doesn't help.
The browser reads that as a space when the empty field is called from the
db. That's my whole problem. The user has to backspace to fill in the textbox
without a space.

Bob Lehmann said:
You have a space in the value -
<input type="text" name="T2" size="35" value=" ">Bob Lehmann"Steve
Spicer said:
I've posted code at http://www.spicerweb.org/tesadd.asp for that page and for
the editestdb.asp page that the hyperlink takes you to. That page is the
first step in an edit database page which is not completed for this test. The
whole routine for pages to editing the database I created several years ago
for a work "rolodex" and it's bugged me since then that the cursor would be
placed on the second character.
The tutorial for creating the edit pages is at
http://spicerweb.org/tutorial/tutorial/tutorial.htm

Stefan B Rusynko said:
Post a code snipped of your form at the top of http://www.spicerweb.org/tesadd.asp

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| That doesn't work either. You can go to
| http://www.spicerweb.org/tesadd.asp
| to see what I mean. You will need to click on the hyperlink in the results
| to take you to the edit page where you can click in the empty last name
| textbox.
| The cursor will be on the second character.
|
| "Jon Spivey" wrote:
|
| > to be sure you could trim the value
| > <textarea rows="2" cols="20"><%=trim(FP_FieldVal (fp_rs,
| > "FirstName"))%></textarea>
| >
| > --
| > Cheers,
| > Jon
| > Microsoft MVP
| >
| > | > > There should not be a space there unless you either set a space a a defaut
| > > value in your Db or your html has the space in it
| > >
| > > Make sure the code looks like (on 1 line)
| > > <textarea rows="2" cols="20"><%=FP_FieldVal (fp_rs,
| > > "FirstName")%></textarea>
| > >
| > >
| > > --
| > >
| > > _____________________________________________
| > > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > > "Warning - Using the F1 Key will not break anything!" (-;
| > > To find the best Newsgroup for FrontPage support see:
| > > http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > > _____________________________________________
| > >
| > >
| > > | > > | This has always bugged me. If you create a textbox with an initial value
| > > | which is a field value, like <% = FP_FieldVal (fp_rs, "FirstName")%>
| > > then
| > > | when the form is live and you click in the text box when it's empty
| > > (there
| > > | was no field value in the db) the cursor is on the second character. If
| > > the
| > > | user doesn't manually backspace to the first character it loads a value
| > > into
| > > | the database with a <space> first character. That can screw up sorting
| > > | something fierce. It's not a problem when there is no initial field
| > > value
| > > | coded into the text box or if you tab into the textbox. Try it.
| > > | Is there any kind of workaround?
| > >
| > >
| >
| >
| >
 
T

Thomas A. Rowe

Do you have a space in the field in the database?

See Jon Spivey reply on how to make sure that you do not have a leading or trailing spaces in field
content.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
==============================================
Agents Real Estate Listing Network
http://www.NReal.com
==============================================


Steve Spicer said:
Sure do when you view source. But how does the space get there?
I did change the value in the code to
<input type="text" name="T1" size="35"
value="<%=FP_FieldVal(fp_rs,"T2")%>"></td>
to eliminate the space beween fp_rs, and "T2" but that doesn't help.
The browser reads that as a space when the empty field is called from the
db. That's my whole problem. The user has to backspace to fill in the textbox
without a space.

Bob Lehmann said:
You have a space in the value -
<input type="text" name="T2" size="35" value=" ">Bob Lehmann"Steve
Spicer said:
I've posted code at http://www.spicerweb.org/tesadd.asp for that page and for
the editestdb.asp page that the hyperlink takes you to. That page is the
first step in an edit database page which is not completed for this test. The
whole routine for pages to editing the database I created several years ago
for a work "rolodex" and it's bugged me since then that the cursor would be
placed on the second character.
The tutorial for creating the edit pages is at
http://spicerweb.org/tutorial/tutorial/tutorial.htm

:

Post a code snipped of your form at the top of http://www.spicerweb.org/tesadd.asp

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| That doesn't work either. You can go to
| http://www.spicerweb.org/tesadd.asp
| to see what I mean. You will need to click on the hyperlink in the results
| to take you to the edit page where you can click in the empty last name
| textbox.
| The cursor will be on the second character.
|
| "Jon Spivey" wrote:
|
| > to be sure you could trim the value
| > <textarea rows="2" cols="20"><%=trim(FP_FieldVal (fp_rs,
| > "FirstName"))%></textarea>
| >
| > --
| > Cheers,
| > Jon
| > Microsoft MVP
| >
| > | > > There should not be a space there unless you either set a space a a defaut
| > > value in your Db or your html has the space in it
| > >
| > > Make sure the code looks like (on 1 line)
| > > <textarea rows="2" cols="20"><%=FP_FieldVal (fp_rs,
| > > "FirstName")%></textarea>
| > >
| > >
| > > --
| > >
| > > _____________________________________________
| > > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > > "Warning - Using the F1 Key will not break anything!" (-;
| > > To find the best Newsgroup for FrontPage support see:
| > > http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > > _____________________________________________
| > >
| > >
| > > | > > | This has always bugged me. If you create a textbox with an initial value
| > > | which is a field value, like <% = FP_FieldVal (fp_rs, "FirstName")%>
| > > then
| > > | when the form is live and you click in the text box when it's empty
| > > (there
| > > | was no field value in the db) the cursor is on the second character. If
| > > the
| > > | user doesn't manually backspace to the first character it loads a value
| > > into
| > > | the database with a <space> first character. That can screw up sorting
| > > | something fierce. It's not a problem when there is no initial field
| > > value
| > > | coded into the text box or if you tab into the textbox. Try it.
| > > | Is there any kind of workaround?
| > >
| > >
| >
| >
| >
 
S

Steve Spicer

No. No spaces in the Access database. I checked that. The field is not
required and zero length is allowed if that makes any difference. In this
test case I let FP create the database.

Thomas A. Rowe said:
Do you have a space in the field in the database?

See Jon Spivey reply on how to make sure that you do not have a leading or trailing spaces in field
content.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
==============================================
Agents Real Estate Listing Network
http://www.NReal.com
==============================================


Steve Spicer said:
Sure do when you view source. But how does the space get there?
I did change the value in the code to
<input type="text" name="T1" size="35"
value="<%=FP_FieldVal(fp_rs,"T2")%>"></td>
to eliminate the space beween fp_rs, and "T2" but that doesn't help.
The browser reads that as a space when the empty field is called from the
db. That's my whole problem. The user has to backspace to fill in the textbox
without a space.

Bob Lehmann said:
You have a space in the value -
<input type="text" name="T2" size="35" value=" ">Bob Lehmann"Steve
I've posted code at http://www.spicerweb.org/tesadd.asp for that page and
for
the editestdb.asp page that the hyperlink takes you to. That page is the
first step in an edit database page which is not completed for this test.
The
whole routine for pages to editing the database I created several years
ago
for a work "rolodex" and it's bugged me since then that the cursor would
be
placed on the second character.
The tutorial for creating the edit pages is at
http://spicerweb.org/tutorial/tutorial/tutorial.htm

:

Post a code snipped of your form at the top of
http://www.spicerweb.org/tesadd.asp

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| That doesn't work either. You can go to
| http://www.spicerweb.org/tesadd.asp
| to see what I mean. You will need to click on the hyperlink in the
results
| to take you to the edit page where you can click in the empty last
name
| textbox.
| The cursor will be on the second character.
|
| "Jon Spivey" wrote:
|
| > to be sure you could trim the value
| > <textarea rows="2" cols="20"><%=trim(FP_FieldVal (fp_rs,
| > "FirstName"))%></textarea>
| >
| > --
| > Cheers,
| > Jon
| > Microsoft MVP
| >
| > | > > There should not be a space there unless you either set a space a
a defaut
| > > value in your Db or your html has the space in it
| > >
| > > Make sure the code looks like (on 1 line)
| > > <textarea rows="2" cols="20"><%=FP_FieldVal (fp_rs,
| > > "FirstName")%></textarea>
| > >
| > >
| > > --
| > >
| > > _____________________________________________
| > > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > > "Warning - Using the F1 Key will not break anything!" (-;
| > > To find the best Newsgroup for FrontPage support see:
| > >
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > > _____________________________________________
| > >
| > >
message
| > > | > > | This has always bugged me. If you create a textbox with an
initial value
| > > | which is a field value, like <% = FP_FieldVal (fp_rs,
"FirstName")%>
| > > then
| > > | when the form is live and you click in the text box when it's
empty
| > > (there
| > > | was no field value in the db) the cursor is on the second
character. If
| > > the
| > > | user doesn't manually backspace to the first character it loads
a value
| > > into
| > > | the database with a <space> first character. That can screw up
sorting
| > > | something fierce. It's not a problem when there is no initial
field
| > > value
| > > | coded into the text box or if you tab into the textbox. Try it.
| > > | Is there any kind of workaround?
| > >
| > >
| >
| >
| >
 
S

Stefan B Rusynko

You posted a URL for the pages, not a code snippet
(the actual html/asp for the form from FP)
Your rendered html is
<input type="text" name="T1" size="20" </p> First Name&nbsp; T1<p><input type="text" name="T2" size="20">Last Name&nbsp; T2</p>

Your problem, is the illegal </p> tags inside of the form fields
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| I've posted code at http://www.spicerweb.org/tesadd.asp for that page and for
| the editestdb.asp page that the hyperlink takes you to. That page is the
| first step in an edit database page which is not completed for this test. The
| whole routine for pages to editing the database I created several years ago
| for a work "rolodex" and it's bugged me since then that the cursor would be
| placed on the second character.
| The tutorial for creating the edit pages is at
| http://spicerweb.org/tutorial/tutorial/tutorial.htm
|
| "Stefan B Rusynko" wrote:
|
| > Post a code snipped of your form at the top of http://www.spicerweb.org/tesadd.asp
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > _____________________________________________
| >
| >
| > | That doesn't work either. You can go to
| > | http://www.spicerweb.org/tesadd.asp
| > | to see what I mean. You will need to click on the hyperlink in the results
| > | to take you to the edit page where you can click in the empty last name
| > | textbox.
| > | The cursor will be on the second character.
| > |
| > | "Jon Spivey" wrote:
| > |
| > | > to be sure you could trim the value
| > | > <textarea rows="2" cols="20"><%=trim(FP_FieldVal (fp_rs,
| > | > "FirstName"))%></textarea>
| > | >
| > | > --
| > | > Cheers,
| > | > Jon
| > | > Microsoft MVP
| > | >
| > | > | > | > > There should not be a space there unless you either set a space a a defaut
| > | > > value in your Db or your html has the space in it
| > | > >
| > | > > Make sure the code looks like (on 1 line)
| > | > > <textarea rows="2" cols="20"><%=FP_FieldVal (fp_rs,
| > | > > "FirstName")%></textarea>
| > | > >
| > | > >
| > | > > --
| > | > >
| > | > > _____________________________________________
| > | > > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > | > > "Warning - Using the F1 Key will not break anything!" (-;
| > | > > To find the best Newsgroup for FrontPage support see:
| > | > > http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > | > > _____________________________________________
| > | > >
| > | > >
| > | > > | > | > > | This has always bugged me. If you create a textbox with an initial value
| > | > > | which is a field value, like <% = FP_FieldVal (fp_rs, "FirstName")%>
| > | > > then
| > | > > | when the form is live and you click in the text box when it's empty
| > | > > (there
| > | > > | was no field value in the db) the cursor is on the second character. If
| > | > > the
| > | > > | user doesn't manually backspace to the first character it loads a value
| > | > > into
| > | > > | the database with a <space> first character. That can screw up sorting
| > | > > | something fierce. It's not a problem when there is no initial field
| > | > > value
| > | > > | coded into the text box or if you tab into the textbox. Try it.
| > | > > | Is there any kind of workaround?
| > | > >
| > | > >
| > | >
| > | >
| > | >
| >
| >
| >
 
S

Steve Spicer

Stefan, I don't see where you are seeing the illegal <p> tag. I've put the
code snippet along with different attempts at resolving it at
http://www.spicerweb.org/tesadd1.asp
Thanks for bearing with me on this.
Steve


Stefan B Rusynko said:
You posted a URL for the pages, not a code snippet
(the actual html/asp for the form from FP)
Your rendered html is
<input type="text" name="T1" size="20" </p> First Name T1<p><input type="text" name="T2" size="20">Last Name T2</p>

Your problem, is the illegal </p> tags inside of the form fields
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| I've posted code at http://www.spicerweb.org/tesadd.asp for that page and for
| the editestdb.asp page that the hyperlink takes you to. That page is the
| first step in an edit database page which is not completed for this test. The
| whole routine for pages to editing the database I created several years ago
| for a work "rolodex" and it's bugged me since then that the cursor would be
| placed on the second character.
| The tutorial for creating the edit pages is at
| http://spicerweb.org/tutorial/tutorial/tutorial.htm
|
| "Stefan B Rusynko" wrote:
|
| > Post a code snipped of your form at the top of http://www.spicerweb.org/tesadd.asp
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > _____________________________________________
| >
| >
| > | That doesn't work either. You can go to
| > | http://www.spicerweb.org/tesadd.asp
| > | to see what I mean. You will need to click on the hyperlink in the results
| > | to take you to the edit page where you can click in the empty last name
| > | textbox.
| > | The cursor will be on the second character.
| > |
| > | "Jon Spivey" wrote:
| > |
| > | > to be sure you could trim the value
| > | > <textarea rows="2" cols="20"><%=trim(FP_FieldVal (fp_rs,
| > | > "FirstName"))%></textarea>
| > | >
| > | > --
| > | > Cheers,
| > | > Jon
| > | > Microsoft MVP
| > | >
| > | > | > | > > There should not be a space there unless you either set a space a a defaut
| > | > > value in your Db or your html has the space in it
| > | > >
| > | > > Make sure the code looks like (on 1 line)
| > | > > <textarea rows="2" cols="20"><%=FP_FieldVal (fp_rs,
| > | > > "FirstName")%></textarea>
| > | > >
| > | > >
| > | > > --
| > | > >
| > | > > _____________________________________________
| > | > > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > | > > "Warning - Using the F1 Key will not break anything!" (-;
| > | > > To find the best Newsgroup for FrontPage support see:
| > | > > http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > | > > _____________________________________________
| > | > >
| > | > >
| > | > > | > | > > | This has always bugged me. If you create a textbox with an initial value
| > | > > | which is a field value, like <% = FP_FieldVal (fp_rs, "FirstName")%>
| > | > > then
| > | > > | when the form is live and you click in the text box when it's empty
| > | > > (there
| > | > > | was no field value in the db) the cursor is on the second character. If
| > | > > the
| > | > > | user doesn't manually backspace to the first character it loads a value
| > | > > into
| > | > > | the database with a <space> first character. That can screw up sorting
| > | > > | something fierce. It's not a problem when there is no initial field
| > | > > value
| > | > > | coded into the text box or if you tab into the textbox. Try it.
| > | > > | Is there any kind of workaround?
| > | > >
| > | > >
| > | >
| > | >
| > | >
| >
| >
| >
 
J

Jens Peter Karlsen [FP-MVP]

Stefan wrote it in his answer to you:
<input type="text" name="T1" size="20" </p> First Name T1<p><input
type="text" name="T2" size="20">Last Name T2</p>

All <p> and </p> tags in the above is illegal html.
Also the first <input> tag is not closed. It must be.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.

Stefan, I don't see where you are seeing the illegal <p> tag. I've put the
code snippet along with different attempts at resolving it at
http://www.spicerweb.org/tesadd1.asp
Thanks for bearing with me on this.
Steve


Stefan B Rusynko said:
You posted a URL for the pages, not a code snippet
(the actual html/asp for the form from FP)
Your rendered html is
<input type="text" name="T1" size="20" </p> First Name T1<p><input type="text" name="T2" size="20">Last Name T2</p>

Your problem, is the illegal </p> tags inside of the form fields
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| I've posted code at http://www.spicerweb.org/tesadd.asp for that page and for
| the editestdb.asp page that the hyperlink takes you to. That page is the
| first step in an edit database page which is not completed for this test. The
| whole routine for pages to editing the database I created several years ago
| for a work "rolodex" and it's bugged me since then that the cursor would be
| placed on the second character.
| The tutorial for creating the edit pages is at
| http://spicerweb.org/tutorial/tutorial/tutorial.htm
|
| "Stefan B Rusynko" wrote:
|
| > Post a code snipped of your form at the top of http://www.spicerweb.org/tesadd.asp
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > _____________________________________________
| >
| >
| > | That doesn't work either. You can go to
| > | http://www.spicerweb.org/tesadd.asp
| > | to see what I mean. You will need to click on the hyperlink in the results
| > | to take you to the edit page where you can click in the empty last name
| > | textbox.
| > | The cursor will be on the second character.
| > |
| > | "Jon Spivey" wrote:
| > |
| > | > to be sure you could trim the value
| > | > <textarea rows="2" cols="20"><%=trim(FP_FieldVal (fp_rs,
| > | > "FirstName"))%></textarea>
| > | >
| > | > --
| > | > Cheers,
| > | > Jon
| > | > Microsoft MVP
| > | >
| > | > | > | > > There should not be a space there unless you either set a space a a defaut
| > | > > value in your Db or your html has the space in it
| > | > >
| > | > > Make sure the code looks like (on 1 line)
| > | > > <textarea rows="2" cols="20"><%=FP_FieldVal (fp_rs,
| > | > > "FirstName")%></textarea>
| > | > >
| > | > >
| > | > > --
| > | > >
| > | > > _____________________________________________
| > | > > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > | > > "Warning - Using the F1 Key will not break anything!" (-;
| > | > > To find the best Newsgroup for FrontPage support see:
| > | > > http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > | > > _____________________________________________
| > | > >
| > | > >
| > | > > | > | > > | This has always bugged me. If you create a textbox with an initial value
| > | > > | which is a field value, like <% = FP_FieldVal (fp_rs, "FirstName")%>
| > | > > then
| > | > > | when the form is live and you click in the text box when it's empty
| > | > > (there
| > | > > | was no field value in the db) the cursor is on the second character. If
| > | > > the
| > | > > | user doesn't manually backspace to the first character it loads a value
| > | > > into
| > | > > | the database with a <space> first character. That can screw up sorting
| > | > > | something fierce. It's not a problem when there is no initial field
| > | > > value
| > | > > | coded into the text box or if you tab into the textbox. Try it.
| > | > > | Is there any kind of workaround?
| > | > >
| > | > >
| > | >
| > | >
| > | >
| >
| >
| >
 
S

Steve Spicer

Yes, I know what he wrote and there are no illegal <p> tags in my page.
If you go to
http://www.spicerweb.org/tesadd1.asp
and click on one of the Edit ID's you will see what my problem is as far as
cursor location and there are no illegal <p> tags in View>Source. There are
none in the code for the page either.
Thanks, Steve

Jens Peter Karlsen said:
Stefan wrote it in his answer to you:
<input type="text" name="T1" size="20" </p> First Name T1<p><input
type="text" name="T2" size="20">Last Name T2</p>

All <p> and </p> tags in the above is illegal html.
Also the first <input> tag is not closed. It must be.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.

Stefan, I don't see where you are seeing the illegal <p> tag. I've put the
code snippet along with different attempts at resolving it at
http://www.spicerweb.org/tesadd1.asp
Thanks for bearing with me on this.
Steve


Stefan B Rusynko said:
You posted a URL for the pages, not a code snippet
(the actual html/asp for the form from FP)
Your rendered html is
<input type="text" name="T1" size="20" </p> First Name T1<p><input type="text" name="T2" size="20">Last Name T2</p>

Your problem, is the illegal </p> tags inside of the form fields
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| I've posted code at http://www.spicerweb.org/tesadd.asp for that page and for
| the editestdb.asp page that the hyperlink takes you to. That page is the
| first step in an edit database page which is not completed for this test. The
| whole routine for pages to editing the database I created several years ago
| for a work "rolodex" and it's bugged me since then that the cursor would be
| placed on the second character.
| The tutorial for creating the edit pages is at
| http://spicerweb.org/tutorial/tutorial/tutorial.htm
|
| "Stefan B Rusynko" wrote:
|
| > Post a code snipped of your form at the top of http://www.spicerweb.org/tesadd.asp
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > _____________________________________________
| >
| >
| > | That doesn't work either. You can go to
| > | http://www.spicerweb.org/tesadd.asp
| > | to see what I mean. You will need to click on the hyperlink in the results
| > | to take you to the edit page where you can click in the empty last name
| > | textbox.
| > | The cursor will be on the second character.
| > |
| > | "Jon Spivey" wrote:
| > |
| > | > to be sure you could trim the value
| > | > <textarea rows="2" cols="20"><%=trim(FP_FieldVal (fp_rs,
| > | > "FirstName"))%></textarea>
| > | >
| > | > --
| > | > Cheers,
| > | > Jon
| > | > Microsoft MVP
| > | >
| > | > | > | > > There should not be a space there unless you either set a space a a defaut
| > | > > value in your Db or your html has the space in it
| > | > >
| > | > > Make sure the code looks like (on 1 line)
| > | > > <textarea rows="2" cols="20"><%=FP_FieldVal (fp_rs,
| > | > > "FirstName")%></textarea>
| > | > >
| > | > >
| > | > > --
| > | > >
| > | > > _____________________________________________
| > | > > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > | > > "Warning - Using the F1 Key will not break anything!" (-;
| > | > > To find the best Newsgroup for FrontPage support see:
| > | > > http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > | > > _____________________________________________
| > | > >
| > | > >
| > | > > | > | > > | This has always bugged me. If you create a textbox with an initial value
| > | > > | which is a field value, like <% = FP_FieldVal (fp_rs, "FirstName")%>
| > | > > then
| > | > > | when the form is live and you click in the text box when it's empty
| > | > > (there
| > | > > | was no field value in the db) the cursor is on the second character. If
| > | > > the
| > | > > | user doesn't manually backspace to the first character it loads a value
| > | > > into
| > | > > | the database with a <space> first character. That can screw up sorting
| > | > > | something fierce. It's not a problem when there is no initial field
| > | > > value
| > | > > | coded into the text box or if you tab into the textbox. Try it.
| > | > > | Is there any kind of workaround?
| > | > >
| > | > >
| > | >
| > | >
| > | >
| >
| >
| >
 
S

Stefan B Rusynko

You don't understand server side code
- giving us a .asp page URL that has been processed by the asp engine (or 1 form field) tells us nothing about your code (or any
error in it (the asp has already been processed so no one can see your real code)
Open your page in FP in Code view
copy the whole form code (w/ your 2 form fields T1 & T2) and paste it in a reply so we can see the initial code
Provide From <form>...thru </form>

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Yes, I know what he wrote and there are no illegal <p> tags in my page.
| If you go to
| http://www.spicerweb.org/tesadd1.asp
| and click on one of the Edit ID's you will see what my problem is as far as
| cursor location and there are no illegal <p> tags in View>Source. There are
| none in the code for the page either.
| Thanks, Steve
|
| "Jens Peter Karlsen [FP-MVP]" wrote:
|
| > Stefan wrote it in his answer to you:
| > <input type="text" name="T1" size="20" </p> First Name T1<p><input
| > type="text" name="T2" size="20">Last Name T2</p>
| >
| > All <p> and </p> tags in the above is illegal html.
| > Also the first <input> tag is not closed. It must be.
| >
| > Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
| >
| > On Tue, 8 Aug 2006 04:14:01 -0700, Steve Spicer
| >
| > >Stefan, I don't see where you are seeing the illegal <p> tag. I've put the
| > >code snippet along with different attempts at resolving it at
| > >http://www.spicerweb.org/tesadd1.asp
| > >Thanks for bearing with me on this.
| > >Steve
| > >
| > >
| > >"Stefan B Rusynko" wrote:
| > >
| > >> You posted a URL for the pages, not a code snippet
| > >> (the actual html/asp for the form from FP)
| > >> Your rendered html is
| > >> <input type="text" name="T1" size="20" </p> First Name T1<p><input type="text" name="T2" size="20">Last Name T2</p>
| > >>
| > >> Your problem, is the illegal </p> tags inside of the form fields
| > >> --
| > >>
| > >> _____________________________________________
| > >> SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > >> "Warning - Using the F1 Key will not break anything!" (-;
| > >> To find the best Newsgroup for FrontPage support see:
| > >> http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > >> _____________________________________________
| > >>
| > >>
| > >> | I've posted code at http://www.spicerweb.org/tesadd.asp for that page and for
| > >> | the editestdb.asp page that the hyperlink takes you to. That page is the
| > >> | first step in an edit database page which is not completed for this test. The
| > >> | whole routine for pages to editing the database I created several years ago
| > >> | for a work "rolodex" and it's bugged me since then that the cursor would be
| > >> | placed on the second character.
| > >> | The tutorial for creating the edit pages is at
| > >> | http://spicerweb.org/tutorial/tutorial/tutorial.htm
| > >> |
| > >> | "Stefan B Rusynko" wrote:
| > >> |
| > >> | > Post a code snipped of your form at the top of http://www.spicerweb.org/tesadd.asp
| > >> | >
| > >> | > --
| > >> | >
| > >> | > _____________________________________________
| > >> | > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > >> | > "Warning - Using the F1 Key will not break anything!" (-;
| > >> | > To find the best Newsgroup for FrontPage support see:
| > >> | > http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > >> | > _____________________________________________
| > >> | >
| > >> | >
| > >> | > >> | > | That doesn't work either. You can go to
| > >> | > | http://www.spicerweb.org/tesadd.asp
| > >> | > | to see what I mean. You will need to click on the hyperlink in the results
| > >> | > | to take you to the edit page where you can click in the empty last name
| > >> | > | textbox.
| > >> | > | The cursor will be on the second character.
| > >> | > |
| > >> | > | "Jon Spivey" wrote:
| > >> | > |
| > >> | > | > to be sure you could trim the value
| > >> | > | > <textarea rows="2" cols="20"><%=trim(FP_FieldVal (fp_rs,
| > >> | > | > "FirstName"))%></textarea>
| > >> | > | >
| > >> | > | > --
| > >> | > | > Cheers,
| > >> | > | > Jon
| > >> | > | > Microsoft MVP
| > >> | > | >
| > >> | > | > | > >> | > | > > There should not be a space there unless you either set a space a a defaut
| > >> | > | > > value in your Db or your html has the space in it
| > >> | > | > >
| > >> | > | > > Make sure the code looks like (on 1 line)
| > >> | > | > > <textarea rows="2" cols="20"><%=FP_FieldVal (fp_rs,
| > >> | > | > > "FirstName")%></textarea>
| > >> | > | > >
| > >> | > | > >
| > >> | > | > > --
| > >> | > | > >
| > >> | > | > > _____________________________________________
| > >> | > | > > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > >> | > | > > "Warning - Using the F1 Key will not break anything!" (-;
| > >> | > | > > To find the best Newsgroup for FrontPage support see:
| > >> | > | > > http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > >> | > | > > _____________________________________________
| > >> | > | > >
| > >> | > | > >
| > >> | > | > > | > >> | > | > > | This has always bugged me. If you create a textbox with an initial value
| > >> | > | > > | which is a field value, like <% = FP_FieldVal (fp_rs, "FirstName")%>
| > >> | > | > > then
| > >> | > | > > | when the form is live and you click in the text box when it's empty
| > >> | > | > > (there
| > >> | > | > > | was no field value in the db) the cursor is on the second character. If
| > >> | > | > > the
| > >> | > | > > | user doesn't manually backspace to the first character it loads a value
| > >> | > | > > into
| > >> | > | > > | the database with a <space> first character. That can screw up sorting
| > >> | > | > > | something fierce. It's not a problem when there is no initial field
| > >> | > | > > value
| > >> | > | > > | coded into the text box or if you tab into the textbox. Try it.
| > >> | > | > > | Is there any kind of workaround?
| > >> | > | > >
| > >> | > | > >
| > >> | > | >
| > >> | > | >
| > >> | > | >
| > >> | >
| > >> | >
| > >> | >
| > >>
| > >>
| > >>
| >
 
S

Steve Spicer

Stefan,
I gave the url (edittestdb2.asp through
http://www.spicerweb.org/tesadd1.asp) that you could see what the problem
looks like on the client side in the form:
<form method="POST" action="editdrive.asp">
<table BORDER="1" width="454" id="table4">
<tr>
<td width="75"><b>ID:</b></td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="ID,T1,T2"
s-column="ID" b-tableformat="FALSE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>ID<font
size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"ID")%><!--webbot bot="DatabaseResultColumn" endspan
i-checksum="62813" --></td>
<td width="234">
</td>
</tr>
<tr>
<td width="75"><b>First Name</b></td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="ID,T1,T2"
s-column="T1" b-tableformat="FALSE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>T1<font
size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"T1")%><!--webbot bot="DatabaseResultColumn" endspan
i-checksum="61085" --></td>
<td width="234">
<input type="text" name="FirstName" size="29"
value="<%=FP_FieldVal(fp_rs,"T1")%>"></td>
</tr>
<tr>
<td width="75"><b>Last Name</b></td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="ID,T1,T2"
s-column="T2" b-tableformat="FALSE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>T2<font
size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"T2")%><!--webbot bot="DatabaseResultColumn" endspan
i-checksum="61213" --></td>
<td width="234">
<input type="text" name="LastName" size="29"
value="<%=FP_FieldVal(fp_rs,"T2")%>"></td>
</tr>
</table>
<p><input type="submit" value="Update the Database" name="B1"></p>
<input type="hidden" name="ID" value="<%=request("ID")%>">
</form>

&&&
That code is pasted on the edittestdb2.asp as well.

Stefan B Rusynko said:
You don't understand server side code
- giving us a .asp page URL that has been processed by the asp engine (or 1 form field) tells us nothing about your code (or any
error in it (the asp has already been processed so no one can see your real code)
Open your page in FP in Code view
copy the whole form code (w/ your 2 form fields T1 & T2) and paste it in a reply so we can see the initial code
Provide From <form>...thru </form>

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Yes, I know what he wrote and there are no illegal <p> tags in my page.
| If you go to
| http://www.spicerweb.org/tesadd1.asp
| and click on one of the Edit ID's you will see what my problem is as far as
| cursor location and there are no illegal <p> tags in View>Source. There are
| none in the code for the page either.
| Thanks, Steve
|
| "Jens Peter Karlsen [FP-MVP]" wrote:
|
| > Stefan wrote it in his answer to you:
| > <input type="text" name="T1" size="20" </p> First Name T1<p><input
| > type="text" name="T2" size="20">Last Name T2</p>
| >
| > All <p> and </p> tags in the above is illegal html.
| > Also the first <input> tag is not closed. It must be.
| >
| > Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
| >
| > On Tue, 8 Aug 2006 04:14:01 -0700, Steve Spicer
| >
| > >Stefan, I don't see where you are seeing the illegal <p> tag. I've put the
| > >code snippet along with different attempts at resolving it at
| > >http://www.spicerweb.org/tesadd1.asp
| > >Thanks for bearing with me on this.
| > >Steve
| > >
| > >
| > >"Stefan B Rusynko" wrote:
| > >
| > >> You posted a URL for the pages, not a code snippet
| > >> (the actual html/asp for the form from FP)
| > >> Your rendered html is
| > >> <input type="text" name="T1" size="20" </p> First Name T1<p><input type="text" name="T2" size="20">Last Name T2</p>
| > >>
| > >> Your problem, is the illegal </p> tags inside of the form fields
| > >> --
| > >>
| > >> _____________________________________________
| > >> SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > >> "Warning - Using the F1 Key will not break anything!" (-;
| > >> To find the best Newsgroup for FrontPage support see:
| > >> http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > >> _____________________________________________
| > >>
| > >>
| > >> | I've posted code at http://www.spicerweb.org/tesadd.asp for that page and for
| > >> | the editestdb.asp page that the hyperlink takes you to. That page is the
| > >> | first step in an edit database page which is not completed for this test. The
| > >> | whole routine for pages to editing the database I created several years ago
| > >> | for a work "rolodex" and it's bugged me since then that the cursor would be
| > >> | placed on the second character.
| > >> | The tutorial for creating the edit pages is at
| > >> | http://spicerweb.org/tutorial/tutorial/tutorial.htm
| > >> |
| > >> | "Stefan B Rusynko" wrote:
| > >> |
| > >> | > Post a code snipped of your form at the top of http://www.spicerweb.org/tesadd.asp
| > >> | >
| > >> | > --
| > >> | >
| > >> | > _____________________________________________
| > >> | > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > >> | > "Warning - Using the F1 Key will not break anything!" (-;
| > >> | > To find the best Newsgroup for FrontPage support see:
| > >> | > http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > >> | > _____________________________________________
| > >> | >
| > >> | >
| > >> | > >> | > | That doesn't work either. You can go to
| > >> | > | http://www.spicerweb.org/tesadd.asp
| > >> | > | to see what I mean. You will need to click on the hyperlink in the results
| > >> | > | to take you to the edit page where you can click in the empty last name
| > >> | > | textbox.
| > >> | > | The cursor will be on the second character.
| > >> | > |
| > >> | > | "Jon Spivey" wrote:
| > >> | > |
| > >> | > | > to be sure you could trim the value
| > >> | > | > <textarea rows="2" cols="20"><%=trim(FP_FieldVal (fp_rs,
| > >> | > | > "FirstName"))%></textarea>
| > >> | > | >
| > >> | > | > --
| > >> | > | > Cheers,
| > >> | > | > Jon
| > >> | > | > Microsoft MVP
| > >> | > | >
| > >> | > | > | > >> | > | > > There should not be a space there unless you either set a space a a defaut
| > >> | > | > > value in your Db or your html has the space in it
| > >> | > | > >
| > >> | > | > > Make sure the code looks like (on 1 line)
| > >> | > | > > <textarea rows="2" cols="20"><%=FP_FieldVal (fp_rs,
| > >> | > | > > "FirstName")%></textarea>
| > >> | > | > >
| > >> | > | > >
| > >> | > | > > --
| > >> | > | > >
| > >> | > | > > _____________________________________________
| > >> | > | > > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > >> | > | > > "Warning - Using the F1 Key will not break anything!" (-;
| > >> | > | > > To find the best Newsgroup for FrontPage support see:
| > >> | > | > > http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > >> | > | > > _____________________________________________
| > >> | > | > >
| > >> | > | > >
| > >> | > | > > | > >> | > | > > | This has always bugged me. If you create a textbox with an initial value
| > >> | > | > > | which is a field value, like <% = FP_FieldVal (fp_rs, "FirstName")%>
| > >> | > | > > then
| > >> | > | > > | when the form is live and you click in the text box when it's empty
| > >> | > | > > (there
| > >> | > | > > | was no field value in the db) the cursor is on the second character. If
| > >> | > | > > the
| > >> | > | > > | user doesn't manually backspace to the first character it loads a value
| > >> | > | > > into
| > >> | > | > > | the database with a <space> first character. That can screw up sorting
| > >> | > | > > | something fierce. It's not a problem when there is no initial field
| > >> | > | > > value
| > >> | > | > > | coded into the text box or if you tab into the textbox. Try it.
| > >> | > | > > | Is there any kind of workaround?
| > >> | > | > >
| > >> | > | > >
| > >> | > | >
| > >> | > | >
| > >> | > | >
| > >> | >
| > >> | >
| > >> | >
| > >>
| > >>
| > >>
| >
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top