PC Review


Reply
Thread Tools Rate Thread

Cursor Location in a form text box

 
 
=?Utf-8?B?U3RldmUgU3BpY2Vy?=
Guest
Posts: n/a
 
      5th Aug 2006
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?
 
Reply With Quote
 
 
 
 
Stefan B Rusynko
Guest
Posts: n/a
 
      6th Aug 2006
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/FrontPa...3/Default.aspx
_____________________________________________


"Steve Spicer" <(E-Mail Removed)> wrote in message news:560FDDEA-1162-433D-A950-(E-Mail Removed)...
| 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?


 
Reply With Quote
 
Jon Spivey
Guest
Posts: n/a
 
      6th Aug 2006
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" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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/FrontPa...3/Default.aspx
> _____________________________________________
>
>
> "Steve Spicer" <(E-Mail Removed)> wrote in message
> news:560FDDEA-1162-433D-A950-(E-Mail Removed)...
> | 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?
>
>



 
Reply With Quote
 
=?Utf-8?B?U3RldmUgU3BpY2Vy?=
Guest
Posts: n/a
 
      7th Aug 2006
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
>
> "Stefan B Rusynko" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > 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/FrontPa...3/Default.aspx
> > _____________________________________________
> >
> >
> > "Steve Spicer" <(E-Mail Removed)> wrote in message
> > news:560FDDEA-1162-433D-A950-(E-Mail Removed)...
> > | 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?
> >
> >

>
>
>

 
Reply With Quote
 
Stefan B Rusynko
Guest
Posts: n/a
 
      7th Aug 2006
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/FrontPa...3/Default.aspx
_____________________________________________


"Steve Spicer" <(E-Mail Removed)> wrote in message news:06A29BC5-B397-413B-8F48-(E-Mail Removed)...
| 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
| >
| > "Stefan B Rusynko" <(E-Mail Removed)> wrote in message
| > news:%(E-Mail Removed)...
| > > 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/FrontPa...3/Default.aspx
| > > _____________________________________________
| > >
| > >
| > > "Steve Spicer" <(E-Mail Removed)> wrote in message
| > > news:560FDDEA-1162-433D-A950-(E-Mail Removed)...
| > > | 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?
| > >
| > >
| >
| >
| >


 
Reply With Quote
 
=?Utf-8?B?U3RldmUgU3BpY2Vy?=
Guest
Posts: n/a
 
      7th Aug 2006
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/FrontPa...3/Default.aspx
> _____________________________________________
>
>
> "Steve Spicer" <(E-Mail Removed)> wrote in message news:06A29BC5-B397-413B-8F48-(E-Mail Removed)...
> | 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
> | >
> | > "Stefan B Rusynko" <(E-Mail Removed)> wrote in message
> | > news:%(E-Mail Removed)...
> | > > 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/FrontPa...3/Default.aspx
> | > > _____________________________________________
> | > >
> | > >
> | > > "Steve Spicer" <(E-Mail Removed)> wrote in message
> | > > news:560FDDEA-1162-433D-A950-(E-Mail Removed)...
> | > > | 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?
> | > >
> | > >
> | >
> | >
> | >
>
>
>

 
Reply With Quote
 
Bob Lehmann
Guest
Posts: n/a
 
      7th Aug 2006
You have a space in the value -
<input type="text" name="T2" size="35" value="&nbsp;">Bob Lehmann"Steve
Spicer" <(E-Mail Removed)> wrote in message
news:BF853B43-C9AF-4049-BFD8-(E-Mail Removed)...
> 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/FrontPa...3/Default.aspx
> > _____________________________________________
> >
> >
> > "Steve Spicer" <(E-Mail Removed)> wrote in message

news:06A29BC5-B397-413B-8F48-(E-Mail Removed)...
> > | 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
> > | >
> > | > "Stefan B Rusynko" <(E-Mail Removed)> wrote in message
> > | > news:%(E-Mail Removed)...
> > | > > 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/FrontPa...3/Default.aspx
> > | > > _____________________________________________
> > | > >
> > | > >
> > | > > "Steve Spicer" <(E-Mail Removed)> wrote in

message
> > | > > news:560FDDEA-1162-433D-A950-(E-Mail Removed)...
> > | > > | 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?
> > | > >
> > | > >
> > | >
> > | >
> > | >
> >
> >
> >



 
Reply With Quote
 
=?Utf-8?B?U3RldmUgU3BpY2Vy?=
Guest
Posts: n/a
 
      7th Aug 2006
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" wrote:

> You have a space in the value -
> <input type="text" name="T2" size="35" value=" ">Bob Lehmann"Steve
> Spicer" <(E-Mail Removed)> wrote in message
> news:BF853B43-C9AF-4049-BFD8-(E-Mail Removed)...
> > 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/FrontPa...3/Default.aspx
> > > _____________________________________________
> > >
> > >
> > > "Steve Spicer" <(E-Mail Removed)> wrote in message

