Frontpage - how to make some fileds in a form display only?

J

Joe

I am using FrontPage 2003. I have a form page to display a row of data from
a database and gives the user the ability to edit some fields. I don't want
them to be able to edit all of the fields. How do I change the properties on
the form? I used the Database Interface Wizard to create the page. It
appears that when I click the edit button and then view the source in IE that
the properties of the fields are in a javascript, but I can't find the
javascript anywhere to edit it.
 
T

Thomas A. Rowe

If you don't want use to edit certain fields, then you need to remove the form fields from the form
and just show the content from the database in it's place. May require you to learn to hand code and
not use the FP database components.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
J

Joe

Thomas, thanks -- I just tried deleting the fields from the form, but this
won't work for me. I'm new to FrontPage, so maybe I'm going about this
incorrectly.

I need to display rows of data from a database tabel, then let the user
select a row and edit a couple of fields and submit back to the database. I
used the Wizard and am fairly pleased with what I created with it, but the
fields have to be display only except for the couple that they can modify.

When I clcik on the Edit button on the page and then view the source, I see
javascript that sets the input type. From what I understand, I can alter
that javascript to make the field display only, but can't find where to get
to the javascript within FrontPage or on my local machine (or server) that
is stroing the website.

Am I making this too hard for myself? Is there a better way to accomplish
what I need?

- Joe
 
S

Stefan B Rusynko

Just remove the input tag and leave the DBRW code
Change
<input type="text" name="FieldName" value="<%=FP_FieldVal(fp_rs,"FieldName")%>">
To
<%=FP_FieldVal(fp_rs,"FieldName")%>

--

_____________________________________________
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
_____________________________________________


| Thomas, thanks -- I just tried deleting the fields from the form, but this
| won't work for me. I'm new to FrontPage, so maybe I'm going about this
| incorrectly.
|
| I need to display rows of data from a database tabel, then let the user
| select a row and edit a couple of fields and submit back to the database. I
| used the Wizard and am fairly pleased with what I created with it, but the
| fields have to be display only except for the couple that they can modify.
|
| When I clcik on the Edit button on the page and then view the source, I see
| javascript that sets the input type. From what I understand, I can alter
| that javascript to make the field display only, but can't find where to get
| to the javascript within FrontPage or on my local machine (or server) that
| is stroing the website.
|
| Am I making this too hard for myself? Is there a better way to accomplish
| what I need?
|
| - Joe
|
| "Thomas A. Rowe" wrote:
|
| > If you don't want use to edit certain fields, then you need to remove the form fields from the form
| > and just show the content from the database in it's place. May require you to learn to hand code and
| > not use the FP database components.
| >
| > --
| > ==============================================
| > Thomas A. Rowe (Microsoft MVP - FrontPage)
| > ==============================================
| > If you feel your current issue is a results of installing
| > a Service Pack or security update, please contact
| > Microsoft Product Support Services:
| > http://support.microsoft.com
| > If the problem can be shown to have been caused by a
| > security update, then there is usually no charge for the call.
| > ==============================================
| >
| > | > >I am using FrontPage 2003. I have a form page to display a row of data from
| > > a database and gives the user the ability to edit some fields. I don't want
| > > them to be able to edit all of the fields. How do I change the properties on
| > > the form? I used the Database Interface Wizard to create the page. It
| > > appears that when I click the edit button and then view the source in IE that
| > > the properties of the fields are in a javascript, but I can't find the
| > > javascript anywhere to edit it.
| >
| >
| >
 
T

Thomas A. Rowe

Is that supported by all browsers?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
K

Kevin Spencer

Hi Tom,

It is part of the W3C HTML 4.0 specification.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition
 
T

Thomas A. Rowe

But that doesn't answer my question...

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
K

Kevin Spencer

Hi Tom,

Your question was "Is that supported by all browsers?" Well, obviously, the
answer to that is "no." There are probably some 10-year-old browsers out
there somewhere. So, as I knew you weren't really asking that question, I
checked the W3C specification, and found that it is supported by the HTML
4.0 spec (released in December of 1997 - 7 years ago). The current spec is
HTML 4.01. Currently, almost all browsers support the W3C HTML 4.0 spec. So,
no, it didn't answer your exact question. But assuming that you were asking
if it is supported by almost all browsers, it did answer your question. That
answer would be "yes."

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition
 
T

Thomas A. Rowe

Mainly I am concerned about version 4 and up browsers and I really do not put much stock in to the
recommendation by the W3C, since they are not standards, so each browser maker can choose to follow
or not follow the recommendation, which has been the case since the beginning if the public
internet.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
T

Thomas A. Rowe

See:

http://www.m-w.com/dictionary/Recommendations

http://www.m-w.com/dictionary/Standards

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
K

Kevin Spencer

I really do not put much stock in to the recommendation by the W3C, since
they are not standards, so each browser maker can choose to follow or not
follow the recommendation, which has been the case since the beginning if
the public internet.

That is the way things USED to be, but has not been for several years now.
Almost all browser vendors now work hard to adhere to the standard. IE6 is
the least-conforming one at present, but IE7 is promised to conform to
almost all standards. It has just taken a long time for Microsoft to get it
ready. Browser vendors have come to realize the dire need for standards, and
compliance. It's good for everyone. Check it out!

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition
 
K

Kevin Spencer

You might want to check up on what the browser vendors have been doing in
the past couple of years. The way things are going, browser differences will
be negligible in just another year or two. It's good for everyone, and
everyone has figured this out. It's not so important what the dictionary
says. It's more important what everyone agrees to. There isn't a single
major browser manufacturer that doesn't agree that the standards of the W3C,
ECMA, ISO, etc, are good for everyone, and there isn't a single major
browser manufacturer that isn't working to adhere to them.

You ought to be glad about this, Tom. It is making life much easier for
everyone in the web business!

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition
 
M

Murray

The way things are going, browser differences will be negligible in just
another year or two.

Then it'll only be another 4 years or so until all older versions have been
replaced....

Generally speaking, though, I definitely agree with you - it's much more
permissive for advanced CSS layout methods now than it was even 2 years ago.
 
T

Thomas A. Rowe

There are no standards, just recommendations!!!

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
T

Thomas A. Rowe

The whole point of have a web site is to provide something for site visitors, etc. We as developers
should never expect users to upgrade just to view our sites.

It is very easy and simple to build a great looking and functional web site without using any CSS,
VML Graphics, etc. that will basically displayed in all graphical browsers.

Simply design to the HTML 3.2 Recommendations.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
T

Thomas A. Rowe

I would be very happy if there was only one browser or all browsers supported a single set of
standards 100% (no deviations)

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 

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