JavaScript is a dialect of the standardized ECMAScript programming language, primarily used for scripting web-pages. Use this tag for questions regarding ECMAScript and its dialects/ implementations: JavaScript, JScript, etc., excluding ActionScript.

learn more… | top users | synonyms (2)

0
votes
0answers
8 views

Is this a valid approach to Responsive Image Loading? [on hold]

I don't want to hard-code media queries, column widths, and/or breakpoints into my HTML because these values vary widely across my website designs. So I've devised what I hope is a valid approach to ...
0
votes
0answers
3 views

Is there a way to view the hierarchical structure of javascript files while debugging (F12) in Firefox? [migrated]

I'm using Firefox 29, and when I open up the debugger (F12 for web console)->Debugger Tab, I get a list of sources at the bottom left of the web console, but they're not in any particular order, and ...
1
vote
1answer
16 views

Google pre-rendering causing double and triple events [duplicate]

Is it possible to detect google chrome and firefox prerendering on the server side, or in .htaccess, and defer the prerendering for the purpose of monitoring traffic and website events, or do I need ...
-2
votes
0answers
16 views

Making STL viewer to render a STL file automatically [closed]

I wrote a STL viewer which will be loaded in browser and we should upload a STL file manually by clicking a button and inputting a STL file. But I don't want that to happen. I want STL viewer to ...
0
votes
3answers
20 views

How to SEO optimise Ajax/Json loaded images?

I am using Galleria.io on a website to display a gallery of images. In the database, the images have a title and description to properly explain what the image is. I load the images into galleria ...
0
votes
0answers
7 views

How to get Google to index a dynamic title in an Angular.js app [migrated]

Google is indexing my Angular.js app's content just fine, i.e. it executes the JS, XHRs, the whole deal, but for some reason the title is not indexed properly and remains the static HTML fallback ...
1
vote
2answers
29 views

Redirect to an affiliate using PHP or JavaScript redirect?

I was asked to introduce a unified self hosted URL-Shortener/Forwarder/Tracking Service for an website that earns money from affiliates. One example I found was one of the bigger german sites for ...
1
vote
2answers
142 views

403 Error Fetching Image with JS

I've read all the 403-related questions here and elsewhere and I can't find an answer to this question: When I try to get a particular image on a remote domain via JavaScript I get a 403 error. But ...
1
vote
1answer
13 views

Does Googlebot share geo-location information to better crawl geo-aware websites?

I'm developing a website that allows users to share their location via JavaScript. Based on that location, either the content of the current page will change, or it will redirect a user to a page with ...
1
vote
2answers
23 views

Global UTF-encoding, the right way

I'm curious, as to what is the right way to have UTF-8 encoding on all web files All my files (incl. CSS and JS) are made and saved in UTF-8 encoding In PHP, I set the char-set on top of the main ...
2
votes
0answers
21 views

Store a formula in a table and use the formula in a javascript/PHP function [closed]

I have a MySql database where part of it handles instrument's depth of water. Each instrument has its own formula of calculation how depth the water when the operator collect the reading I stored the ...
1
vote
3answers
103 views

Is doing A/B tests using site redirection a bad practice?

I'm developing hotels websites here in Brazil. When the site is done, we do an A/B test with the old version to measure conversion and show to the hotel owner how good our site is. Due to the fact ...
1
vote
0answers
72 views

What could keep a javascript from loading properly on a page? [closed]

We have a vendor that switched our files over to a new server. We had a carousel on our homepage that was using javascript saved on the vendor server. After the move the carousel javascript won't ...
1
vote
0answers
125 views

Why is my Custom HTML tag not fired in Google Webmaster Tools

I have a Custom HTML tag in Google Webmaster tools that is actually very simple. It consists of the following code (a GTM Macro): {{html generator}} This tag is only fired on the Thank-you page on ...
10
votes
2answers
268 views

lazy loading images and effects on SEO

We are using the following technique to lazy load images in our site: For all images we put in the src attribute a url for a default img (i.e. a loader) and put the actual image url in the data-src ...
10
votes
7answers
3k views

Is inline JavaScript good or bad?