> news:06A29BC5-B397-413B-8F48-(E-Mail Removed)...
> > > | 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
> > > | >
> > > | > "Stefan B Rusynko" <(E-Mail Removed)> wrote in message
> > > | > news:%(E-Mail Removed)...
> > > | > > 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/FrontPa...3/Default.aspx
> > > | > > _____________________________________________
> > > | > >
> > > | > >
> > > | > > "Steve Spicer" <(E-Mail Removed)> wrote in

> message
> > > | > > news:560FDDEA-1162-433D-A950-(E-Mail Removed)...
> > > | > > | 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?
> > > | > >
> > > | > >
> > > | >
> > > | >
> > > | >
> > >
> > >
> > >

>
>
>

 
Reply With Quote
 
Thomas A. Rowe
Guest
Posts: n/a
 
      7th Aug 2006
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" <(E-Mail Removed)> wrote in message
news:B928639B-A654-4DD2-8D81-(E-Mail Removed)...
> 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" wrote:
>
>> You have a space in the value -
>> <input type="text" name="T2" size="35" value=" ">Bob Lehmann"Steve
>> Spicer" <(E-Mail Removed)> wrote in message
>> news:BF853B43-C9AF-4049-BFD8-(E-Mail Removed)...
>> > 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/FrontPa...3/Default.aspx
>> > > _____________________________________________
>> > >
>> > >
>> > > "Steve Spicer" <(E-Mail Removed)> wrote in message

>> news:06A29BC5-B397-413B-8F48-(E-Mail Removed)...
>> > > | 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
>> > > | >
>> > > | > "Stefan B Rusynko" <(E-Mail Removed)> wrote in message
>> > > | > news:%(E-Mail Removed)...
>> > > | > > 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/FrontPa...3/Default.aspx
>> > > | > > _____________________________________________
>> > > | > >
>> > > | > >
>> > > | > > "Steve Spicer" <(E-Mail Removed)> wrote in

>> message
>> > > | > > news:560FDDEA-1162-433D-A950-(E-Mail Removed)...
>> > > | > > | 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?
>> > > | > >
>> > > | > >
>> > > | >
>> > > | >
>> > > | >
>> > >
>> > >
>> > >

>>
>>
>>



 
Reply With Quote
 
=?Utf-8?B?U3RldmUgU3BpY2Vy?=
Guest
Posts: n/a
 
      7th Aug 2006
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" wrote:

> 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" <(E-Mail Removed)> wrote in message
> news:B928639B-A654-4DD2-8D81-(E-Mail Removed)...
> > 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" wrote:
> >
> >> You have a space in the value -
> >> <input type="text" name="T2" size="35" value=" ">Bob Lehmann"Steve
> >> Spicer" <(E-Mail Removed)> wrote in message
> >> news:BF853B43-C9AF-4049-BFD8-(E-Mail Removed)...
> >> > 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/FrontPa...3/Default.aspx
> >> > > _____________________________________________
> >> > >
> >> > >
> >> > > "Steve Spicer" <(E-Mail Removed)> wrote in message
> >> news:06A29BC5-B397-413B-8F48-(E-Mail Removed)...
> >> > > | 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
> >> > > | >
> >> > > | > "Stefan B Rusynko" <(E-Mail Removed)> wrote in message
> >> > > | > news:%(E-Mail Removed)...
> >> > > | > > 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/FrontPa...3/Default.aspx
> >> > > | > > _____________________________________________
> >> > > | > >
> >> > > | > >
> >> > > | > > "Steve Spicer" <(E-Mail Removed)> wrote in
> >> message
> >> > > | > > news:560FDDEA-1162-433D-A950-(E-Mail Removed)...
> >> > > | > > | 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?
> >> > > | > >
> >> > > | > >
> >> > > | >
> >> > > | >
> >> > > | >
> >> > >
> >> > >
> >> > >
> >>
> >>
> >>

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Date - Format Text / Cursor Location srm Microsoft Outlook Form Programming 5 8th Sep 2008 11:41 AM
Finding exact physical location of selected text or cursor Marky Mark Microsoft Powerpoint 1 9th May 2008 02:03 AM
How to prevent text cursor from getting out of a text box on an Outlook 2003 form? Carlos Microsoft Outlook VBA Programming 1 12th Jul 2007 05:32 PM
Text Cursor location in a TextBox Peteroid Microsoft VC .NET 0 29th Mar 2005 09:52 AM
text box and location of cursor Izzy Microsoft Access Forms 0 17th Aug 2004 06:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:50 AM.