Click to See Complete Forum and Search --> : Javascript errors on phpbuilder


richie
10-06-2004, 07:53 PM
phpbuilder.com has a nasty javascript error. The site seems to work fine with the error though.

I have my browser set to Display a notification about every script error. This setting in IE is under Tools/Internet options/advanced/browsing.

Each time I transition to a new page on phpbuilder, I have to close about 10 script error prompts before I can view the page.

piersk
10-07-2004, 12:56 PM
Turn off notification??

I haven't noticed any of the little yellow triangles that you get in the bottom left hand corner of IE when surfing the board...

richie
10-07-2004, 05:21 PM
I know I can turn off notification each time I visit phpbuilder. But I just thought I'd bring your attention to the problem anyway. As a developer, I prefer to be warned of script errors when they occur. That's the reason I have it on in the first place.

You are correct about the yellow warning sign you get on javascript errors. I don't get it either. But, I do get a ton of those pop ups each time I try to access a page.

The problem is certainly with the code on phpbuilder. You can either try to find the source of the problem and fix it, or you can choose the easy way out and ignore it. It's up to you.

Here is the exact error:

A runtime error has occured.
Do you wish to debug?

Line 87

Error: object expected.

LordShryku
10-08-2004, 05:44 PM
More specifically, the function OAS_RICH is not defined.

<SCRIPT LANGUAGE=JavaScript>
<!--
document.write('');
function OAS_AD(pos) {
if (OAS_version >= 11)
OAS_RICH(pos); <===== Here
else
OAS_NORMAL(pos);
}
//-->
</SCRIPT>

jstarkey
10-11-2004, 03:09 PM
I'm told that this is because of ad blocking software not playing nice with the JS.

stolzyboy
10-12-2004, 02:32 PM
i am not noticing any such errors

/me shrugs

goldbug
05-13-2005, 06:31 PM
Originally posted by jstarkey
I'm told that this is because of ad blocking software not playing nice with the JS.
This is correct. The file in question (at least from my end) is: http://mjxads.internet.com/RealMedia/ads/adstream_mjx.ads/intm/linux/www.phpbuilder.com/board/index/1014094667@468x60-1,468x60-2,125x125-1,sitetext-1,cp1,cp2,cp3,cp4,cp5,cp6,cp7,cp8,cp9,cp10,cp11,cp12,cp13,flex,house_ribbon,ciu?
since the URL contains the word /ads/ a lot of adblocking filters will destroy it.

I was hoping to be able to use GreaseMonkey to fix it... but GM fires after the page is parsed, so no dice there :(