Note that there are some explanatory texts on larger screens.

plurals
  1. PO"SecurityError: The operation is insecure" when try to set img src to base64 value
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COWhat kind of element has a `value` and a `src`? Your variable names suggest you are looping input elements? If so... the `src` attribute doesn't exist. I don't think that is throwing the security error, but it would certainly cause this code to fail to display images. You want an `img` tag for that, which doesn't support the `value` attribute. All things considered, it isn't clear what you're trying to do here.
      singulars
    2. COwell this is a form that hold a image in `base64` this `base64` is stored in `src` attribute of a `img` tag, what I'm try to do is to store this value in some temporary var and then retrieve in another img
      singulars
    3. COI understand that. But, reading your code, you are using `$('#' + key).val(value);` which would not do anything to an image tag -- but it would set the value of a form input. At any rate, can you set up an example of this on jsFiddle? This is a strange error, and superficially it seems like you're missing some important detail. Try to set up a reproduction of the error on jsfiddle.net and add the link to your question. I'll check back and see if I can figure something out, if someone else hasn't yet.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload