Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 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 September 28th, 2007, 08:01 AM
Registered User
Join Date: Sep 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default javascript: null or not an object exception

I want to call a web service when a user closes the browser window. On closing the browser window, I get the following error:
  Microsoft JScript runtime error: 'service.SessionSpan' is null or not an object
I have attached the code for reference, please advise.

            <script lang="javascript">
            function funcInit()
            var iCallID = 0;
            service.useService("http://localhost/UpdateSessionDetails/SessionSpan.asmx?WSDL", "update");
            iCallID = service.SessionSpan.callService("UpdateSessionTabl e");
      <body MS_POSITIONING="GridLayout" onbeforeunload="funcInit()">
      <div id="service" style="behavior:url(webservice.htc)"></div>

            <form id="Form1" method="post" runat="server">
                  <asp:LinkButton ID="lbtnSummary" Runat="server">Download Summary.txt</asp:LinkButton>

Similar Threads
Thread Thread Starter Forum Replies Last Post
Null reference exception was unhandled labby C# 2005 0 April 24th, 2007 06:14 AM
Null reference exception when using DataAdapter Samantha Karen Webb C# 1 July 21st, 2006 09:12 AM
NULL reference exception Dwizz VB.NET 2002/2003 Basics 3 June 21st, 2005 07:15 AM
null exception error abhit_kumar JSP Basics 4 January 5th, 2005 05:26 PM
Null Exception while reading ajindal Classic ASP XML 3 December 14th, 2004 06:20 AM

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