homepage Welcome to WebmasterWorld Guest from 54.196.206.80
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Website
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Object expected error
sandman357




msg:1482692
 3:15 am on Jan 5, 2005 (gmt 0)

Hi,
I am a newbie and know just enough to really mess things up. I am using front page to put together my second website ever. I am getting an error icon on every page. When I click on it states "object Expected" then it lists a line number.
does any one have any advice? Remember that I know next to nothing about web development.
If you want you can check it out at www.sandysonline.com
Thanks.

 

MikeFoster




msg:1482693
 6:53 am on Jan 5, 2005 (gmt 0)

On line 80 a javascript file is referenced. That file does not exist at the given URL.

A quick fix would be to delete (or comment-out) lines 80 to 84.

dreamcatcher




msg:1482694
 9:37 am on Jan 5, 2005 (gmt 0)

The problematic line says:

displaycounter("sandman357count","#FFFFFF");

Check your function to see if anything is missing. Maybe a apostrophe is in the wrong place or is missing?

rocknbil




msg:1482695
 6:50 pm on Jan 5, 2005 (gmt 0)

Sandman your url is probably going to be deleted, see TOS, but here is the problem (I think:)

Your site is on "www.yoursite.com".

<script src="http://www.some_free_site.com/swfcount/count.js" language=Javascript>
</script>
<script language=Javascript>
displaycounter("sandman357count","#FFFFFF");
</script>

Note how the SOURCE of your Javascript counter is a site external to yours. If you paste that "your_free_site.com . . . " URL directly into your address bar, you get Page Not Found.

I'm guessing the function displaycounter() is contained in the count.js. Which you can't get to. Hence, "Object not found."

Someday it may come back. OR maybe they moved it permanently. The bottom line is you should never ever rely on an external source or site for data that's going to throw an error or munge up your site. Install a local solution.

IMO: Page counters are "stupid web tricks" anyway. If you want site visit stats, tell your ISP to enable them, they are much more useful. If your ISP doesn't offer stats, find a new ISP.

sandman357




msg:1482696
 7:31 pm on Jan 5, 2005 (gmt 0)

Thanks everyone. You are right. I did about a year ago build site that I used an external counter for. I modified the template I made for that site to build this one totally forgetting about the external counter. I went to the source code and deleted the script from all pages.
Again, thanks. I am sorry to say I won't be of much help to you all, but I will be back often to sponge up as much knowledge as I can.
Have a good day!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved