How can I monitor users clicking on links via Javascript?

I've been tasked with determining if it's possible to detect link clicks with javascript. I'm aware of the onclick attribute, which gets me part of the way there. Other then that, I don't know...

When serving JavaScript files, is it better to use the application/javascript or application/x-javascript

The whole question fits in the title. And to add some context: I'm not asking what is the best according to what the specs are saying, but rather what works the best given the mix of browsers...

Best way to use Google's hosted jQuery, but fall back to my hosted library on Google fail

What would be a good way to attempt to load the hosted jQuery at Google (or other Google hosted libs), but load my copy of jQuery if the Google attempt fails? I'm not saying Google is flaky. There...

Google AJAX Libraries CDN for jQuery

I have a page where I need SWFObject, jQuery and Google Maps API. I thought that I could use the benefits of using: <script type="text/javascript"...

Facebook Can't scrape my Joomla website even when i added OG:tags

I have all the OG tags specified but Facebook still can't read my website. What's wrong? Here is my HEAD section <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" ...

Storing Image Data for offline web application (client-side storage database)

I have an offline web application using appcaching. I need to provide it about 10MB - 20MB of data that it will save (client-side) consisting mainly of PNG image files. The operation is as...

How to call Google Geocoding service from C# code

I have one class library in C#. From there I have to call Google service & get latitude & longitude. I know how to do it using AJAX on page, but I want to call Google Geocoding service directly...

Ajax calls made from Google Spreadsheet Custom Function

Has anyone ever tried to write a script inside a Google Spreadsheet to make an ajax call to a website? I want to make it so that the spreadsheet updates itself from the website. But after just...

Retrieve OData using AJAX in json format, with authentication

I need to convert this OData retrieval (using SAPUI5 libs): var url = "http://someurl/SERVICE"; var username = "username"; var password = "password"; var oModel = new...

Firefox Ajax post web console summary says 'undefined'

I use Ajax extensively in my JavaScript code. Today I added an Ajax call to a page and nothing happens. The Firefox web console shows a result of "undefined". The exact log entry...

What is the URL for three.js to include it online?

I am trying to make a javascript application in google app engine using three.js but I am not getting the URL to include it online in my document. I dont want to upload the whole three.js...

How to intercept all AJAX requests made by different JS libraries

I am building a web app with different JS libraries (AngularJS, OpenLayers,...) and need a way to intercept all AJAX responses to be able, in case the logged user session expired (response gets...

Switching Google reCaptcha Version 1 from 2

I have successfully designed and implemented Google reCaptcha Version 2 but now my Manager wants that to be of version 1 with numbers to be entered and validated. Is there a way to switch from...

Error:"invalid_grant", Description:"Token has been revoked.", Uri:""

I have an MVC app, like explained here: https://developers.google.com/api-client-library/dotnet/guide/aaa_oauth#web-applications-aspnet-mvc From Javascript I make AJAX calls to some Action that...

Drawing features in OpenLayers 2

I have created a code in Openlayers 2 for selecting the various Google Maps themes (sat, road, terraing etc). On top of that i have input some custom features from Geoserver. I want to add some...

Google Cloud Storage ignoring access control origin headers

I'm trying to get files via AJAX from google cloud storage on my local host. I have done the following: Set the CORS for my bucket via gsutil: gsutil cors set cors.json gs://my-project where the...

Why Does Bootstrap Require jQuery?

I have googled this question numerous times and never found a satisfactory answer. Most answers seem only to say that "yes, Bootstrap plugins do require jQuery" or "yes, you can use BS without...

how to use javascript library in dart

I am learning package:js and the dart file, which is a dart wrapper for chart.js. I think this file is a bridge which connects dart and javascript. So, in this file, it must tell what javascript...

WordPress Ajax 400 Bad Request

I have been through 21 different posts on this site and many others on google, currently on page 13 and i'm actually about to cry. I am a junior developer and I am really struggling to get this to...

React js delete point from the path update the Polygon

I have the following map, as you should on the map I have a polygon and markers which are the main points of the polygon, below I have the main points of the polygon printed, i.e. the markers. I...

How can i load data from a spreadsheet to an html using google apps script?

I'm trying to pass information that is in my current SpreadSheet to an HTML file i have, the html was made with google app script, if someone can guide me with this it would be very helpful. I'm i...

Can't figure out how to get response JSON using remote: true in Rails

UPDATE: I discovered that the issue was a library dependency issue. I didn't have jquery-rails gem installed therefore I wasn't requiring the jquery-ujs library in my application. In short, I was...

Migrating from Google's deprecated jsapi

I have and old website that I am now managing but haven't coded myself. The developer has integrated version 1.5.1 of jQuery with the following code from google: <script type="text/javascript"...

Simple Sidebar Navigation to populate main content

First, I know this is very simple and I'm as baffled as you are that I can't figure it out on my own. I have no background in web development and need to use github pages to document a project....

How to run Python 3 function even after user has closed web browser/tab?

I am having an issue at work with a python project I am working on (I normally use PHP/Java so am lacking a bit of knowledge). Bascially I have a python program that I have built using Flask that...

How should I include cdnjs libraries in custom javascript codes in Google tag manager?

I am new to Google analytics and Google Tag Manager and currently I am confused with using external JS libraries. Any help would be appreciated. I need to use...

Uncaught TypeError: firebase.auth(...).setPersistence(...).signInWithPopup is not a function

I seem to be having an issue when trying to set the persistence of the Firebase Auth session, I have been coming back and forward, trying to google search the issue but cannot seem to find an...

Browsers do not send Kerberos authentication token on Linux

I am trying to configure Kerberos authentication for an application I develop. When opening the app from a browser (Chrome or FF), I get the 401 response from server with WWW-Authenticate:...

Enabling CORS on Google App Engine Flexible environment PHP (Laravel)

0 I am facing issues enabling CORS support for a PHP (laravel) application that is hosted using Google App Engine and the flexible environment. Every AJAX request using the axios library results...

Google map with react-google-maps API

I'm new with maps and I need to implement a route and also get the distance. I'm using react-google-maps API and I have found this way to show the map, and the route. It is the first time that I...