Chrome: Uncaught SyntaxError: Unexpected end of input

This particular error is one annoying fact about v8. In most cases your JavaScript is broken in some way. For example missing a } or something like that. Example given, this will yield “Unexpected end of input” too: But the root cause of the problems seems to be that the requested JSON url has a Content-Type of text/html which Chrome apparently tries … Read more

require is not defined? Node.js

In the terminal, you are running the node application and it is running your script. That is a very different execution environment than directly running your script in the browser. While the Javascript language is largely the same (both V8 if you’re running the Chrome browser), the rest of the execution environment such as libraries … Read more

Chrome sendrequest error: TypeError: Converting circular structure to JSON

It means that the object you pass in the request (I guess it is pagedoc) has a circular reference, something like: JSON.stringify cannot convert structures like this. N.B.: This would be the case with DOM nodes, which have circular references, even if they are not attached to the DOM tree. Each node has an ownerDocument which refers to document in most … Read more

Google Chrome forcing download of “f.txt” file

After updating to Chrome 40.0.2214.111, variably when I visit certain Google related sites (like http://youtube.com and get presented with an ad before the video), the browser downloads a file named f.txt. I do not have any adblock plugins installed. f.txt contains a few lines of JavaScript…starting with: In looking up the issue on Google, others … Read more

NET::ERR_CERT_REVOKED in Chrome, when the certificate is not actually revoked

Not sure what it all means, but the answer is there: and Google revoked a Symantec certificate from Google products, but they have suspended the revocation following the type of issues you’re describing (which I also experienced). Quoting the Chromium ticket: First, the good news is the change has been temporarily reverted, and you should … Read more

Hide scroll bar, but while still being able to scroll

Just a test which is working fine. Working Fiddle JavaScript: Since the scrollbar width differs in different browsers, it is better to handle it with JavaScript. If you do Element.offsetWidth – Element.clientWidth, the exact scrollbar width will show up. JavaScript Working Fiddle Or Using Position: absolute, Working Fiddle JavaScript Working Fiddle Information: Based on this … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)