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)

3
votes
4answers
282 views

Is it a good idea to recommend browser on a e-commerce web site

I have built an e-commerce app but I didn't have a lot of time so I decided to build the app compatible with cutting-edge browsers. so of the features are not working and some them are working less ...
1
vote
2answers
470 views

Lightweight javascript editor for textarea

I'm looking for a simple javascript editor, much like the one i'm using to type this message. I've tried searching (and i wondered why starting to ask a question shows much better search results than ...
1
vote
0answers
304 views

Embedding *.swf objects: javascript vs xhtml [closed]

I am a newbie in webdesign and I´ve been wondering which is the modern way to embed swf objects. I've been using the following html code: <object id="flash1" data="presentacion/prototipe.swf" ...
2
votes
0answers
92 views

Is there serious reason why big company like Facebook or Google don't use front-end libraries such as jQuery? [closed]

I saw that Facebook like open-source software a lot. Is there some webmaster-specific reason why don't they use jQuery or another javascript library? Is that because jQuery/another js library has a ...
0
votes
2answers
140 views

Does Google Analytics track links that use onclick=“parent.location='Something.html' ”?

I am using onclick="parent.location='#'" to make a table into a link, but will Google Analytics see this as a link or will it cause mayhem in the reports?
4
votes
2answers
67 views

Abandoment to blame for the last JavaScript file not always being loaded?

I have a code snippet for an app that users are loading as a 3rd party script on their site. The general sequence is as follows: Site loads http://www.example.com/foo.js foo.js does stuff 1 to 2 ...
0
votes
3answers
114 views

I need a webpage to host my javascript! [duplicate]

Possible Duplicate: How to find web hosting that meets my requirements? Does anyone know a website that hosts javascripts on their page? I have a research project that needs to collect ...
2
votes
2answers
774 views

Prezi HTML 5 & html5 book recommendation

I was wondering what were you thought on being able to build an app similar to prezi (presentation app) using HTML 5. Also while you're at it, I'm looking for a good HTML 5 book recommendation. ...
10
votes
2answers
187 views

Automated Website Testing/Sanity/Quality

I am thinking about building a tool that starts from the root of a webpage and traverses the entire website gathering a list of resources such as CSS/HTML/Javascript files and then runs CSS/Javascript ...
0
votes
2answers
81 views

Mac font on website on PC

I like how fonts look on a Mac. Is it possible to render something similar in a website and have it work on all operating systems and browsers? I'm aware of font-face but I can't seem to find a clean ...
3
votes
1answer
127 views

JS and CSS caching issue: possibly .htaccess related

I've been using the HTML5 Boilerplate for some web projects for a while now and have noticed the following issue cropping up on some sites. My CSS and JS files, when loaded by the browser, are being ...
2
votes
4answers
109 views

Should I rely on externally-hosted services?

I am wondering over the dangers / difficulties in using external services like Google Chart in my production state website. With external services I mean them that you can't download and host on your ...
2
votes
1answer
89 views

Google Ads Blocking Other Site Elements From Loading

I'm using Google DFP to serve Adsense ads. In Google Chrome (this doesn't seem to happen in other browsers), the page will get stuck loading pagead2.googlesyndication.com. It will just load for hours ...
23
votes
6answers
16k views

How do you exclude yourself from Google Analytics on your website using cookies?

I'm trying to set up an exclusion filter with a browser cookie, so that my own visits to my don't show up in my Google Analytics. I tried 3 different methods and none of them have worked so far. I ...
1
vote
3answers
454 views

How to indicate to browser that javascript (external) has been changed

The advantage of including js on web page is that I need not to worry about cached js file. If I change it on the server, the same will be reflected on client side. But it increases the size and ...
1
vote
2answers
321 views

Litmus test to determine if javascript content is crawlable

Already read this: How can I create links in javascript that are crawlable by search engines? I make the assumption that if you view source on a page and can find content / links hidden by javascript ...
3
votes
2answers
751 views

