Skip to content Skip to sidebar Skip to footer

Obtaining Base64_decode($artwork) From A Web Page In A Div And File In Javascript And Comparing Them

I am trying to compare what is on the server with what is on the webpage by trying to figure out the correct coding for obtaining base64_decode($artwork) from a webpage Please not

Solution 1:

I am not sure that this will fix the entire issue, but when I get undefined in JS, I try to check if I really have access to the parent element first.

If the code you have pasted is the actual code you use, then you have an error on this line:

var base64file2 = $('outerimg').$('#np_track_artwork').src.value;

According to your code it should be:

var base64file2 = $('#outer_img').$('#np_track_artwork').src.value;

note the difference in how you get the outer_img from jQuery.

Post a Comment for "Obtaining Base64_decode($artwork) From A Web Page In A Div And File In Javascript And Comparing Them"