Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Why isn't the JavaScript Loading? Newb Question
Old 06-21-2010, 07:55 PM Why isn't the JavaScript Loading? Newb Question
Skilled Talker

Posts: 56
Trades: 0
I have a few scripts on my page and i haven't coded javascript for a while and i think i forgot something really important. Anyway my page has 2 scripts that i am focusing on. the resolution script which will hide the right nav thing if your screen is smaller then 1024 by 768 and also the browser detect script. They are simple scripts one just posts a alert but for some reason they aren't loading with the page i linked above. In the body tag it has onload for both of the functions but they dont load. when on the page using javascript: browser() opens the browser function but it doesn't load with the page. What am i forgetting? Thanks in advance

Heres the links again:
Main Page
Resolution Script
Browser Detect Script
__________________

Please login or register to view this content. Registration is FREE
Free Online Games
pcmaster160 is offline
Reply With Quote
View Public Profile Visit pcmaster160's homepage!
 
 
Register now for full access!
Old 06-22-2010, 02:47 PM Re: Why isn't the JavaScript Loading? Newb Question
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Is it 1998 already??


syntax errors

Quote:
Error: syntax error
Source File: http://futuregamespc.com/demo/browserdetect.js
Line: 3, Column: 15
Source Code:
alert(+browser+);
Quote:
Error: invalid XML attribute value
Source File: http://futuregamespc.com/demo/all_games.html
Line: 3, Column: 10
Source Code:
<div id=
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-22-2010, 02:49 PM Re: Why isn't the JavaScript Loading? Newb Question
Skilled Talker

Posts: 56
Trades: 0
just figured it out i was missing a " and my page has like 500 (edit just checked and its actually 1267) errors because frontpage screwed it up so badly and i haven't had time to fix it yet.
__________________

Please login or register to view this content. Registration is FREE
Free Online Games

Last edited by pcmaster160; 06-22-2010 at 02:51 PM.. Reason: edited number of errors
pcmaster160 is offline
Reply With Quote
View Public Profile Visit pcmaster160's homepage!
 
Reply     « Reply to Why isn't the JavaScript Loading? Newb Question
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.18466 seconds with 12 queries