Link to home
Start Free TrialLog in
Avatar of headbump
headbump

asked on

Microsoft JScript runtime error '800a138f'

Hi all,

I'm using classic ASP and Javascript and am getting the following error when I try to display a memo field on the page:

Microsoft JScript runtime  error '800a138f'
'rsNewsType1.Fields.Item(...).Value' is null or not an object

The offending line is here:

<%=(rsNewsType1.Fields.Item("memSTNewsItem").Value).replace(/\n/g,"<BR>\n")%>

thanks for any help..

H
Avatar of hielo
hielo
Flag of Wallis and Futuna image

try:
<%=String(rsNewsType1.Fields.Item("memSTNewsItem").Value).replace(/\n/g,"<BR>\n")%>

Open in new window

Avatar of headbump
headbump

ASKER

Hi hielo,

I get an error on the page that says:

undefined

H

<%
if( "undefined" != String(rsNewsType1.Fields.Item("memSTNewsItem").Value) )
	Response.Write( String(rsNewsType1.Fields.Item("memSTNewsItem").Value).replace(/\n/g,"<BR>\n") );
%>

Open in new window

thanks again hielo:

This does not return an error, but it returns no value..just a blank page..

H
ASKER CERTIFIED SOLUTION
Avatar of hielo
hielo
Flag of Wallis and Futuna image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks again, hielo, sorry for the confusion...don't have direct access to the db...

H