473,407 Members | 2,326 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,407 software developers and data experts.

JScript runtime error '800a138f' 'undefined' is null or not an obj

I am running some off-the-shelf software that is written in ASP, which uses
JScript to generate dynamic content within HTML forms. There are several ASP
pages which are partially rendering to IE, but stop midway through with an
error embeded in the page: "Microsoft JScript runtime error '800a138f'
'undefined' is null or not an object".

The software package has a large install base with no other customer having
this problem. I also have a second identical install on another server
pointing to the same SQL database, and it doesn't exibit this problem either.

Our own developers were able to work around the problem by making a small
change to the code.

The original code:

<%=String(rs("Question")).length > 100?
RemoveHTML(String(rs("Section"))).substr(0, 100) + "...":
RemoveHTML(String(rs("Section")))%>

Changed to:

<%if (String(rs("Section")).length > 100)
{Response.Write(String(rs("Section")).substr(0, 100) + "...") ;} else {
Response.Write(rs("Section")); }%>

The latter bit of code had to have two changes.. one to change the odd
conditional statement to a more traditional if-statement, and second to avoid
calling the RemoveHTML function, both which cause an error.

function RemoveHTML(Expresion)
on error resume next
Dim RegEx
Set RegEx = New RegExp
RegEx.Pattern = "<[^>]*>"
RegEx.Global = True
Expresion = Replace(Expresion, "<br>", chr(10))
RemoveHTML = RegEx.Replace(Expresion, "")
end function

I've searched Microsoft's KB and Googled the error, and so far nothing
useful has come up. Any ideas on what the cause is or how I can further
troubleshoot?

!!! Again, there is nothing wrong with the code.. it works on hundreds of
other servers. There is something particular about my server that is causing
this !!!

Thanks in advance for any help anyone can offer!

--
Dan Roberts, MCSE
Systems Administrator
Administrative Computing Services
Kent State University
Jul 22 '05 #1
6 19210
Jon
It would seem odd it would be server-dependent. But for my morbid curiosity
what server are you using? And is this different to the ones other people
are using?

--
Jon
wa*********@gmail.com
Look at that dead pixel on your screen! *SLAP* Gotcha!

"Dan Roberts @ Kent State" <Da*****************@discussions.microsoft.com>
wrote in message news:A6**********************************@microsof t.com...
I am running some off-the-shelf software that is written in ASP, which uses
JScript to generate dynamic content within HTML forms. There are several
ASP
pages which are partially rendering to IE, but stop midway through with an
error embeded in the page: "Microsoft JScript runtime error '800a138f'
'undefined' is null or not an object".

The software package has a large install base with no other customer
having
this problem. I also have a second identical install on another server
pointing to the same SQL database, and it doesn't exibit this problem
either.

Our own developers were able to work around the problem by making a small
change to the code.

The original code:

<%=String(rs("Question")).length > 100?
RemoveHTML(String(rs("Section"))).substr(0, 100) + "...":
RemoveHTML(String(rs("Section")))%>

Changed to:

<%if (String(rs("Section")).length > 100)
{Response.Write(String(rs("Section")).substr(0, 100) + "...") ;} else {
Response.Write(rs("Section")); }%>

The latter bit of code had to have two changes.. one to change the odd
conditional statement to a more traditional if-statement, and second to
avoid
calling the RemoveHTML function, both which cause an error.

function RemoveHTML(Expresion)
on error resume next
Dim RegEx
Set RegEx = New RegExp
RegEx.Pattern = "<[^>]*>"
RegEx.Global = True
Expresion = Replace(Expresion, "<br>", chr(10))
RemoveHTML = RegEx.Replace(Expresion, "")
end function

I've searched Microsoft's KB and Googled the error, and so far nothing
useful has come up. Any ideas on what the cause is or how I can further
troubleshoot?

!!! Again, there is nothing wrong with the code.. it works on hundreds of
other servers. There is something particular about my server that is
causing
this !!!

Thanks in advance for any help anyone can offer!

