SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    May 2013
    Location
    Delhi
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Canvas Drawing BY mouse Help ?

    My canvas drawing app using Mouse is working on localhost . but whenever i am posting it to Wordpress website on server its not working . Here is the link for The app http://99mobileworld.com/canvas-drawing-application/

  2. #2
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    6,078
    Mentioned
    219 Post(s)
    Tagged
    12 Thread(s)
    Hi,

    You have two stray <p> tags on line 159 and 160 of your page.

    ...
    ctx.lineCap = 'round';
    ctx.strokeStyle = 'black';</p>
    <p>canvas.addEventListener('mousedown', function(e) {
    ctx.beginPath();
    ...

    Remove those and see what happens.


Tags for this Thread

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
  •