473,657 Members | 2,475 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error: 'null' is null or not an object

11 New Member
Hi All...
Any one help me with the above weird error

I have a code like below

Expand|Select|Wrap|Line Numbers
  1. print <<"HTML";
  2. Content-type: text/html
  3.  
  4. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  5. <html lang="en">
  6. <head>
  7.  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  8.  <meta http-equiv="pragma" content="no-cache">
  9.  <meta http-equiv="expires" content="-1">
  10.  <meta http-equiv="cache-control" content="no-cache">
  11. HTML
  12. print <<"END_OF_HTML1";
  13. <script language="JavaScript" src="get_job_var.js"></script>
  14. <script language="JavaScript" src="get_func.js"></script>
  15. <script language="JavaScript" src="js/emp.js"></script>
  16. </head>
  17. END_OF_HTML
  18.  
  19. prn emp();
  20.  
  21. print <<"END_OF_HTML2";
  22. <tr><td width="100%">
  23. <form name="empForm" method="POST" action="body.pl" target="s_body" onSubmit="return ValidateForm(this);">
  24. <table width="100%" border="1" style="font: 8pt Arial, Helvetica">
  25. <thead>
  26.     <tr bgcolor="#CAD7EA" >
  27.         <th align="center">EMP Criteria</th>
  28.     </tr>
  29. </thead>
  30. <tbody id="tbody_30" style="display:" >
  31. END_OF_HTML
  32.  
Below this there are some more functions that is used to select some options and then submit the report

Now I want to get rid of prnemp() and use only [HTML]<body onLoad="initPar am(empForm);">< script language="javas cript">top.menu fr.MSG = "$msg";</script>[/HTML]
to initialize the parameters. So, when I try to place the above 3 statements in between the END_OF_HTML1 and END_OF_HTML2, Its giving the msg like "Error: 'null' is null or not an object

Plzz help me :)

sub prnemp()
{
[html] <body onLoad="initPar am(empForm);">
<script language="javas cript">
top.menufr.MSG = "$msg" ;
</script>

<table width="100%">
<tr><td width="100%">
<table width="100%" border="1">
<thead>
<tr bgcolor="#CAD7E A" >
<th colspan=3 >
<table cellspacing=0 cols=2 width="100%" style="font: 8pt Arial, Helvetica">
<tr>
<th nowrap=1 align="left"><D IV onclick="Button Click('pc');">< img id="expimg" src="image/Collapse.gif">& nbsp;&nbsp;Quic k Count -- $emp</DIV></th>
<th nowrap=1 align="right">( $empCode)</th>
</tr>

<tr>
<th nowrap=1 colspan=2 align="right">L ast Update: $LastUpd</th>
</tr>
</table>
</th>
</tr>
</thead>

<tbody id="tbody_qc" style="display: none" >

<tr bgcolor="#F1F1F 3">
<td NOWRAP=1>Summar y</td>
<td align=center># of<br>Surveys</td>
<td align=center>% of<br>Surveys</td>
</tr>

<tr bgcolor="#F1F1F 3">
<td NOWRAP=1>Scores </td>
<td align=center>$e mp</td>
<td align=center>$p rcnt</td>
</tr>[/HTML]
}
Mar 19 '08 #1
2 1965
getmadhu
11 New Member
Please help me to get rid of the above problem
Mar 19 '08 #2
acoder
16,027 Recognized Expert Moderator MVP
You have a space between prn and emp() when calling prnemp().

PS. 48 minutes is not nearly enough time to try and bump up your question to the top. You just disadvantage yourself by removing it from the unanswered list.
Mar 20 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
4273
by: Robin Dindayal | last post by:
Does anyone know how I can print a fully rendered .aspx to the server's printer? I know that, if I wanted to print to the client's printer it would be easy (ie. use javascript's window.print()). However, I need to print to the server's printer. I need to print the fully rendered .aspx page from the codebehind .aspx.cs page to the server's printer. I've tried using SHDocVw.InternetExplorer and SHDocVw.WebBrowser but I just can't seem...
4
1806
by: Larry Tate | last post by:
I am wanting to get those cool html error pages that ms produces when I hit an error in asp.net. For instance, when I get a compilation error I get an html error page that shows me the Description: Compiler Error Message: Source Error: Source File: The main thing I want is the Source Error. This give me a few lines of the
3
2433
by: Adriano | last post by:
Hello, when I try to print something, either DataGrid or from Crystal Report viever the folowing error message appears and cancels printing: Object reference not set to an instance of an object :(((( Anyone pls help me to solve this problem!!! thanks in advance,
3
2383
by: Doug Durrett | last post by:
I'm having an issue and wanted to pass it by everyone to see what you think. Here is my code. //Code Start searchs = new Maritz.Learning.HP.Callcenter.BusinessServices.Searchs(base.ConnectionString); searchs.Search(this.FirstNameTextbox.Text, this.LastNameTextbox.Text,
3
6094
by: Jeremy Chapman | last post by:
I've writtin a very simple web service in axis which returns an array of classes. I consume it in a .net app. When receiving the response, my .net app generates an error "Cannot assign object of type System.Object to an object of type PersonWS.WorkGroupData.". I've included the wsdl of the consumed axis web service, the request/responses of the web service by the .net app and the exception and stack trace. Hoping someone can tell me...
2
2332
by: arun1985 | last post by:
In the project i am using i am having the following code and when i upload it to the server.Its givig me the following error in the global.cs file. Server Error in '/' Application. -------------------------------------------------------------------------------- Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack...
0
3482
by: shahiz | last post by:
This the error i get when i try to run my program Error: Unable to realize com.sun.media.amovie.AMController@18b81e3 Basically i have a mediapanel class that initialize and play the media as datasource import java.awt.BorderLayout; import java.awt.Component; import java.io.*; import java.net.URL; import javax.media.*;
3
8642
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 inside the folder "menu_script". The following is the code in this file. var menuOffsetTop=menuOffsetLeft=submenuOffsetTop=submenuOffsetLeft=submenuOffsetRight=0; var Doc=this.document;var standards=Doc.createElement&&Doc.createTextNode?1:0;...
11
5579
by: xenoix | last post by:
hey there, im reasonably new to C# and im currently writing a backup application which im using as a learning resource. My PC :- Visual Studio 2005 .NET Framework 2 Component Factory Krypton Tools Test PC :- .Net Framework 2
0
8838
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8739
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8513
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8613
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7351
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2740
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1969
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1732
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.