--
Dan Roberts, MCSE
Systems Administrator
Administrative Computing Services
Kent State University

Jul 22 '05 #2
Sometimes it can be as simple as a missing quote such as:

...width="100%>

Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
http://www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
*** Sent via Developersdex http://www.developersdex.com ***
Jul 22 '05 #3
They are both Windows 2000 Advanced Server with service pack 4 and identical
patches installed, both on Dell PowerEdge servers. I don't know for certain
what their other customers are running.. presumably W2K since I was told
during one of our conference calls that 2003 wasn't supported yet, and on any
number of possible hardware combinations.

--
Dan Roberts, MCSE
Systems Administrator
Administrative Computing Services
Kent State University
"Jon" wrote:
It would seem odd it would be server-dependent. But for my morbid curiosity
what server are you using? And is this different to the ones other people
are using?

--
Jon
wa*********@gmail.com
Look at that dead pixel on your screen! *SLAP* Gotcha!

"Dan Roberts @ Kent State" <Da*****************@discussions.microsoft.com>
wrote in message news:A6**********************************@microsof t.com...
I am running some off-the-shelf software that is written in ASP, which uses
JScript to generate dynamic content within HTML forms. There are several
ASP
pages which are partially rendering to IE, but stop midway through with an
error embeded in the page: "Microsoft JScript runtime error '800a138f'
'undefined' is null or not an object".

The software package has a large install base with no other customer
having
this problem. I also have a second identical install on another server
pointing to the same SQL database, and it doesn't exibit this problem
either.

Our own developers were able to work around the problem by making a small
change to the code.

The original code:

<%=String(rs("Question")).length > 100?
RemoveHTML(String(rs("Section"))).substr(0, 100) + "...":
RemoveHTML(String(rs("Section")))%>

Changed to:

<%if (String(rs("Section")).length > 100)
{Response.Write(String(rs("Section")).substr(0, 100) + "...") ;} else {
Response.Write(rs("Section")); }%>

The latter bit of code had to have two changes.. one to change the odd
conditional statement to a more traditional if-statement, and second to
avoid
calling the RemoveHTML function, both which cause an error.

function RemoveHTML(Expresion)
on error resume next
Dim RegEx
Set RegEx = New RegExp
RegEx.Pattern = "<[^>]*>"
RegEx.Global = True
Expresion = Replace(Expresion, "<br>", chr(10))
RemoveHTML = RegEx.Replace(Expresion, "")
end function

I've searched Microsoft's KB and Googled the error, and so far nothing
useful has come up. Any ideas on what the cause is or how I can further
troubleshoot?

!!! Again, there is nothing wrong with the code.. it works on hundreds of
other servers. There is something particular about my server that is
causing
this !!!

Thanks in advance for any help anyone can offer!

--
Dan Roberts, MCSE
Systems Administrator
Administrative Computing Services
Kent State University


Jul 22 '05 #4
You probably have a null value in one of the columns in the database for
that installation. Perhaps the ? syntax treats null values differently than
the if/else syntax.

--
--Mark Schupp
"Dan Roberts @ Kent State" <Da*****************@discussions.microsoft.com>
wrote in message news:5C**********************************@microsof t.com...
They are both Windows 2000 Advanced Server with service pack 4 and
identical
patches installed, both on Dell PowerEdge servers. I don't know for
certain
what their other customers are running.. presumably W2K since I was told
during one of our conference calls that 2003 wasn't supported yet, and on
any
number of possible hardware combinations.

--
Dan Roberts, MCSE
Systems Administrator
Administrative Computing Services
Kent State University
"Jon" wrote:
It would seem odd it would be server-dependent. But for my morbid
curiosity
what server are you using? And is this different to the ones other people
are using?

--
Jon
wa*********@gmail.com
Look at that dead pixel on your screen! *SLAP* Gotcha!

