What does "WXBUnit undefined" mean?

F

Flip

I'm seeing one of my websites giving me an error message on the page after
it loads up as "WXBUnit Undefined" What does that mean? The formatting of
the site is horrible! I'm not sure what is going on with it.

Thanks.
 
K

Kevin Spencer

It means that some reference to an object, named "WXBUnit" is undefined,
null, Nothing.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 
F

Flip

It means that some reference to an object, named "WXBUnit" is undefined,
null, Nothing.
hhhmmm when I wrote this, I originally thought I had been hacked into. Who
consciously creates a var name WXBUnit? I'm sorry, I'm still getting used
to leaving my w2k3server box open to the public like this. I used to run
RedHat Linux and I didn't worry about it. Before that, I had NT4.0 and it
was hacked into three times in two years. :< So I'm a bit nervous and
watching for any odd signs something is wrong.

I myself, don't have anything like that on the page, HOWEVER, I do have a
reference to TheWeatherNetwork and a JavaScript reference to their site. I
think that might be causing the problem! I know, I know, it's a simple
problem that's pretty self-evident, but in this case, it's not a simple
trivial matter IMHO as I didn't code up an object (in C#, html or JS), but
it's obviously being referenced somehow, as you pointed out.

Yup, I think I confirmed it. Try this out.

<html>
<body>
testhing
<script language=javascript>var city =
'ottawa_on';</script>
<script language=javascript
src='http://www.theweathernetwork.com/weatherbutton/test.js'></script>


</body>
</html>

It will generate the same JS error in IE. Thanks for your help pointing me
in the right direction! :>
 
K

Kevin Spencer

Hi Flip,

It does seem like "WXBUnit" would logically be referring to a Weather
entity, as "Wx" is a typical abbreviation for "Weather." I'm not sure what
your "referece to TheWeatherNetwork" is, but it sounds like a Web Reference
(Web Service). That wouldn't have anything to do with JavaScript, though. I
was able to run the JavaScript you posted without errors, and it does show a
weather forecast for Ottawa, Ontario on my computer. Perhaps you don't need
a Web Reference? You would only need a Web Reference for a server-side
Control.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 
F

Flip

Howdy Kevin. Speaking of weather, we're having one heck of a snow fall
today! :>

A pictures worth a thousand words? :> This is a live webcam of our
parliament buildings. DOH!
http://www.parliamenthill.gc.ca/text/hillcam_e.html


Odd, but last night I tried it and it was back in working order! DOH! Your
posting was at midnight, which was after I found out it was working (after I
removed the code from my development box and was about to copy it to the web
server :>).
It does seem like "WXBUnit" would logically be referring to a Weather
entity, as "Wx" is a typical abbreviation for "Weather." I'm not sure what
I didn't know Wx was an abbreviation for weather, so that makes sense then.
a Web Reference? You would only need a Web Reference for a server-side
I was hoping not to need a reference. But I am asking them for a textual
reference to the weather as well as an image. I help out with a disability
website (http://www.ottawamobility.ca/) and I'm reworking the site (it
sorely needs it :<) and images need to have alt text for visuall impaired
people to use their reader software for img alt tags but their image doesn't
have that at the moment. So I am hoping they expose a web service to do
this soon! :>

Thanks again for your help, you pointed me in the right direction and showed
me my server wasn't being hacked into! :> Thank you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top