473,378 Members | 1,066 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

validator not working when page is served from a different machine

Don
I have a page with a required field validator and it is working fine.
We put this project on another developer's machine and the validators
do not work. We get a javascript error that says 'Invalid Character
at line 24' but that line is not even javaScript.

This project is in sourceSafe and we both have done 'get latest
version' so I know the code is the same. This is not a browser
config issue because if I browse to his machine the valdiator does not
work and if he browses to my machine they do work.

I've noticed that the onsubmit property of the form tag is different
when my machine serves then page than it is when the page is served by
his machine. Below are the onsubmit properties:

Good onsubmit:
"if (!ValidatorOnSubmit()) return false;"

Bad onsubmit:
"ValidatorOnSubmit();"

Why would the same code generate different HTML?

Don

Nov 19 '05 #1
4 1174
Don <ch*********@hotmail.com> ha scritto:
I have a page with a required field validator and it is working fine.
We put this project on another developer's machine and the validators
do not work. We get a javascript error that says 'Invalid Character
at line 24' but that line is not even javaScript.


If machina is Win 2003, install Framework Service Pack 1 for win 2003.

--
AZ [Microsoft - .NET MVP]
Mia Home page: http://ciclismo.sitiasp.it
Asp.Net community: http://www.aspitalia.com
Il mio blog: http://blogs.aspitalia.com/az
Nov 19 '05 #2
WJ
I have a problem that is not very similar to yours but is close. Here goes:
my PC is Windows xp pro.sp2. IE6.x (lattest), pn certain websites such as
http://dictionary.com, when I enter a word that it does not know, a message
says:

<<<
A Runtime error has occurred. Do you wish to debug ?
Line: 1
Error: Syntax error


But then I went to other PC and attempted the samething, it works fine. So I
rebuilt by PC, it ran for a while and the same thing happenned again ! Very
weird!

*** I then tried to view the source code of the page, sometimes I could view
it in NotePad, othertimes (on the same website), the "view source" menu itm
is grayed out. When I could view the source, I saw nothing wrong with Line 1
and or I donot know where "Line: 1" is to begin with. Windows does have its
own mind ! I quit debugging it.

John
Nov 19 '05 #3
Don
The machine is XP. I see that I have a hotfix (KB886904) and the other
machine does not. I'm going to try to find this hotfix and install it
on the other machine. Is the service pack 1?

Nov 19 '05 #4


this is the sort of problem

that is likely to arise when

using a badly designed platform

such as asp.net's htmlcontrols, usercontrols, servercontrols

if you continue to use these controls

your job will contain many unhappy hours of debugging and

reverse engineering, just to achieve a lesser result

my recommendation is to avoid them and implement such
features yourself

you will gain:

- predictability
- save time learning arbitrary technology with doubtful value
- ability to fix your code (you can't rewrite broken microsoft stuff,
you have to wait for them to fix it)
- protection from future "updates" that break your apps

would you trust a third party component to generate javascript on the
fly?

of course not! so why trust these controls?

top end websites do not use *these features* of asp.net - they just use
the good bits

the fact that you need to install a hotfix proves my point perfectly -
ms first attempt was
flawed - hardly surprising they have bitten off more than they can
chew!

Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Antho | last post by:
Firstly, thank you to everyone that replied to my OP. I am new to the PHP world and so its great that there are people out there who are prepared to share their knowledge. Anyway, I am...
3
by: Vigil | last post by:
Hi, I have downloaded the source code and installed everything on http://validator.w3.org/source/. I have the validator 'working' offline with Apache2. I have uploaded a valid XHTML 1 Strict...
2
by: Matias | last post by:
Hi!, I'm having a strange issue while deploying a web site with Validator controls. In my development machine the Validators function perfecly and also when I deploy using XCOPY to a web...
2
by: pmud | last post by:
Hi, I have an ASP.Net web page . The page was working fine until I added a required field field validator. My page has a link button which takes the user to another page, a submit button which...
8
by: pmud | last post by:
Hi, I am using a compare validator in asp.net application(c# code). This Custom validator is used for comparing a value enterd by the user against the primary key in the SQL database. IF the...
3
by: tshad | last post by:
I have a page that is very long so I have set it up to page using <div> to display or hide the different pages. When I get to the last page the user submits the page. This works great, except...
3
by: RobertS | last post by:
I'm trying to figure out what I need to do to configure IIS 5.1 on XP Pro to work when referencing WebResources.axd. For example, I have an aspx script that works fine when run from Visual Web...
40
by: VK | last post by:
Hi, After the response on my request from W3C I'm still unclear about Tidy vs. Validator discrepansies. That started with <IFRAME> issue, but there is more as I know. Anyway, this very basic...
4
by: BT | last post by:
I just started working with some Server Side Includes to streamline a website that I inherited. I think that I've got the SSI stuff figured out, but it is a pain to work on. When I edit an SSI, I...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.