"Dan Roberts @ Kent State"
<Da*****************@discussions.microsoft.com>
wrote in message
news:A6**********************************@microsof t.com...
>I am running some off-the-shelf software that is written in ASP, which
>uses
> JScript to generate dynamic content within HTML forms. There are
> several
> ASP
> pages which are partially rendering to IE, but stop midway through with
> an
> error embeded in the page: "Microsoft JScript runtime error '800a138f'
> 'undefined' is null or not an object".
>
> The software package has a large install base with no other customer
> having
> this problem. I also have a second identical install on another server
> pointing to the same SQL database, and it doesn't exibit this problem
> either.
>
> Our own developers were able to work around the problem by making a
> small
> change to the code.
>
> The original code:
>
> <%=String(rs("Question")).length > 100?
> RemoveHTML(String(rs("Section"))).substr(0, 100) + "...":
> RemoveHTML(String(rs("Section")))%>
>
> Changed to:
>
> <%if (String(rs("Section")).length > 100)
> {Response.Write(String(rs("Section")).substr(0, 100) + "...") ;} else {
> Response.Write(rs("Section")); }%>
>
> The latter bit of code had to have two changes.. one to change the odd
> conditional statement to a more traditional if-statement, and second to
> avoid
> calling the RemoveHTML function, both which cause an error.
>
> function RemoveHTML(Expresion)
> on error resume next
> Dim RegEx
> Set RegEx = New RegExp
> RegEx.Pattern = "<[^>]*>"
> RegEx.Global = True
> Expresion = Replace(Expresion, "<br>", chr(10))
> RemoveHTML = RegEx.Replace(Expresion, "")
> end function
>
> I've searched Microsoft's KB and Googled the error, and so far nothing
> useful has come up. Any ideas on what the cause is or how I can
> further
> troubleshoot?
>
> !!! Again, there is nothing wrong with the code.. it works on hundreds
> of
> other servers. There is something particular about my server that is
> causing
> this !!!
>
> Thanks in advance for any help anyone can offer!
>
> --
> Dan Roberts, MCSE
> Systems Administrator
> Administrative Computing Services
> Kent State University


Jul 22 '05 #5
Thanks Mark, the database call is returning valid results.. but I'll have to
follow up on your comment about the ? operator with some testing. Not sure
why that didn't occur to me.

Something else we've discovered is that regular expressions are not working
at all on the problem server. I isolated the code from the RemoveHTML
function into its own ASP page and it consistantly returns null when I pass
it a value.

Any idea why regex would not be working on this server?

--
Dan Roberts, MCSE
Systems Administrator
Administrative Computing Services
Kent State University
"Mark Schupp" wrote:
You probably have a null value in one of the columns in the database for
that installation. Perhaps the ? syntax treats null values differently than
the if/else syntax.

--
--Mark Schupp
"Dan Roberts @ Kent State" <Da*****************@discussions.microsoft.com>
wrote in message news:5C**********************************@microsof t.com...
They are both Windows 2000 Advanced Server with service pack 4 and
identical
patches installed, both on Dell PowerEdge servers. I don't know for
certain
what their other customers are running.. presumably W2K since I was told
during one of our conference calls that 2003 wasn't supported yet, and on
any
number of possible hardware combinations.

--
Dan Roberts, MCSE
Systems Administrator
Administrative Computing Services
Kent State University
"Jon" wrote:
It would seem odd it would be server-dependent. But for my morbid
curiosity
what server are you using? And is this different to the ones other people
are using?

--
Jon
wa*********@gmail.com
Look at that dead pixel on your screen! *SLAP* Gotcha!

