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
3answers
422 views

Tracking Outgoing Links With Google Analytics Events

I've been trying to track clicks on external links on my website using the events tracking method. So I've got my Google Analytics code setup before body ends as shown below (note: quotes have been ...
0
votes
2answers
146 views

Best way for beginner to learn JavaScript and PHP coding [closed]

I have a job interview coming up and in job description it states I need to be able to write JavaScript and PHP coding. Now its been a while since I did JavaScript and PHP coding. I am planning to use ...
1
vote
1answer
2k views

What service could be adding NewRelic?

At the bottom of my web pages is: <script type="text/javascript"> if (!NREUMQ.f) {NREUMQ.f=function() {NREUMQ.push(["load",new Date().getTime()]);var e=document.createElement("script"); ...
4
votes
5answers
903 views

JavaScript to stream video files

Is there a JavaScript API for streaming WMV/AVI/MOV files?
1
vote
1answer
138 views

Multimedia web applications that perform well [closed]

There are a few multimedia web applications like PHPMotion, ClipBucket that allow playback of multimedia files. Beside the mentioned multimedia web applications, are there other similar multimedia ...
0
votes
1answer
21 views

Indexing a page in which the content is discovered in a map

We want to improve our site's SEO. The page is a GWT (javascript based) web page and its content is discovered through a map or a GPS. Now we have just a normal landing html page, and the map and ...
1
vote
1answer
96 views

How to Trigger GA Event for Every Single Pageview (of a certain type)

Thanks, edited my question. I need a reliable way to capture a GA event whenever the GA tracking code fires for a particular page only. Doing so because we want to assign a dollar value to simply ...
2
votes
1answer
272 views

Google follows JavaScript string as relative path - produces 404 error

This is my first question on here so I hope I'm not breaking any rules, but I have a problem: I have a site that uses an Adobe Site Catalyst for its online analytics. The suite supports tagging ...
0
votes
0answers
27 views

Will the jquery.jplayer render the videos from Akamai

Currently I'm using jquery.jplayer with which I'm able to play the videos which are in my local machine. Will this .js be able to render the videos from Akamai? Server or do we need any script change ...
1
vote
1answer
49 views

Redundant Parameters in Google Analytics JS Snippet

Google Analytics provide this snippet of code to copy and paste to a site: <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ ...
2
votes
2answers
922 views

How to disallow selection of text on website?

I have a question about preventing the selection of content and right-clicking with your mouse on a website. Some websites that I have encountered display a dialog which prohibits right-clicking but ...
1
vote
2answers
463 views

Is there any way to get data from Google Analytics Per Page Visit

I am using Google Analytics to track visitors of my website. I also want to track IP address of the visitor but Google doesn't allow this. Now I am thinking that I must save IP address of the visitor ...
0
votes
1answer
172 views

Bounce rate nearly 100% in Safari AND Firefox? [closed]

Our website has a bounce rate of nearly 100% in both Firefox and Safari, and around ~40% in all other browsers. The bounces span all versions of each browser and both operating systems. I cannot ...
14
votes
4answers
27k views

How do I set expiration headers for CSS, JS, and Images?

I have recently analysed my website with pagespeed addon on firebug. It suggested me to set expiration on CSS, JS and image files. I am wondering how do i do this?
0
votes
1answer
50 views

Is it possible to have Google index one page with one URL and have it link to another URL?

We want to tell Google to crawl a content heavy page but list a link to a much more performant JavaScript version of the page. Is this possible? I.e. Give Google a sitemap, then put canonical tags ...
0
votes
1answer
62 views

What is the impact on SEO for having a div that is removed by JavaScript

What, if any, impact would there be for having a stripped down view of my content in a <div> that is quickly replaced by [a much richer view] via JavaScript? Would this be any different than ...
0
votes
2answers
1k views

How can I make Twitter, Facebook and Reddit share buttons load last?

I have a website with a number of pages that sport Twitter, Facebook and Reddit share buttons. They take forever to load and until they do the rest of the page doesn't load. So how I can make them ...
18
votes
5answers
438 views

What documentation exists for HTML, CSS, and JavaScript?

PHP users have the PHP.net docs Ruby users have Ruby-Doc.org Python users have docs.python.org jQuery users have docs.jquery.com All are considered go-to references when working within those ...
0
votes
2answers
735 views

What is the syntax for putting a nofollow attribute into a javascript file

Matt Cutts states in this video: It turns out that as we are executing JavaScript, we do look at the attributes. So you can actually use Javascript and put, like, a nofollow attribute on ...
8
votes
8answers
4k views

Why not AJAX'ify entire websites?

Is there any solid reasoning as to why sites shouldn't be developed with ajax functionality that loads major parts of each part (assuming there are elements like the header, navigation etc that remain ...
21
votes
4answers
2k views

Why insert static files (CSS, images, JavaScript, ECC) in a subdomain?

Why so many big and little sites inserts static files (CSS, images, JavaScript, ECC) in a subdomain like media.example.com or s2.static.example.com? What are the advantages? Why not just a directory ...
1
vote
2answers
212 views

How secure is a static CAPTCHA?

I have seen some webmasters using a CAPTCHA that doesn't change at all. And many of them use JavaScript to validate these value. For example: if(captchaCode != "4ERJZ") Since most of the web ...
1
vote
1answer
138 views

Protect SVG from client access

I want to make a presentation that consists from some number of slides. The actual content of the slides is going to consist of vector elements in SVG format. The transition between slides should be ...
2
votes
1answer
67 views

Is it acceptable practice to change the behavior of old HTML tags?

In my app I need to display some maps. So I use Leaflet.js to do so, but to simplify my HTML I have used a <map> tag to do so. Is that acceptable, or should I avoid doing this?
1
vote
1answer
75 views

How to add button on each MediaWiki article?

I would like a button to appear on each article on my MediaWiki site, to make it easy to flag articles that should be reviewed. When the button is clicked it should add the category "review", and if ...
0
votes
0answers
14 views

Strange Javascript code in my html pages [duplicate]

I've been warned up today by my friend who owns a website I made for him. I've just found that many files from the template directory have been modified today and in every of them, I can find this ...
1
vote
4answers
615 views

Sudden drop of pageviews/visit and increase of bounce rate in Analytics

Google analytics stats: 04 june 2012 Visits: 4.423 Unique visitors: 3.558 Pageviews: 77.352 Pageviews / visit: 17,49 Visit length: 00:06:26 Bounce rate: 1,09% 05 june 2012 Visits: 4.652 Unique ...
1
vote
0answers
64 views

Top commentators widget compatible with Facebook comments [closed]

I created a project on freelancer.com but then I was wondering if this thing is possible knowing Facebook comments has its own restrictions and limitations. "Hi, I want a widget on the sidebar that ...
0
votes
1answer
289 views

SVG images grow and create scrollbars when on the server

Okay so I embedded some SVG images into my page and opened it locally on Chrome and it looked fine. I upload the same file to the server and look at the page online and the SVG images have grown by ...
3
votes
1answer
327 views

Collapsible menu and amount of links in a web page

One of my pages contain three levels of a collapsible menu (JS + CSS from mycssmenu.com). There are a dozen first level items displayed to users, each one with various second level items, and finally ...
7
votes
3answers
9k views

Why would you use document.location.protocol instead of plain // prefixed urls?

For instance Google Analytics uses document.location.protocol in the boilerplate for tracking: <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', ...
1
vote
0answers
114 views

Create a more voices for meSpeak.js [closed]

I saw a meSpeak.js project and there is also a folder called voices, but every voice file is json so i want to convert Mbrola voice to .json is there is any way to do that thanks
0
votes
1answer
261 views

Prompting Facebook to embed Youtube videos from a site

On a website for a newspaper, some of our articles are video reports (embedded from Youtube) with small descriptions below. When these get shared on Facebook, perhaps when someone copies the URL into ...
1
vote
2answers
180 views

SEO impact of links for javascript functionality

For example, jQuery tabs uses a link as each tab, that opens the tabbed content. Or often times developers will use a link as the anchor text for a hover tooltip, even though it doesn't actually link ...
4
votes
1answer
238 views

What is the best way to optimise a site with lots of images for a Retina display?

I am going to have a website which will deal with a lot of images. What is the best way to optimise them for Retina display without having much of an impact on website loading times? There seems to ...
2
votes
2answers
169 views

Test different timezones

What is a simple way to temporarily change the timezone in Chrome so as to test how a site renders for different locations? On OSX Mountain Lion, I've tried as bash script with: export ...
0
votes
1answer
174 views

JQuery Plugin files getting viruses even with CHMOD 755

I have a bunch of JQuery plugins (eg: masonry, isotope, carousel, etc) within a JavaScript folder in my root. These have been repeatedly infected with viruses making Google put alerts on my site. The ...
0
votes
1answer
80 views

more capability from CSS [closed]

so i've just finished a book to learn CSS. (known HTML since high school but didn't have the initiative to pick up CSS 'til now). anyways, ever since i started reading about pseudo-classes in CSS i ...
1
vote
1answer
95 views

Toggling between hidden divs instead of two links

For each entity in my site I have a 'joint' section (~30%), and a sub-section (~70%) which has two different options, meaning I only display ONE of them at a time. Currently I have two different links ...
2
votes
0answers
12 views

I want to build a script CDN for my place of employment [duplicate]

I write a bunch of scripts (javascript, php, perl) for my work. Right now, people have to get the scripts themselves from our sharepoint, and then install it as either a bookmarklet or a greasemonkey ...
1
vote
1answer
496 views

Site got hacked while many / all security leaks have been removed [closed]

I've got a website with this code appended to my php document : <? #8f4d8e# ...
8
votes
7answers
1k views

Can anyone list some real examples of 'HTML5' being used in the wild?

I am using HTML5 in the same way everyone seems to be using it these days, meaning: HTML5 tags, Canvas / 3D / javascript and CSS3. I am struggling to find examples of sites that are using these ...
1
vote
1answer
29 views

Organizing main page with detailed content

I need to develop a structure like the one that appears in the following site: http://www.autoic2.com Clicking an image, showing the related content Clicking in that new content, showing the ...
2
votes
2answers
245 views

Run external application on markdown source in ikiwiki

Can I add a button to each wiki page in ikiwiki which launches an external application (on the client side) or script with the markdown code of the current page as input? Edit: I didn't realize that ...
1
vote
2answers
78 views

Proper name scrolling news/photo

I'm very new to webdesign and am wanting to install a scrolling news/picture banner in the site but don't even know the proper term to search for to find out how to do it. Here's an example of what ...
2
votes
1answer
212 views

A JS-based WYSIWYG HTML editor with flexible image upload? [closed]

Is there a good JS-based WYSIWYG HTML editor with flexible image upload out there? Ideally, I'd like an editor that allows me to handle image upload in a custom callback.
0
votes
1answer
57 views

PHP and Javascript [closed]

I am a good C programmer. I have recently studied a bit of JavaScript and I plan on developing my skills by also learning PHP. Can I learn both these language in 3 months and after that build a site ...
2
votes
4answers
383 views

Javascript slider with fade [closed]

I've been scouring the web for a slider that offers a particular effect, but I can't find one. I'm hoping that someone here will be able to help out... Specifically, I need a slider that will slide ...
-1
votes
1answer
1k views

Does anyone knows a good Facebook chat script? [closed]

I'm looking for a facebook chat script.. that can handle a large number of users.. does anyone knows one? I need one urgent and please post one that you had experience with.
2
votes
0answers
58 views

Design scrollable table structure [closed]

I'm currently looking for a way to design a table structure with HTML and JS which should be Horizontally Scrollable (It has to be possible to dynamically add new columns) Tolerant to changing sizes ...