Site Search:
 
Speak Korean Now!
Teach English Abroad and Get Paid to see the World!
Korean Job Discussion Forums Forum Index Korean Job Discussion Forums
"The Internet's Meeting Place for ESL/EFL Teachers from Around the World!"
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

JavaScript problems

 
Post new topic   Reply to topic    Korean Job Discussion Forums Forum Index -> Technology Forum
View previous topic :: View next topic  
Author Message
Swiss James



Joined: 26 Nov 2003
Location: Shanghai

PostPosted: Wed Apr 27, 2005 9:06 pm    Post subject: JavaScript problems Reply with quote

Soo, I've decided to sell out and get some google advertising on my site- but now that I've got it all plugged in and ready to roll, I find that Internet Explorer doesn't always display the advert box.

This troubles me.

I've always had problems with integrating other people's scripts (e.g. for comments, stats) in my site, they seem very temperamental.

Are you supposed to close the </script> tag after each function, even when you're just going to open it up again in the next line of code? Is there anything you need to be careful of when using
<!--
..
..
// End -->
tags to comment out scripts for those that can't handle them?

I've validated my code with the W3C tool
http://validator.w3.org/check?uri=http%3A%2F%2Flostseouls.com%2Fblog.php%3Fdate%3Dlatest&charset=%28detect+automatically%29&doctype=%28detect+automatically%29&ss=1 and the only errors I've got seem to be explicitly closing tags that are implicitly closed, but this is in the code that Google gave me which I'm not supposed to change.

I'm also suspicious that the site won't fly in Safari now, as I've had similar problems with this before (and can't get onto browsercam.com to find out)
Back to top
View user's profile Send private message Visit poster's website
shawner88



Joined: 01 Feb 2003

PostPosted: Thu Apr 28, 2005 6:44 am    Post subject: Reply with quote

Try removing the advertising. See if that works.
Back to top
View user's profile Send private message Visit poster's website
The King of Kwangju



Joined: 10 Feb 2003
Location: New York City

PostPosted: Thu Apr 28, 2005 1:54 pm    Post subject: Re: JavaScript problems Reply with quote

Nothing wrong with your javascript, james.

I just did a quick check in ie 5, 5.5 and 6 and the ads came up fine. What version are you having trouble with?

Its possible they didn't display once or twice because Google couldn't serve up the ads quickly enough. Weird, but possible.

Swiss James wrote:
Are you supposed to close the </script> tag after each function, even when you're just going to open it up again in the next line of code?

No. Just dump all your functions into one <script>

Swiss James wrote:

I've validated my code with the W3C tool
http://validator.w3.org/check?uri=http%3A%2F%2Flostseouls.com%2Fblog.php%3Fdate%3Dlatest&charset=%28detect+automatically%29&doctype=%28detect+automatically%29&ss=1 and the only errors I've got seem to be explicitly closing tags that are implicitly closed, but this is in the code that Google gave me which I'm not supposed to change.

What'd I tell you about that validator? It's based on the ideal, not what people are using. Google itself doesn't validate.

But if you were worried about validation, you could remove those closing tags and test your Google search again to make sure it still works (it should).
Back to top
View user's profile Send private message
Swiss James



Joined: 26 Nov 2003
Location: Shanghai

PostPosted: Thu Apr 28, 2005 4:10 pm    Post subject: Reply with quote

IE 6.0, it's very shaky, sometimes they come up, sometimes they don't.

All I'm worried about is that it'll come to the end of the month and Google will accuse me of not displaying their ads properly and take their ball home- frankly I could care less if they don't come up.

Anyway thanks for checking that King- and I see your point about that validator- strange as I thought w3.org was as close to an agreed standard that the web had.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Korean Job Discussion Forums Forum Index -> Technology Forum All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


This page is maintained by the one and only Dave Sperling.
Contact Dave's ESL Cafe
Copyright © 2018 Dave Sperling. All Rights Reserved.

Powered by phpBB © 2001, 2002 phpBB Group

TEFL International Supports Dave's ESL Cafe
TEFL Courses, TESOL Course, English Teaching Jobs - TEFL International