"Dan Roberts @ Kent State"
<Da*****************@discussions.microsoft.com>
wrote in message
news:A6**********************************@microsof t.com...
>I am running some off-the-shelf software that is written in ASP, which
>uses
> JScript to generate dynamic content within HTML forms. There are
> several
> ASP
> pages which are partially rendering to IE, but stop midway through with
> an
> error embeded in the page: "Microsoft JScript runtime error '800a138f'
> 'undefined' is null or not an object".
>
> The software package has a large install base with no other customer
> having
> this problem. I also have a second identical install on another server
> pointing to the same SQL database, and it doesn't exibit this problem
> either.
>
> Our own developers were able to work around the problem by making a
> small
> change to the code.
>
> The original code:
>
> <%=String(rs("Question")).length > 100?
> RemoveHTML(String(rs("Section"))).substr(0, 100) + "...":
> RemoveHTML(String(rs("Section")))%>
>
> Changed to:
>
> <%if (String(rs("Section")).length > 100)
> {Response.Write(String(rs("Section")).substr(0, 100) + "...") ;} else {
> Response.Write(rs("Section")); }%>
>
> The latter bit of code had to have two changes.. one to change the odd
> conditional statement to a more traditional if-statement, and second to
> avoid
> calling the RemoveHTML function, both which cause an error.
>
> function RemoveHTML(Expresion)
> on error resume next
> Dim RegEx
> Set RegEx = New RegExp
> RegEx.Pattern = "<[^>]*>"
> RegEx.Global = True
> Expresion = Replace(Expresion, "<br>", chr(10))
> RemoveHTML = RegEx.Replace(Expresion, "")
> end function
>
> I've searched Microsoft's KB and Googled the error, and so far nothing
> useful has come up. Any ideas on what the cause is or how I can
> further
> troubleshoot?
>
> !!! Again, there is nothing wrong with the code.. it works on hundreds
> of
> other servers. There is something particular about my server that is
> causing
> this !!!
>
> Thanks in advance for any help anyone can offer!
>
> --
> Dan Roberts, MCSE
> Systems Administrator
> Administrative Computing Services
> Kent State University


Jul 22 '05 #6
What happens if you remove the "on error resume next"?

--
--Mark Schupp
"Dan Roberts @ Kent State" <Da*****************@discussions.microsoft.com>
wrote in message news:EE**********************************@microsof t.com...
Thanks Mark, the database call is returning valid results.. but I'll have
to
follow up on your comment about the ? operator with some testing. Not
sure
why that didn't occur to me.

Something else we've discovered is that regular expressions are not
working
at all on the problem server. I isolated the code from the RemoveHTML
function into its own ASP page and it consistantly returns null when I
pass
it a value.

Any idea why regex would not be working on this server?

--
Dan Roberts, MCSE
Systems Administrator
Administrative Computing Services
Kent State University
"Mark Schupp" wrote:
You probably have a null value in one of the columns in the database for
that installation. Perhaps the ? syntax treats null values differently
than
the if/else syntax.

