VIew all code with correct line numbers

G

Guest

Maybe this is simple.

When FP adds validation code, it is hidden in the code window. If the page
returns an error with a line number on it, you cannot locate the problem
becase the line numbering shown in code view is not correct. I know this
becasue if I open the same page in another editor I see the correct line
numbers and the hidden code.

I've looked and looked and I cannot fiind an optoin to turn this feature on
or off.

How are people handling this problem?

Thanks

Kerry
 
T

Thomas A. Rowe

1. You should never get an error with the FP generated JS Validation Script, at least I have never
had any JavaScript errors relating to FP JS validation script.

2. There is nothing to turn on, as you can only see the JavaScript Validation when you do a view
source from a browser

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
G

Guest

Sorry, I didn't mean to imply there was an error generated with the
validation code. The error might be elsewhere. For instance you get any other
erro message that reports a line number. When you open the page in FP and go
to code view, you can't find the error as FP has hidden the validation code
and renumbered the lines as if it isnt there.

This has been an ongoing problem with multiple versions of FP. I must be
doing something wrong as I don't see other people commenting on this problem.
I'm very puzzeled how they are dealing with this.

Kerry
Thanks
Kerry
 
J

Jon Spivey

Kerry,
Can you post up a link to the offending page. It's not you doing something
wrong - FP "hides" the validation code until you view the page in your
browser.
 
S

Stefan B Rusynko

It is a general problem w/ all design time (or include) components
(which add code on file saves or server side)
- not just in FP

The line # in browser will rarely match the line # in FP code view unless the error occurs before any code is added
The only way to find the real error code line is from the error message content or inserting a line in a "suspect" error area to
narrow it down

--




| Kerry,
| Can you post up a link to the offending page. It's not you doing something
| wrong - FP "hides" the validation code until you view the page in your
| browser.
|
| --
| Cheers,
| Jon
| Microsoft MVP
|
|
| | > Sorry, I didn't mean to imply there was an error generated with the
| > validation code. The error might be elsewhere. For instance you get any
| > other
| > erro message that reports a line number. When you open the page in FP and
| > go
| > to code view, you can't find the error as FP has hidden the validation
| > code
| > and renumbered the lines as if it isnt there.
| >
| > This has been an ongoing problem with multiple versions of FP. I must be
| > doing something wrong as I don't see other people commenting on this
| > problem.
| > I'm very puzzeled how they are dealing with this.
| >
| > Kerry
| > Thanks
| > Kerry
| >
| > "Thomas A. Rowe" wrote:
| >
| >> 1. You should never get an error with the FP generated JS Validation
| >> Script, at least I have never
| >> had any JavaScript errors relating to FP JS validation script.
| >>
| >> 2. There is nothing to turn on, as you can only see the JavaScript
| >> Validation when you do a view
| >> source from a browser
| >>
| >> --
| >> ==============================================
| >> Thomas A. Rowe (Microsoft MVP - FrontPage)
| >> WEBMASTER Resources(tm)
| >>
| >> FrontPage Resources, WebCircle, MS KB Quick Links, etc.
| >> ==============================================
| >> To assist you in getting the best answers for FrontPage support see:
| >> http://www.net-sites.com/sitebuilder/newsgroups.asp
| >>
| >> | >> > Maybe this is simple.
| >> >
| >> > When FP adds validation code, it is hidden in the code window. If the
| >> > page
| >> > returns an error with a line number on it, you cannot locate the
| >> > problem
| >> > becase the line numbering shown in code view is not correct. I know
| >> > this
| >> > becasue if I open the same page in another editor I see the correct
| >> > line
| >> > numbers and the hidden code.
| >> >
| >> > I've looked and looked and I cannot fiind an optoin to turn this
| >> > feature on
| >> > or off.
| >> >
| >> > How are people handling this problem?
| >> >
| >> > Thanks
| >> >
| >> > Kerry
| >>
| >>
| >>
|
|
 
T

Thomas A. Rowe

FYI: The same applies to working with server-side scripting when you use includes to include code in
your pages, there is no way for FP or any HTML editor to show line numbers for content that is not
physically written in the page when open in Edit mode.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
R

Ronx

I get round the problem by right-clicking the page in FrontPage and choosing
Open with, then TextPad. Textpad displays the complete HTML with line
numbers, enabling the error to be found.

Note that editing a page this way leaves you open to other problems, if the
edit changes a webbot, include page, etc.
 

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