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

Error msg: 'null' is null or not an object?

When i try to go over the image I get this error message in the browser:

'null' is null or not an object

This is what the files look like:

[PHP] $null_str = substr(md5(uniqid(mt_rand())),0,5);
$img_id = $row[item_nid].'_'.$null_str;
if ($db) {
$t=0;
$db->query("select * from mall_color where mc_pid='$row[item_nid]' and mc_part=0 order by mc_nid");
if ($db->numrow>1) {
while ($mrow = $db->nrecord(1)) {
$color_select .="<td style='padding:2 2 2 2'><a href='javascript:void(0)' onMouseOver=\"getElementById('$img_id').src='image/item_color_big/$mrow[mc_bfile]'\" hidefocus='true'><img src='image/item_color_small/$mrow[mc_sfile]' style='border:1px solid #cccccc' height=10 width=18></a></td>\n";

if (!(++$t%5)) $color_select .="</tr><tr>";
}
}
}[/PHP]
Jul 14 '08 #1
4 1965
JosAH
11,448 Expert 8TB
That is definitely not Java code; do you mean Javascript perhaps?

kind regards,

Jos (moderator)

ps. tell me whether you want me to delete this thread or move it over to a
Javascript forum.
Jul 14 '08 #2
ajos
283 100+
Definitely php and javaScript problem here.
Jul 14 '08 #3
r035198x
13,262 8TB
Why is it always my duty to take out the trash?
<Moved to PHP forum>
Jul 15 '08 #4
acoder
16,027 Expert Mod 8TB
Actually a JavaScript error message, so moved to the JavaScript forum.

getElementById is a document method, not a window one, so should be document.getElementById().
Jul 16 '08 #5

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

Similar topics

0
by: Tim Mavers | last post by:
I am trying to use the ANTS Profiling service to profile a .NET web app (on my machine). I have XP SP2 with the Firewall turned off (my company's security policy sets this). I have talked to ANTS...
16
by: Paul S. Natanson | last post by:
What is a Null Reference error and how do I fix it? My newly installed VB.Net2003 gives me a "Microsoft Development Environment" error message box EVERY time I try to run/start ANY project -...
0
by: ruju00 | last post by:
I am getting an error in Login() method of the following class FtpConnection public class FtpConnection { public class FtpException : Exception { public FtpException(string message) :...
13
by: Challenger | last post by:
Hi I am creating a program in C++ using visual studios 2003, and for a project I am required to create a application. In this application for testing purposes I am outputing a number to show that a...
1
by: ranju | last post by:
I am trying to spawn a process (say an exe file) with different user crendentials than that of the current user. 1) Called LogonUserEx() to logon the user and recieve a handle to the token that...
2
by: getmadhu | last post by:
Hi All... Any one help me with the above weird error I have a code like below print <<"HTML"; Content-type: text/html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html...
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...
5
by: RomeoPapacy | last post by:
I'm trying to write what should be a very simple program - a system tray based menu to allow me to quickly access files in a folder (for me a bunch of disc images). Unfotunately i'm stumped near...
2
by: tridirk | last post by:
Hi; I am getting a Objceted Expected Error on my forum site. I can't find what is wrong? Line: Char: Error: Object expected Code:0 the site is My SMF Forum
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...
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
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.