CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   DOM and JSON scripting (http://www.codingforums.com/forumdisplay.php?f=15)
-   -   Problem with implementing JS into my website (http://www.codingforums.com/showthread.php?t=274792)

Macimoar 09-30-2012 09:38 PM

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

AndrewGSW 09-30-2012 09:59 PM

I presume it's tumblr that is doing this, perhaps deliberately to break your script. But I can't, personally, help you with tumblr.

Macimoar 09-30-2012 10:17 PM

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.

Macimoar 09-30-2012 10:26 PM

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.


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

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.