One JS/CSS bundle Vs. One with default and one with custom

On a few of my sites, we use Javascript/CSS bundles to reduce load time. I've always used two bundles for each type (4 in total) so I have JS Bundle 1: Contains scripts that are standard on every ...
0
votes
3answers
124 views

Do search engines care about case sensitivity of HTML tags and JavaScript functions?

Which is better for SEO ? HTML <p id="hello"></p> <p id="HELLO"></p> <p id="Hello"></p> <p id="hELLO"></p> JAVASCRIPT function hello(){} ...
18
votes
5answers
461 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 ...
3
votes
1answer
1k views

Does using onclick on div's effect SEO?

I have a few elements on my page that uses onclick as the link, e.g: <div class="service" onclick="location.href='<?php echo $fields->service_1_link; ?>'" style="cursor:pointer;"> ...
5
votes
4answers
3k views

Free search tool for static website

I am looking for a free search tool for a website hosting html documentation files. the tool should display the results as listings of page title and few lines of text from that page. It should also ...
1
vote
3answers
450 views

What could cause analytics bounce rate to go from ~30% to ~100% in a day?

A month ago, my site had about a 30% bounce rate. One day I pushed some changes to the site, and all the sudden my bounce rate shot straight up to around 98% and my average time on site plumetted to ...
1
vote
1answer
283 views

crop some text from segment text

I have a div: <div id="crop"><span> text - 123 views</span></div> I want crop from "-" to "v" ,thanks
3
votes
2answers
226 views

Does Google Analytics allow custom variables to have a value of zero?

I was interested in tracking the versions of QuickTime my users have installed. As suggested in an earlier question, I have set up a custom variable and built a report around it. Here is my code for ...
2
votes
1answer
2k views

Rounded corners in IE7 and IE8

Now every major browser supports border-radius, I was wondering what the best way to get rounded corners in IE7 and IE8 is until IE9+ becomes most dominant version of IE. I've seen several javascript ...
4
votes
3answers
204 views

Why do many websites have so many javascript includes?

I notice this is the case mainly for rather sophisticated pages. However, why don't developers simply combine the JS files and condense it all together? Is it not a more efficient method, in terms of ...
5
votes
1answer
596 views

Looking for a desktop application similar to jsFiddle

Is there a desktop application or IDE for Windows or GNU/Linux similar to jsFiddle where I can insert my JavaScript code, HTML and CSS and see how it executes? I don't mind writing HTML, CSS and ...
1
vote
1answer
1k views

Monitoring JSON requests sent/received from the browser?

Having a website that generates and receives JSON requests via AJAX, I failed to find a tool that shows me live the communication including the content of the JSON calls. I thought that the Google ...
1
vote
3answers
348 views

Javascript in HTML vs in a .js file

I heard that putting the javascript in the html code isn't good for SEO and that it's better to put it in a .js file. It's clear that it makes the code more understandable but is it the only reason?
4
votes
2answers
279 views

Best approach to have Google index content primarily generated by Javascript

I'm developing an app where customers can drop in a Javascript tag onto their website, and it will generate content. What is the best approach to have Google index this content and associate it with ...
2
votes
2answers
101 views

Major SEO Pitfalls of JavaScript loaded CSS?

Looking to start with a basic.css and have JavaScript load enhanced.css when JavaScript is ebabled. What major negatives will this have for Search Engines indexing and ranking my site?
5
votes
3answers
7k views

What is the optimal folder structure for a web directory?

I've been doing web development for years, and I've always done a web structure similar to this: public_html/login.php public_html/css/login.css public_html/js/login.js public_html/img/logo.png ...
2
votes
1answer
5k views

Javascript not loading from local drive

I'm overlooking the obvious...Modifying an index page on local hard drive before uploading it to server. And the javascript is not loading. This doesn't work: ...
3
votes
2answers
1k views

Hijax == sneaky Javascript redirects? Will I get banned from Google?

