Javascript img "src" 401 error

Home Forums Programming Javascript img "src" 401 error

Tagged: 

This topic contains 5 replies, has 2 voices, and was last updated by Yuri Kovelenov Yuri Kovelenov 1 week, 1 day ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #14771
    Avatar
    chromebook15
    Licensee

    Hello,
    I am appending images to react to text in javascript, and the images are hosted on my site. The script uses the GET and thus a 401 error insues.

    the function in the script uses these $(“img”) and src values modally as per screenshot attachment.
    expected outcome is the last screenshot.
    code on
    http://tpcg.io/U8OUH6
    cpanel where i host the chord images does not allow write access for the images for the public. any idea how/where to host these images, or how to make them available or modify the JS code?
    thanx

    Attachments:
    You must be logged in to view attached files.
    #14775
    Yuri Kovelenov
    Yuri Kovelenov
    Developer

    Hi,

    if you just put the image URL in the browser address bar, will it load?

    Founder & CEO at Soft8Soft
    LinkedIn | FB | Twitter | VK | 新浪微博

    #14777
    Avatar
    chromebook15
    Licensee
    #14778
    Yuri Kovelenov
    Yuri Kovelenov
    Developer

    I think this resource is password protected:

    Attachments:
    You must be logged in to view attached files.

    Founder & CEO at Soft8Soft
    LinkedIn | FB | Twitter | VK | 新浪微博

    #14783
    Avatar
    chromebook15
    Licensee

    so,then how can i attach those png files to the site so that they can be manipulated? do i have to upload the images in some other way?
    how do i make the resource publicly available and modifyable?
    within the site i cannot set the permissions to “modify” only read.

    #14788
    Yuri Kovelenov
    Yuri Kovelenov
    Developer

    you can probably leverage our WordPress plugin for uploading and retrieving images. Check out our Custom Image example.

    Founder & CEO at Soft8Soft
    LinkedIn | FB | Twitter | VK | 新浪微博

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.