Vetrijar Posted March 21, 2004 Posted March 21, 2004 I'm having a problem with the regular expression validator or any other validator working correctly when the website is LIVE. everything works great when I'm debugging or testing the site on my home computer. The validator shows when I havent' typed enough characters when I exit the box, and tells me if there are any errors otherwise. When I have the site live and test it from a different computer. the validator doesn't even activate. there is no message that shows for anything. Is there some type of compatibility thing with the validator?? Shouldn't it work on all computers if it works on the .net testing on mine??? everything is TRUE mainly with the validator, and the display is set to dynamic. I need help. Not sure on code with this, as it's the graphic view of the validator. Quote
Moderators Robby Posted March 21, 2004 Moderators Posted March 21, 2004 Does the browser allow JavaScript? Also, if this is a shared hosting environment make sure that this file is in the root of your application 'asp_client/system_web/1_1_4322/WebUIValidation.js' Quote Visit...Bassic Software
sj1187534 Posted March 23, 2004 Posted March 23, 2004 Hi... As far as I understand, the validators do not get into effect until the page is submitted. This is not the case when you are testing the form on a local machine because, the javascript code that is executed for validation is on the machine itself. Whereas, when you are testing the form on a live site, the form needs to be submitted to the server for the javascript validation code to check the validity of the form. Once you enter the fields in the form, "submit" the form and you can see that the regular expression validator is fired. Let me know if this is working for you. SJ I'm having a problem with the regular expression validator or any other validator working correctly when the website is LIVE. everything works great when I'm debugging or testing the site on my home computer. The validator shows when I havent' typed enough characters when I exit the box, and tells me if there are any errors otherwise. When I have the site live and test it from a different computer. the validator doesn't even activate. there is no message that shows for anything. Is there some type of compatibility thing with the validator?? Shouldn't it work on all computers if it works on the .net testing on mine??? everything is TRUE mainly with the validator, and the display is set to dynamic. I need help. Not sure on code with this, as it's the graphic view of the validator. Quote
MorningZ Posted March 23, 2004 Posted March 23, 2004 You understand incorrectly... Client side script works just the same on a production server as it does on a local machine as mentioned in the first reply, simply copying up the "asp_client" directory to the root of the site will solve his ills Quote If you make it idiot proof, they'll build a better idiot :-)
sj1187534 Posted March 23, 2004 Posted March 23, 2004 I have been working on some .NET sites lately and I always came across the same issue. Whenever I am testing on a live site, the validators are never fired when we leave a web control with an incorrect input data. It only fired when I submit the form!! If this is the issue of the javascript file being in the "asp_client" sub directory, how can we govern that? The hosting servers should take care of that, istn't it? So, I thought, this is how it is supposed to work on a live site. Any ideas? SJ Quote
Moderators Robby Posted March 23, 2004 Moderators Posted March 23, 2004 On my shared environment the files were not there so I uploaded them myself and all is well. Quote Visit...Bassic Software
MorningZ Posted March 23, 2004 Posted March 23, 2004 I have been working on some .NET sites lately and I always came across the same issue. Whenever I am testing on a live site, the validators are never fired when we leave a web control with an incorrect input data. It only fired when I submit the form!! If this is the issue of the javascript file being in the "asp_client" sub directory, how can we govern that? The hosting servers should take care of that, istn't it? So, I thought, this is how it is supposed to work on a live site. Any ideas? SJ That's just a very weird quirk of the client side validators.... there seems to be no rhyme or reason on why they act like that... but in the end, valid data is indeed getting posted :) Quote If you make it idiot proof, they'll build a better idiot :-)
Moderators Robby Posted March 23, 2004 Moderators Posted March 23, 2004 It's not a quirk, it can't validate properly if the scripts are missing. Quote Visit...Bassic Software
MorningZ Posted March 23, 2004 Posted March 23, 2004 even with the scripts, sometime the validator flags don't dissapear right away unless you hit "submit".. like its not running the script on every "OnChange" event Quote If you make it idiot proof, they'll build a better idiot :-)
Arch4ngel Posted March 24, 2004 Posted March 24, 2004 Okay... VsNet = Microsoft IE = Microsoft Other Browzer != Microsoft And like a monopolistic reaction... Validator don't seem to work on other browser (didn't try to copy the .js in the web site)... so maybe there's other thing that it don't allow Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
Moderators Robby Posted March 24, 2004 Moderators Posted March 24, 2004 This has NOTHING to do with Microsoft or its stronghold on the software community. It has to do with other browsers not parsing a page as they should be. The only thing that the validators do is use some simple JavaScript, this is not rocket-science. Quote Visit...Bassic Software
Arch4ngel Posted March 24, 2004 Posted March 24, 2004 Wohhhhh... didn't kill anybody This has NOTHING to do with Microsoft or its stronghold on the software community. It has to do with other browsers not parsing a page as they should be. The only thing that the validators do is use some simple JavaScript' date=' this is not rocket-science.[/font'] OK ok! don't spit on me! :p I just said that because when I tried validator it didn't work with Netscape and did with Internet Explorer BEFORE I move the .js file. Sorry if I had a "political" look against Microsoft or anything but it's just result from tests. Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.