I've currently switched from WordPress to Yii framework and an external developer is rebuilding my site. One thing I notice is that each time he invokes AJAX / jQuery the Yii way, it embeds inserts ...
0
votes
1answer
37 views

How does licensing affect my website?

I like to use prebuilt CSS/JS such as Foundation and PureCSS and I'm curious as to how I should go about displaying the licensing information, as well as how the license will affect the code that I ...
0
votes
0answers
14 views

How to clean PmWiki from JS:Includer-AWG and protect my site from future infections?

I'm hosting a site for an NGO for several years now. The site seems to be based on a PmWiki backend. I don't know much details because I'm just hosting the site and I'm not the guy who set it up. I ...
0
votes
0answers
32 views

How to inspect code in case of Arabic language?

In case of English, I am able to view by inspect element directly. I want to do the same for Arabic. Using body{direction:rtl} only flips some views but it does not apply body.rtl specific CSS ...
1
vote
1answer
52 views

How should I upload videos to Amazon S3?

I have a project which is basically a website like YouTube. I am hosting my videos with Amazon S3. I am confused as to whether I should upload videos (200mb+) by a PHP script or by browser-based ...
0
votes
1answer
59 views

How to add custom CSS for Addthis and validate on W3C validator?

I have Addthis code on the very bottom of the page HTML code, and then, after it I have CSS file with some custom decorations of Addthis widget. Everything looks like this: <script ...
0
votes
2answers
44 views

Dynamically load CSS

I'm using LESS for creating CSS and I'm considering using something like grunt-render on the server side in order to only load the CSS / JS that is needed for that page. My goal is to reduce overhead ...
1
vote
0answers
20 views

line monitoring of phonograms (songs) of radio [closed]

I need to create a monitoring system of phonograms (songs) of radio and television online through streaming so on, but my team and know the way to develop this monitoring system, I know there ...
2
votes
1answer
168 views

AngularJS SEO for static webpages (S3 CDN)

I've been looking into ways to improve SEO for angularJS apps that are hosted on a CDN like Amazon S3 (i.e. simple storage with no backend). Most of the solutions out there, PhantomJS, prerender.io, ...
0
votes
2answers
76 views

Will i18next affect SEO? What about screen readers?

I'm considering using i18next for translating text. But then it suddenly struck me; If labels / text is retrieved through javascript, won't that affect SEO? And what about screen readers for visual ...
0
votes
1answer
34 views

Is linked text searchable by crawlers?