Question Will I get penalised as "sneaky Javascript redirects" by Google if I have the following Hijax setup (which requires a JavaScript redirect on the page indexed by google). Goal I want to ...
2
votes
0answers
437 views

Hijax == sneaky Javascript redirects? Will I get banned from Google?

Question Will I get penalised as "sneaky Javascript redirects" by Google if I have the following Hijax setup (which requires a JavaScript redirect on the page index by google). Goal I want to ...
1
vote
1answer
571 views

Point to folder in <script> tag

When you are loading JavaScript files via the <script> tag, you can only do it one-by-one, ie <script src="myFile.js"> or so I'm assuming. Is there a way to load an entire directory of .js ...
2
votes
2answers
389 views

A JavaScript Rich Editor That Doesn't Convert Non-ASCII Text to Character Entities?

I am working on a site for Spanish speakers, and I am looking for a UTF-8 enabled JavaScript Rich Text Editor that preserves non-ascii characters as text, instead of entity encoding. That is, when I ...
3
votes
1answer
510 views

Is this safe? <a href=http://javascript:…>

I wonder if href and src attributes on <a> and <img> tags are always safe w.r.t. XSS attacks, if they start with http:// or https://. For example, is it possible to append javascript: ... ...
2
votes
1answer
286 views

What are the PCI compliance and security implications for processing payments through my embeddable widget?

I've built a little embeddable Javascript widget that list items for sale for publishers to embed on their site. The current use case is that when the user clicks on an item, they are redirected to my ...
2
votes
2answers
234 views

What could artificially increase the bounce rate reported in Google Analytics?

Since deploying Janrain Engage to our website, which includes a javascript snippet that is loaded from their servers, I've noticed about 10-15% increase in our bounce rate. I think this is artificial ...
3
votes
1answer
1k views

Hide email adress with JavaScript

I read somewhere that hiding email address behind JavaScript code, could reduce spam bots harvesting the email address. <script language="javascript" type="text/javascript"> var a = "Red"; ...
1
vote
3answers
708 views

Javascript and PHP how should I en/decode my data

I would like to know in what encryption should I encode my data and why. First of all, I use GET method because it is search engine inside website. Second, I use RTL language (hebrew). And third which ...
1
vote
3answers
768 views

Will my new HTML5 website decrease my Google ranking?

I have a traditional HTML website that loads pages/sections of the site when people click on menu items. Pretty standard. Currently, I'm working on relaunching my website with a brand new HTML5 code ...
4
votes
2answers
664 views

Does placing Google Analytics code in an external file affect statistics?

I'm working with an outside software vendor to add Google Analytics code to their web app, so that we can track its usage. Their developer suggested that we place the code in an external ".js" file, ...
1
vote
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 ...
1
vote
2answers
153 views

Here we go again - quest for web hosted forum via javascript [closed]

disclaimer If this is the wrong location for this question, then please advise me accordingly. backgound I've been using Disqus and intense debate as a 'comments' service for a variety of my ...
1
vote
1answer
29 views

Tracking Redirects Leading to your site

Is there a way in which I can find out if a user arrived at my site via a redirect? Here's an example: There are two sites, first.com & second.com. Any request to first.com will do a 302 ...
1
vote
1answer
365 views

What is a light-weight “slideshow” script that could integrate w/ CMS?

I'm looking to reduce the footprint of my Strict html 4.01 front page. One possible way is to combine much of the "upcoming events" into a single small box, and have them automagically switch which ...
2
votes
1answer
426 views

SimpleViewer + lightbox

Is it possible to integrate any kind of Lightbox with SimpleViewer? But I don't want to display SimpleViewer in Lightbox. I want to Lightbox show when I click on one of the images in SimpleViewer. ...
30
votes
1answer
137k views

How to open the JavaScript console in different browsers?

Updated on October 7th 2012 Chrome: Press either CTRL + SHIFT + J to open the "Console" tab of the Developer Tools. Alternative method: Press either CTRL + SHIFT + I or F12 to open the ...