--
--Mark Schupp
"Dan Roberts @ Kent State"
<Da*****************@discussions.microsoft.com>
wrote in message
news:5C**********************************@microsof t.com...
> They are both Windows 2000 Advanced Server with service pack 4 and
> identical
> patches installed, both on Dell PowerEdge servers. I don't know for
> certain
> what their other customers are running.. presumably W2K since I was
> told
> during one of our conference calls that 2003 wasn't supported yet, and
> on
> any
> number of possible hardware combinations.
>
> --
> Dan Roberts, MCSE
> Systems Administrator
> Administrative Computing Services
> Kent State University
>
>
> "Jon" wrote:
>
>> It would seem odd it would be server-dependent. But for my morbid
>> curiosity
>> what server are you using? And is this different to the ones other
>> people
>> are using?
>>
>> --
>> Jon
>> wa*********@gmail.com
>> Look at that dead pixel on your screen! *SLAP* Gotcha!
>>
>> "Dan Roberts @ Kent State"
>> <Da*****************@discussions.microsoft.com>
>> wrote in message
>> news:A6**********************************@microsof t.com...
>> >I am running some off-the-shelf software that is written in ASP,
>> >which
>> >uses
>> > JScript to generate dynamic content within HTML forms. There are
>> > several
>> > ASP
>> > pages which are partially rendering to IE, but stop midway through
>> > with
>> > an
>> > error embeded in the page: "Microsoft JScript runtime error
>> > '800a138f'
>> > 'undefined' is null or not an object".
>> >
>> > The software package has a large install base with no other customer
>> > having
>> > this problem. I also have a second identical install on another
>> > server
>> > pointing to the same SQL database, and it doesn't exibit this
>> > problem
>> > either.
>> >
>> > Our own developers were able to work around the problem by making a
>> > small
>> > change to the code.
>> >
>> > The original code:
>> >
>> > <%=String(rs("Question")).length > 100?
>> > RemoveHTML(String(rs("Section"))).substr(0, 100) + "...":
>> > RemoveHTML(String(rs("Section")))%>
>> >
>> > Changed to:
>> >
>> > <%if (String(rs("Section")).length > 100)
>> > {Response.Write(String(rs("Section")).substr(0, 100) + "...") ;}
>> > else {
>> > Response.Write(rs("Section")); }%>
>> >
>> > The latter bit of code had to have two changes.. one to change the
>> > odd
>> > conditional statement to a more traditional if-statement, and second
>> > to
>> > avoid
>> > calling the RemoveHTML function, both which cause an error.
>> >
>> > function RemoveHTML(Expresion)
>> > on error resume next
>> > Dim RegEx
>> > Set RegEx = New RegExp
>> > RegEx.Pattern = "<[^>]*>"
>> > RegEx.Global = True
>> > Expresion = Replace(Expresion, "<br>", chr(10))
>> > RemoveHTML = RegEx.Replace(Expresion, "")
>> > end function
>> >
>> > I've searched Microsoft's KB and Googled the error, and so far
>> > nothing
>> > useful has come up. Any ideas on what the cause is or how I can
>> > further
>> > troubleshoot?
>> >
>> > !!! Again, there is nothing wrong with the code.. it works on
>> > hundreds
>> > of
>> > other servers. There is something particular about my server that
>> > is
>> > causing
>> > this !!!
>> >
>> > Thanks in advance for any help anyone can offer!
>> >
>> > --
>> > Dan Roberts, MCSE
>> > Systems Administrator
>> > Administrative Computing Services
>> > Kent State University
>>
>>
>>


Jul 22 '05 #7

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

Similar topics

4
by: Robert Mark Bram | last post by:
Hi All! I have checked Windows Script help for the Undefined Data Type. It says I should be able to do this: // This method will work if (typeof(x) == "undefined") // do something However,...
0
by: Jim Heavey | last post by:
Hello, I am running into a situation where my application is failing and it is showing me "Jscript code" when it fails. The error message I get in a message box is "Microsoft JScript runtime...
0
by: mag48 | last post by:
Inside the footer of a datagrid (used to insert into DB) I have a textbox and just beside it I have a required Field Validator. I use the footer of the grid to add a record to the DataBase. When...
9
by: WRH | last post by:
Hello I am new to asp but I made some Jscript functions which work fine. The functions contain some strings used as a registration key for some apps. It is important that these strings not be...
2
by: JNariss | last post by:
Hello, I have created a connection to one of my databases using DreamWeaver and created a form. When I go to preview the form in a browser I can see it and fill out fields. However when I click...
1
by: JNariss | last post by:
Hello, I have created a connection to my Access database with Dreamweaver and made a simple form with 4 fields. The code behind this form was/is: <%@LANGUAGE="VBCRIPT" CODEPAGE="1252"%>...
1
by: finditajr | last post by:
Hello I'm having the following problem: My main webpage calls a function stored in a .js file that creates an HTML window to display a calendar. Whenever I click on a date in that calendar,...
15
by: zz12 | last post by:
Hello, would anyone be able to confirm that 'jscript.dll' is a necessary file for an .asp page on IIS 5.0 to use the <script language="JavaScipt" runat="SERVER"code? It looks like the code in this...
3
by: suganya | last post by:
Hi Some professionals already has developed the project using menu. In my company, they have given me task to clear the error in that. It is a script file named as "menubarAPI4.js" which is kept...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.