I recently created a simple website for a web-app I made. The site and the app are both mobile oriented, so there is a limited amount of room for adding text content (I designed the interface to avoid ...
1
vote
1answer
72 views

Could too many HTTP requests using AJAX result in browser crashes?

We are running an ASP.NET web application, and recently we received a lot of crash reports from users. It sometimes crashes the Chrome browser, and sometimes it loads indefinitely. This is how our ...
2
votes
1answer
221 views

How does CloudFlare's Rocket Loader actually work (and how can a developer ensure compatibility)?

CloudFlare has quite a ground-breaking technology called Rocket Loader (both on free and paid accounts). But how does it actually work? They have a couple of pages that describe the technology, but ...
1
vote
2answers
49 views

Do spam bots load the DOM?

I have an issue where a form on my site is getting spammed. The form is actually a copy paste job from a CRM, so I cannot access any of the server side script to make a good human checker. In the ...
2
votes
1answer
47 views

JavaScript conditional “builds”

I'm working on a piece of JavaScript code that searches its host page for references from a certain source and when hovered, shows the definition/referenced text in a tooltip (something like Google ...
1
vote
0answers
88 views

Google analytics in E-commerce iframe not tracking source

I have a ticket booking system in an iframe. I am tracking sales but the source of the sales is not being recorded. I'm trying to shed some light on why this might be. The code on the parent page is ...
1
vote
0answers
30 views

Can a webpage dial a traditional phone land-line? [closed]

I am working a website for a sales team and I would like to know if there is a way to dial a traditional telephone land-line from a webpage using JavaScript or a plugin in conjunction with a piece of ...
0
votes
0answers
18 views

Discrepancy in Google Analytics multiple accounts

I am reporting my traffic to 2 different Google Analytics accounts. Using Universal Analytics, I am doing something like: ga('create', 'UA-XXXX', 'auto'); ga('send', 'pageview'); ga('create', ...
0
votes
0answers
14 views

Will auto refresh burdens my web app?

I am a self learner and I now I am trying Alfresco share Community Edition. It has a discussion site where user can ask questions. The problem here is alfresco does not provide auto refresh out of the ...
1
vote
1answer
15 views

how to send and display data from one domain to another? [closed]

I have my portal on asp.net, my friend have on php. He wants to me to return text data from my database by sending parameter and wants to display it on his portal. I have given him url say ...
0
votes
1answer
44 views

Declaring variables using single or multiple var statements. Performance wise [closed]

Someone once told me that it's better for Javascript performance to use one var statement rather then multiple. I.e. // Version A. Allegedly Faster var a = 1, b = 2, c = 3; // Version B. ...
2
votes
2answers
114 views

Is changing HTML with JavaScript bad for SEO?

Building web apps I don't have to worry so much about SEO for back end things so dynamically changing the HTML isn't an issue. I am using backbone.js with a front end site I'm building and the site ...
3
votes
2answers
81 views

Can Google index pages that use framesets generated by javascript (document.write)?

I was tasked to check on why Google can't seem to index a client site properly. The site uses a framework given by client's parent company (so we can't use other framework). The framework use ...
2
votes
3answers
166 views

rel=nofollow, JavaScript slider content, SEO

My website has all content on one page. I'm using JavaScript to slide (animate) between the various "subpages", so only the subpage content is shown. The menu buttons are as this: <a ...
0
votes
0answers
26 views

Stopping JavaScript savvy bots from getting into GA in the first place

I'm aware that bots can be filtered out at the profile level in GA, but I hadn't considered the effect of letting all that bogus data into the web property, and therefore ultimately counting against ...
0
votes
0answers
14 views

SEO for Backlinks Using JavaScript on a Third-Party site [duplicate]

We are currently implementing a widget that companies can put on their website. We give the publisher a script tag with the source pointing to a javascript file hosted on a CDN with the code they need ...
2
votes
1answer
536 views

Internet Explorer iframe JavaScript access denied

I have a webpage on domain www.example.com that has an <iframe> with a page test.html from sub.example2.com. test.html includes a JavaScript from another domain: <script ...
0
votes
1answer
27 views

How to void JavaScript on submission?

My friend is kind of web-developer, beginner. I noticed that he didn't purify his user input on form submission, so I could easily save to his DB working <script>alert();</script>. After ...
0
votes
2answers
50 views

Question about external JavaScript and SEO [duplicate]

I have a question about external JavaScript and SEO. Assume I have a site called example.com with and index page of: <html> <body> <div class='main-container'> <script ...
0
votes
0answers
6 views

Google Experiments - can you run across the entire site?

Is it possible to run a Google Experiment A/B test across an entire website, rather than just a single page and a variation? thx
0
votes
2answers
50 views

Cannot add DataTables.net javascript into Joomla 1.5

I've been having this problem where i couldn't add Datatables.net javascript into my Joomla article. I have been trying to include it through Jumi. To say that my editor strips of the tag is ...
3
votes
3answers
196 views

How to redirect keeping the referral without server-side redirects?

I have an HTML page hosted in Dropbox that some external websites link to. I want to redirect to a different page using only HTML or Javascript, since I can't use any server-side redirects. My goal ...
0
votes
1answer
307 views

Can I defer loading Modernizr?

I'm using an HTML5 template that makes thorough use of the semantic tags and includes Modernizr up top to do the necessary IE coaxing. Google PageSpeed is complaining about the blocking JavaScript and ...
0
votes
1answer
236 views

Ecommerce product information missing with Google Universal Analytics

I recently upgraded to (Google) Universal Analytics but since the upgrade no product information is appearing in my Conversions reports. But, transactions do appear as do all of the other usual ...
0
votes
0answers
11 views

What's the best way to create a widget for blogs? [duplicate]

I'd like to let bloggers to embed my widget, but there is a problem: If I create a JS widget, or an iframe, I will not get any benefits from SEO. So, there is a smart way to let easly embed a widget ...