Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Sep 2012
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    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

  • #2
    Senior Coder
    Join Date
    Apr 2011
    Location
    London, England
    Posts
    2,120
    Thanks
    15
    Thanked 354 Times in 353 Posts
    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

  • Users who have thanked AndrewGSW for this post:

    Macimoar (10-01-2012)

  • #3
    New to the CF scene
    Join Date
    Sep 2012
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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.

  • #4
    New to the CF scene
    Join Date
    Sep 2012
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •