Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 28th, 2007, 07:52 AM
Registered User
 
Join Date: Jun 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default display Null or Not an object error

document.all.txtOrganizer_Flag.value = <%=Abs(CInt(oRS("organizer_flag")))%>;
                document.all.txtPresenter_Flag.value = <%=Abs(CInt(oRS("presenter_flag")))%>;
                document.all.txtParticipant_Flag.value = <%=Abs(CInt(oRS("external_participants")))%>;
                if (document.all.txtCC) {document.all.txtCC.value = "<%=TextConvert(trim(oRS("c_costcenter")),0)%> ";}
                if (document.all.tCCDesc) {document.all.tCCDesc.innerText = "<%=TextConvert(trim(oRS("c_cc_desc")),0)%>";}
                <%if g_reservation_location = 0 Or Reservation_Owner = true then
                    Find_Participants
                else
                    %>document.all.btnSave.style.display="none";
                    <%
                end if




In the above code i am getting error at document.all.btnSave.style.display="none"; like "document.all.btnSave.style.display" is null ot not an object. Please help me any one in this issue.



Kishore Kumar
Software Engineer
TATA Consultancy Services.
 
Old September 4th, 2007, 01:21 PM
Authorized User
 
Join Date: Sep 2007
Posts: 56
Thanks: 0
Thanked 1 Time in 1 Post
Default

Do you have the URL where this error is occuring. It means that either this object is non-existent (check spelling) or that you are trying to access it before its declared (before page is fully loaded)

http://mynameissteve.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
'style.display' null or not an object sheel331 Javascript 5 May 7th, 2008 11:41 AM
display no heading if null oleafo ASP.NET 1.0 and 1.1 Basics 1 January 8th, 2007 06:23 PM
Display all NULL columns hm_naveen Oracle 2 January 5th, 2007 09:50 AM
Error: (variable) is null or not an object alisonchase JSP Basics 1 February 14th, 2005 07:14 AM
Error: 'style.display' is null or not an object Adam H-W Javascript 4 April 22nd, 2004 08:45 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.