Uncaught TypeError: Cannot read property 'replace' of undefined
Very useful project. I tried to use it for my Google Scholar profile, but I am getting the following error
Uncaught TypeError: Cannot read property 'replace' of undefined at Object.success (scholar.min.js:8) at i (jquery-2.2.0.min.js:2) at Object.fireWith [as resolveWith] (jquery-2.2.0.min.js:2) at z (jquery-2.2.0.min.js:4) at HTMLScriptElement.c (jquery-2.2.0.min.js:4) at HTMLScriptElement.dispatch (jquery-2.2.0.min.js:3) at HTMLScriptElement.r.handle (jquery-2.2.0.min.js:3)
I used the Ajax Cross Origin JQuery Plugin with a local PHP proxy and everything works great!
Live demo Here is the updated scholar.js I also added some code to get to the total number of citations, and h-index
thanks @tsantalis , your fix works like a charm for me