Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I going back?
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00821939
Message ID:
00824685
Views:
30
Tom,
I discovered another source of "joy" as I restored the rest of my validation code... I have a new appreciation for how case-sensitive JavaScript is...
I had some variable initializations then went like:
var mystring = frmMyForm.MyField.Value
little did I realize how much headache I would get by 1 capital "V"
I should have used:
var mystring = frmMyForm.MyField.value
Rick
----------
>A great source of "joy" for anyone writing or using a web based application is the behavior of a Browser. Basic functionality, settings and incomplete acceptance of standards makes life “more interesting” when it comes to the world of Browsers. Going with one Browser, say I.E. is fine until the next version comes out! :)
>
>Tom
>
>
>>Mike,
>>I did as you said (my IE error reporting was turned off and I didn't know it... and didn't know any better)
>>It reported the line numbers I needed to look at...the ones you caught...
>>And now it works!!!
>>
>>Thank you for sticking by me when needed you!
>>
>>Now I'll start actually validating.
>>
>>Rick
>>----------------------------
>>>You have some other javascript errors in the code that is preventing it from executing. Depending on the browser you are testing with you need to check for errors. If using IE then turn on the script debuging by going to tools, internet options. Then select the advanced page. Under advanced check the "display a notification about every script error" checkbox and make sure that the "disable script debugging" checkbox is NOT checked. You should then see the script errors when you load the page.
>>>
>>>If you are using a Mozilla based browser then under the tools menu activate the Javascript Console to view script errors.
>>>
>>>There are two lines that need to be corrected in your script.
>>>
>>>Change:
>>> if MustHaves=false || Wants=false || ZipFormat=false
>>>
>>>To:
>>> if (MustHaves==false || Wants==false || ZipFormat==false)
>>>
>>>And change:
>>>
>>> window scroll(0,0);
>>>
>>>To:
>>>
>>> window.scroll(0,0);
>>>
>>>
>>>
>>>
>>>
>>>>Mike,
>>>>I just made the change and tried it...
>>>>same results.... the alert didn't fire...no evidence that the onsubmit code was executed.
>>>>
>>>>Rick
>>>>
>>>>--------------------
>>>>>Javascript is case sensitive. You need to change:
>>>>>
>>>>>Function frmRDCST3_onsubmit()
>>>>>
>>>>>to:
>>>>>
>>>>>function frmRDCST3_onsubmit()
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform