This topic is locked

Problem with JavaScript

9/28/2008 1:44:20 PM
ASPRunnerPro General questions
W
waynem author

I have an issue with my JavaSript menu software. All other pages on my site work fine, but when I visit an ASPRunnerPro generated page, the menu doesn't appear and I see this error in IE if I click the ! in the lower left hand corner:
"Object Doesn't Support this Property or Method"
In playing around I believe this line of code is the culprit:
"str1 += ' ' + wrds1[keyvar1].substr(0,1).toUpperCase()+wrds1[keyvar1].substr(1,wrds1[keyvar1].

length);"
which is used as part of a function to convert a variable into title case format.
I'm going to look for another function to see if that works around the problem, but I'd really like to understand why only the ASPRunnerPro pages receive this error, and none of my other ASP or ASP.NET pages.
If this can be fixed in ASPRunnerPro even better.
I call the menu routine from my header.asp file, it needs to be called right after the open body tag. I assume that is where the header file is being invoked in the code, but if it isn't perhaps that is a clue.
Thanks in advance for any help you can offer.

W
waynem author 9/28/2008

I changed the function and everything seems to be working now, so it was probably a coding glitch. Sorry for the trouble!

I have an issue with my JavaSript menu software. All other pages on my site work fine, but when I visit an ASPRunnerPro generated page, the menu doesn't appear and I see this error in IE if I click the ! in the lower left hand corner:

"Object Doesn't Support this Property or Method"
In playing around I believe this line of code is the culprit:
"str1 += ' ' + wrds1[keyvar1].substr(0,1).toUpperCase()+wrds1[keyvar1].substr(1,wrds1[keyvar1].

length);"
which is used as part of a function to convert a variable into title case format.
I'm going to look for another function to see if that works around the problem, but I'd really like to understand why only the ASPRunnerPro pages receive this error, and none of my other ASP or ASP.NET pages.
If this can be fixed in ASPRunnerPro even better.
I call the menu routine from my header.asp file, it needs to be called right after the open body tag. I assume that is where the header file is being invoked in the code, but if it isn't perhaps that is a clue.
Thanks in advance for any help you can offer.