Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-15-2010, 10:09 AM   PM User | #1
paullong
New to the CF scene

 
Join Date: Nov 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
paullong is an unknown quantity at this point
Noob question, javascript apparently not running

Hi all,

I sincerely apologise for the noob question. I have search and searched for an answer but to no avail, so I hope someone on here can help.

I'm trying to get a fisheye verticle menu working. I've found somethin which fits the requirement here: http://zendold.lojcomm.com.br/ifisheye/ and tried to make it work. It just doesn't.

I've tried different versions of mootools etc but I think I'm missing something really stupidky simple. I'd really appreciate it if someone could have a look at my temp page (http://www.parkerbs.com/home1.htm) and point me in the right direction.

Many thanks in advance.

Paul
paullong is offline   Reply With Quote
Old 11-15-2010, 10:28 AM   PM User | #2
Dormilich
Senior Coder

 
Dormilich's Avatar
 
Join Date: Jan 2010
Location: Behind the Wall
Posts: 2,882
Thanks: 9
Thanked 291 Times in 287 Posts
Dormilich is on a distinguished road
there is an error in your script: "Class is not defined", seems like you’re missing a function definition.
__________________
please post your code wrapped in [CODE] [/CODE] tags
Dormilich is offline   Reply With Quote
Old 11-15-2010, 10:59 AM   PM User | #3
paullong
New to the CF scene

 
Join Date: Nov 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
paullong is an unknown quantity at this point
Hi Dormilich,

Thanks so much for replying. I had just copied the code from the site, put it in a library and called it from the HTML, so I assumed it should work.

http://www.parkerbs.com/home2.htm is another one that I got from a different website and can't get to work, which is why I thought it must be me.

If you think I'm doing my bit correctly but the scripts are to blame, then thanks for your help, I'll go back to the authors.
paullong is offline   Reply With Quote
Old 11-15-2010, 10:50 PM   PM User | #4
marilynn.fowler
Regular Coder

 
Join Date: Aug 2002
Location: San Francisco
Posts: 442
Thanks: 19
Thanked 15 Times in 15 Posts
marilynn.fowler is an unknown quantity at this point
I notice that the load_app function is inside a script tag that doesn't say type="text/javascript." That might be a factor. I would suggest putting all of your internal scripts inside of one script tag; I would also suggest putting all of your internal styles inside of one style tag. It makes it a bit easier to read and debug. You may also want to look at the original pages and make sure you grabbed all of the javascript files and have and organize them in the same manner as the originating site; they may be looking for files in a specific place and not finding them, which would result in an error.
__________________
Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read. Groucho Marx
marilynn.fowler is offline   Reply With Quote
Old 11-15-2010, 11:02 PM   PM User | #5
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,249
Thanks: 59
Thanked 3,999 Times in 3,968 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
Quote:
Originally Posted by marilynn.fowler View Post
I notice that the load_app function is inside a script tag that doesn't say type="text/javascript." That might be a factor.
Theoretically, maybe.

In practice, almost surely not.

There are thousands, if not millions, of old HTML pages out there on the net that were created long before "text/javascript" was used, let alone became a standard. The browser that stops recognizing that <script> is a common shorthand for <script type="text/javascript"> is the one that people will stop using, because all their web browsing stops working.

Sad, but true, that all these standards just aren't enforceable.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote
Old 11-16-2010, 01:52 PM   PM User | #6
paullong
New to the CF scene

 
Join Date: Nov 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
paullong is an unknown quantity at this point
Thanks for your help. The author of the script i had been using got in touch and sent me a working version.

Appreciate the assistance!

Paul
paullong is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 08:10 AM.


Advertisement
Log in to turn off these ads.