Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

  • Moderators
Posted

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'

Visit...Bassic Software
Posted

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.

Posted

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

If you make it idiot proof, they'll build a better idiot :-)
Posted

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

Posted
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 :)

If you make it idiot proof, they'll build a better idiot :-)
Posted
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
If you make it idiot proof, they'll build a better idiot :-)
Posted

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

"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
Posted
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.
Visit...Bassic Software
Posted

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.

"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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...