Go Back   CodingForums.com > :: Client side development > JavaScript programming > DOM and JSON scripting

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 09-30-2012, 09:38 PM   PM User | #1
Macimoar
New to the CF scene

 
Join Date: Sep 2012
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Macimoar is an unknown quantity at this point
Problem with implementing JS into my website

OK, so I have a profile for a website and I recently wanted to add a JavaScript based temperature converter (not really related to the website or my profile, just for fun) and I know my code is right, because it works in other sites. but when I open my profile, my code for calling the JS document appears in the browser (tested on Safari and Firefox). When I view the source from the browser, I find that this "<x> has been added to my <script> tags. Here is a link to the profile page so you can see what the problem is: My Profile. I have tried many different doc type declarations in troubleshooting, so that shouldn't be the problem. Any help is appreciated.

SOLVED: I didn't realize that the website did not allow the implementation of JavaScript. It was therefore impossible to have the code work

Last edited by Macimoar; 10-01-2012 at 12:35 AM.. Reason: Solved
Macimoar is offline   Reply With Quote
Old 09-30-2012, 09:59 PM   PM User | #2
AndrewGSW
Senior Coder

 
Join Date: Apr 2011
Location: London, England
Posts: 2,120
Thanks: 15
Thanked 354 Times in 353 Posts
AndrewGSW will become famous soon enough
I presume it's tumblr that is doing this, perhaps deliberately to break your script. But I can't, personally, help you with tumblr.
__________________
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
Validate your HTML and CSS
AndrewGSW is offline   Reply With Quote
Users who have thanked AndrewGSW for this post:
Macimoar (10-01-2012)
Old 09-30-2012, 10:17 PM   PM User | #3
Macimoar
New to the CF scene

 
Join Date: Sep 2012
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Macimoar is an unknown quantity at this point
I also tried dropbox, with the same result. This should work also, since I'm using the public folder and coping the public address. I think it might also be important to note that my css file works fine, it's just the script tag.

Last edited by Macimoar; 09-30-2012 at 10:19 PM..
Macimoar is offline   Reply With Quote
Old 09-30-2012, 10:26 PM   PM User | #4
Macimoar
New to the CF scene

 
Join Date: Sep 2012
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Macimoar is an unknown quantity at this point
UPDATE: I copied my code into codecademy.com (programming website that I use) and the code worked fine, it does exactly what it's supposed to do. Not really sure why that happens.
Macimoar is offline   Reply With Quote
Reply

Bookmarks

Tags
<x>, html, javascript

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 06:58 PM.


Advertisement
Log in to turn off these ads.