SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict ketting00's Avatar
    Join Date
    Jul 2011
    Posts
    328
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Why external js file doen't work with HTML5 canvas

    Hi guys,

    Can anybody give me an idea why the external js file isn't working with HTML5 canvas? It has to be on the same file and I don't want to expose my codes to the public?

    In this case, I'm sure my path to .js files are correct.

    Thank for your help in advance

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by ketting00 View Post
    Can anybody give me an idea why the external js file isn't working with HTML5 canvas? It has to be on the same file and I don't want to expose my codes to the public?
    You won't be able to prevent your code from being exposed to the public. That come as a part of the territory when you perform scripting on a publically accessible web page.

    Quote Originally Posted by ketting00 View Post
    In this case, I'm sure my path to .js files are correct.
    Can you link us to a test page that exhibits the problem?
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  3. #3
    SitePoint Addict ketting00's Avatar
    Join Date
    Jul 2011
    Posts
    328
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Thanks Paul, for your help.

    I'm unable to provide you the link because I've just tested it locally on my machine.


Bookmarks

Posting Permissions

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