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 05-19-2011, 06:04 PM   PM User | #1
hassonmike
New to the CF scene

 
Join Date: May 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
hassonmike is an unknown quantity at this point
Exclamation javascript converter errors

Hello, I am having trouble with a javascript length converter that I got from
http://www.javascriptkit.com/script/...onverter.shtml

It is working fine in dreamweaver, but when it goes live on my site, the calculations do nothing. I can see everything in the drop down menus, but when i click the "to" button, nothing happens. I got the following errors from chrome when activating any of the calculation functions. I'm wondering if anyone here can help me decipher these


1. Uncaught TypeError: Cannot read property 'from_unit' of undefined
1. convert_unitDefault.aspx:459
2. (anonymous function)Default.aspx:482
3. onchangeDefault.aspx:483

1. Default.aspx:459Uncaught TypeError: Cannot read property 'from_unit' of undefined
1. convert_unitDefault.aspx:459
2. (anonymous function)Default.aspx:496
3. onchangeDefault.aspx:497

1. Default.aspx:459Uncaught TypeError: Cannot read property 'from_unit' of undefined
1. convert_unitDefault.aspx:459
2. (anonymous function)Default.aspx:516
3. onclickDefault.aspx:517
hassonmike is offline   Reply With Quote
Old 05-19-2011, 07:13 PM   PM User | #2
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,032
Thanks: 197
Thanked 2,410 Times in 2,388 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
The script works fine for me, so I have the idea that you have not copied it correctly. Have you placed it in the correct diectory?

All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.
__________________

All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.
Philip M is offline   Reply With Quote
Old 05-19-2011, 07:57 PM   PM User | #3
hassonmike
New to the CF scene

 
Join Date: May 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
hassonmike is an unknown quantity at this point
I have placed the code into an aspx page that is inserted into a sidebar. You can see it at http://trickconcepts.com on the middle of the right side.

All of the code specified has been inserted into the aspx section, referenced to as [[ConLib:custom/ShipLengthCalc]]

I have added head and body tags to this aspx page as to follow the instructions for pasting the code, but it does not function, again it functions fine when im testing it in dreamweaver, but once it goes live, it does nothing. I have no idea what might cause this
hassonmike is offline   Reply With Quote
Old 05-20-2011, 08:05 PM   PM User | #4
hassonmike
New to the CF scene

 
Join Date: May 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
hassonmike is an unknown quantity at this point
Further testing has shown that this code seems to be keeping my users from adding items to their carts in IE, so I have taken it back down
hassonmike is offline   Reply With Quote
Reply

Bookmarks

Tags
calculator, conversion, javascript, tool

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 09:40 AM.


Advertisement
Log in to turn off these ads.