The form actions are still getting reset; however I have found one pattern
that caused the problem.
I my running XP Pro, IIS, FP2000 w/2002 ext. I had been opening my web via
the "open web" option under the file menu. I select "localhost" from the list
which open up the "webroot" directory where my web is stored (I haven't
published yet... still under construction).
To test out one theory, I copied the files and folders under "webroot" to
another directory under a sub directory called Stoneham (my home town which I
writing the web for) in the "My Documents/My Webs" folder. Remember all my
ASP pages are stored under a subdirectory called "ASP" under this directory
(just like the wwwroot web)
I then tested the problem by opened this new set of "hard drive" file(s):
1. TEST: open FP (open file mode) and looked at but not opening any HTML
pages in the Stoneham directory. I then opened an ASP page in the ASP
directory using MS-Script
RESULTS: The action parm did not change in any of the files. (note I've
set some of the actions to include the path (e.g. "/ASP/land.asp") and some
without the path (e.g. "buildings.asp"))
2. TEST: same as one exept open the ASP directory do not open any files
RESULTS: The action parm did not change in any of the files.
3. TEST: Open FP (open file mode) a HTML page but make no changes.
RESULTS: The action parm did not change in any of the files.
4. TEST: Open FP (open file mode) a HTML page and save a change.
RESULTS: The action parm did not change in any of the files.
5. TEST: Open FP (open file mode) an HTML page but make no changes. Use the
folder sidebar to open the ASP directory but do not open any ASP pages.
RESULTS: Openend MS-Script and found the action parm DID CHANGE in the
ASP files.
6. TEST: Reset the action statements in the ASP files using MS-Script and
kept one ASP file open. Opened FP (open file mode) and opened a HTML page but
made no changes. Closed the HTML page and opened the ASP directory but did
not open any files. Exited FP.
RESULTS: A message appeared in the MS-Script that the page had been
change by another application and "do you want to update/refresh the file (as
it appear in MS-Script). The actions WERE CHANGED BY FP.
7. The same results occur when I use the "Open Web" option under the file
menu and select the localhost (inetpub/wwwroot) which has been the way I had
been developing the web (being new at this it is the handiest way to write
the ASP code in the pages and then test in IE browser)
Any thoughts what I am doing that causes the actions to be reset to the page
name itself (e.g. land.asp gets reset to property_data.asp on the
property_data page) when opening the ASP directory. Obviously this is a big
problem as my number of ASP pages grows. I now have about a dozen ASP page
and all but 2 gets reset.
Heres the "calls" to the web pages (the ones with the "**" are the one that
get changed ...
index.html ---- series of html page that eventually leads to:
logon.asp --- the user enters a ID and password and the form action =
check_logon.asp
check_logon.asp --- does not display but simply checks ID & pswd against an
Access-2000 DB, if they are correct gets owner number from the record and
stores as a session variable then uses a redirect to go to
owner_data.asp --- using the session owner number gets the DB record
containing name, address, etc. Form at the bottom of page has
action=owner_id.asp**
owner_id.asp --- get multiple rows from the DB of the property owned by the
owner and displays the rows in a table with a form in each row for user to
select the piece of property they wish to view. The forms' (since build
dynamically at the start of the page) action = property_data.asp**
property_data.asp --- display a 3x2 table with forms in each cell with text
for the different kinds of properties (land, buildings, personal property) an
owner may have, one column of forms with submit buttons is use to go to the
specification pages and the second column with forms allows the user to go to
a page that contains the values for the selected piece of property. The
action(s) on the form(s) would read; land.asp**, buildings.asp**,
personal_property.asp**, land_asmt.asp**, building_asmt.asp**, and
personal_property_asmt.asp**.
I would like to develeop additional ASP pages but need to solve this problem
before I do. Currently I start the development of a page in FP and then if
the page needs code I use MS-Script. Therefor every time I create a new page
in the ASP directory or even open the ASP directory in FP, I have to reenter
all the action statements in all of the pages (except those noted).
I can't believe everyone else that uses FP and Script has this problem; any
ideas what I am doing wrong???
Thanks
Jim T
Stefan B Rusynko said:
No you don't need a full URL (http:/localhost/ASP/owner_id.asp)
- just a relative link to the page (owner_id.asp if the page path is at the same level as your
form)
You can use a URL path,
- but that one would not allow the page to work anywhere except in your localhost
Make sure you are working in a server based FP web (http:/localhost/) and not a disc based FP web
(C:\inetpub\wwwroot)
--
_____________________________________________
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
_____________________________________________
| Currently I'm working locally until I get through my learning curve and have
| more of the web for my small home town finished. I thought I read somewhere
| if the "go to" page is in the same directory you do not need to include any
| path info.
|
| I have all the ASP pages in a sub-directory named "ASP" under the root
| directory (in this case C:\inetpub\wwwroot). My form action statement
| therefore only reads the "go to" page (e.g. on the owner_name page, the form
| statement reads action="owner_id.asp") since both pages reside in the ASP
| directory.
|
| Is this correct or do I need to specify a URL such as action
| ="http:/localhost/ASP/owner_id".
|
| Thanks
| Jim T
|
| "Thomas A. Rowe" wrote:
|
| > Then you have not set up the forms correctly. Can provide a URL to one of the pages?
| >
| > --
| > ==============================================
| > 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'm using FP2000 and have created a number of pages with a form and
| > > originally had the action linked to another HTML page. The linked page I
| > > eventually renamed the file extension to ".ASP" and added VBScript code to
| > > the pages using the MS-Script editor.
| > >
| > > Now when I open FP (XP pro, 2002 file extensions) as a web, all the pages
| > > with form action parms gets reset to the current page name. For example I
| > > have a page called "OWNER_DATA.ASP" that has a form with an action
| > > "OWNER_ID.ASP". As soon as I open the web in FP the form action on
| > > OWNER_DATA.ASP is automatically changed to "OWNER_DATA.ASP" instead of
| > > "OWNER_ID.ASP". FP not only changes this action; but, all actions to the page
| > > name the form is on. This issue occurs regardless whether I "touch" an ASP
| > > page in FP or not.
| > >
| > > This is now an annoying problem since currently I only have 5 ASP pages with
| > > a form on it. However I will be adding 10-20 more ASP pages in the future so
| > > changing all the actions back to the appropriate page reference will become a
| > > very big problem in the future. Any way to stop FP from resetting the action
| > > value???
| > >
| > > Thanks
| > > Jim T.
| >
| >
| >