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)

7
votes
3answers
9k views

Upload image file: is compression on client side already possible?

When offering photo file uploading, usually the user will have badly compressed and huge (10+ megapixels) JPEG files from their cameras or phones. On the server side, these files will get ...
2
votes
3answers
517 views

Site failing randomly - could it be Cloudflare or something weird in the JS?

I've been working on a simple site that uses javascript to fade through some fullscreen background images as well as some other simple animations. I've tested the site on Chrome, Safari, FF and Opera ...
2
votes
0answers
135 views

two columns text block with an image [closed]

I have a dilemma. Here is the layout: How should I markup this kind of layout? P.S.: The columns have different width.
3
votes
2answers
473 views

Is traditional JavaScript image pre-loading taboo

I remember the good-old-days (not really) back when I was still sucking the teet of Dreamweaver to build websites and the lure of playing copypasta with fancy built-in scripts (ex, image-swap) was ...
1
vote
0answers
723 views

Javascript autotab function not working on iPad or iPhone [closed]

I have this this piece of html code: <form name="postcode" method="post" onsubmit="return OnSubmitForm();"> <input class="postcode" maxlength="1" size="1" name="c" onKeyup="autotab(this, ...
1
vote
3answers
268 views

Is this form of cloaking likely to be penalised?

I'm looking to create a website which is considerably javascript heavy, built with backbone.js and most content being passed as JSON and loaded via backbone. I just needed some advice or opinions on ...
6
votes
2answers
1k views

Text limit on analytics event code

I am just about to add the event code a button that downloads the PDF. Event code fields: _trackEvent(category, action, opt_label, opt_value, opt_noninteraction) Example of event code: ...
5
votes
3answers
3k views

expires headers and forcing cache-loading instead of 304?

so here is a little mystery. google analytics javascript somehow always loads from browser cache on F5 (in Firefox). i cannot get the same thing to happen with my own scripts. here are the headers ...
4
votes
3answers
2k views

How do search engines handle <noscript>?

On my site, I have something like the following: <noscript> <p> <strong>JavaScript is currently disabled.</strong> Please enable it for a better ...
1
vote
0answers
31 views

What are the required skills to bulid a online book editor? [closed]

I want to build a website for a printing company. My plan for this website is to offer a online book editor system for users to upload photos, choose the layout, type some text, put some stamp or ...
1
vote
1answer
2k views

Vertical page flip effect

I found turn.js as a very simple and nice effect to create page flip effect. The problem is that I'm looking for that effect but vertical not horizontal. Does anybody knows any Javascript or what ...
2
votes
1answer
779 views

How to redirect user into mobile website?

Hi how to redirect the user into mobile site when the user accessing from mobile. Say example i have site called www.mysite.com. Now, a person accessing a website from mobile it should redirect to ...
13
votes
1answer
5k views

Is this a good approach to image Lazy Loading for SEO?

For images loaded via AJAX, or that I don't want indexed, use the data-* attribute approach: <img data-src="path/to/image.jpg" class="js-lazy-load" /> The javascript maps the data-src ...
1
vote
1answer
180 views

Need a table that can sort, lock

I need table that will be able to: sort lock columns lock the header row resize columns scroll if possible can add/remove columns. Was hoping to able to do this with jquery / html5 and have all ...
1
vote
0answers
639 views

I need this Font Picker for my project but I'm not able to get it working. [closed]

I am trying to create a "FontPicker" just like a normal "color picker". I have see many websites implementing "font picker" please check out http://mklogo.com for example, where the fonts are ...
1
vote
3answers
739 views

Looking for a slideshow with delayed elements

I'm looking for a slideshow script that's using a delay for the individual slide elements. Made preferably with jquery and with responsive webdesign in mind. It's easier to understand what i mean if ...
2
votes
3answers
362 views

what's a good jquery-based content slider?

I've searched around there's so many but none seems to fit the requirements. so here is what i'm looking for: - needs to be lightweight (10+kb of JS just to slide images around is an overkill in my ...
0
votes
1answer
797 views

How can I determine why my site loads slowly in Google Chrome?

My site seems to be making my Google Chrome hang. I assume it has something to do with javascript. Is it just my personal computers chrome or everyones chrome? http://blog.blundell-apps.com It ...
2
votes
4answers
469 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
vote
3answers
94 views

Releasing a CSS minification tool - should it be downloadable or accessable through the cloud?

I am thinking of releasing a CSS minifaction library, which has dependencies on other libraries. Since CSS Minification is not something that occurs a lot (compared to optimising PDFs for example), I ...
2
votes
1answer
344 views

Making JSON page which renders on document ready indexable

I have a page which is pretty much 99% on document ready generated by various JS files. It then gets and renders tons of JSON (I use tempo JS for rendering). It all happens on document ready. So ...
1
vote
2answers
171 views

Looking for a CMS for specific requirements (Javascript, import/export…)

I heard about Joomla, Drupal, Wordpress, etc. but I don't know about their detailed features. I am looking for a content management system meeting the following requirements: Possibility to add ...
1
vote
1answer
328 views

If I cache an RSS feeds' html, but not the images, will this appear to be image hot-linking?

I have a simple RSS news application built using JavaScript, that pulls in feeds through Google's feed API. I'm doing a proof of concept and caching the feed using localStorage though due to storage ...
0
votes
1answer
133 views

Reference single javascript file from many web applications

I have a javascript file (called secure.js that has several functions defined in it. I also have a Visual Studio solution with ten different ASP.NET web applications. I want to be able to call the ...
2
votes
2answers
174 views

Google and random redirects

I have a site where homepage "example.com" redirects to random joke(example.com/random-joke). First I redirected with php, but then google indexed that joke page(rather to be empty). I used "302 ...
1
vote
2answers
289 views

javascript/php sorting plugin

I have a set of thumbnails and I want to sort them by name, by rating and by newest added. I've found Quicksand which I think is pretty good, but I need to know if there are some other scripts/plugins ...
2
votes
2answers
276 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
1answer
93 views

Does anyone know about some Flash or JS image gallery that allows multiple image selection simultaneously?

I need to show a list of image thumbnails, and the user should be able to select one or more images from this list and then the selected images should be "best fit" displayed. For example, with 3 ...
0
votes
1answer
122 views

Are there some good Javascript templates out there? [closed]

I am trying to create a simple .js file that will let me have some submit buttons here and there, with the text paragraph in the middle changing based on which submit button is pressed. Does the ...
0
votes
1answer
152 views

Anchor link structured website & SEO [duplicate]

Possible Duplicate: How to SEO a Single-Page website My client wants to have a website similar to this one. I think that this concept could really work well as a simple presentation of ...
1
vote
1answer
58 views

How can I check that ads are loading correctly on my website?

How can I monitor the JavaScript ads on my website to ensure they show up? I don't want to use this process to generate false impressions but I need a way to gather data and report that ads are ...
0
votes
2answers
790 views

Embed content, iFrame or load via JavaScript?

I have to load remote content in several sites and I'd like to know which is the best technique. I know I can go trough an <iframe> but it isn't SEO friendly. I want the content to be found and ...
1
vote
2answers
315 views

Are github gists SEO friendly?

I am kind of fan of Github and it's Gists. Since the gists can be included via a small Javascript snippet and document.write commands, I was asking myself if they were SEO friendly.
5
votes
2answers
607 views

Which is better, minified or obfuscated code?

I’m confused between the two. Which is better, especially for jQuery and JS? Also, which do you think is more SEO-friendly? Note: I’m a noob.
0
votes
1answer
224 views

Template from ThemeForest in datepicker - unable select date before today

I bought a template from themeforest and in any datepicker I can't select a date before today. I can't find any code who blocks or range this control. In my inline.cs I only have: ...
2
votes
3answers
384 views

Cross Browser CSS script?

a few weeks ago I stumbled over a javascript that you can add to your site, and it would automatically modify your css, to work around some bugs in browsers, and add features they don't support (e.g. ...
3
votes
5answers
572 views

jquery ui minify

I have a series of web pages that link to the following: jquery-ui-1.8.4.custom.min.js jquery.ui.widget.js jquery.ui.core.js jquery.ui.accordion.js jquery.ui.selectmenu.js jquery.ui.button.js Not ...
3
votes
1answer
810 views

Javascript for draggable, zoomable map with Google-Maps-like features

I'm looking for a JavaScript-based tool for displaying draggable, zoomable maps. It has to have the following features: Can add markers, labels, balloons (a la Google maps) Must be scriptable after ...
0
votes
2answers
1k views

Best and easy way to add video to website

I want to add videos to my website. I want to click on images and then to show video in "window" and start playing (popups like lightbox). I just don´t know what is best way to do it. I think one of ...
2
votes
2answers
3k views

Is there a Lightbox style plugin that fits images to screen size?

I'm looking for a Lightbox type js plugin that would take into account the browser window size and resize the currently displayed photo so it fits - like the jquery-imagefit plugin does.
1
vote
1answer
229 views

How to prevent Google Website Optimizer from making Google Analytics spike Direct Traffic and lower Bounce Rate?

I am using Google Website Optimizer (GWO) and Google Analytics. Whenever a person (Google Website Optimizer) does a javascript redirect, Google Analytics will change the referrer. When the referrer ...
8
votes
8answers
6k 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 ...
1
vote
1answer
345 views

GA and /outbound/javascript:void(0) bounce rate

My Google Analytics reports a bounce rate very high for outbound/javascript:void(0) but I don't understand what this URL is. I use Drupal, and in the HTML code there isn't this URL.
3
votes
3answers
349 views

how can I track google plus views in my website?

I am trying to find how I can track google plus clicks in my website for tracking purposes? Solutions not related to google analytics plse?
1
vote
1answer
343 views

Want to use the HTTP-REFERER of in an HTML page through Javascript

I Want to use the HTTP-REFERER of in an HTML page. Is it possible to do it with a JavaScript included in the page itself?
0
votes
1answer
199 views

Need to track the website or link from which users landing on our web pages - jS or PHP Coding

We have three fare traffic websites ( for three different brand products ) and all are well serving our internet marketing needs. recently , we are planned to promote each website on other two ...
1
vote
3answers
123 views

AdSense block not displaying anything

I have copied and pasted the following code into my page, but it seems to be having no effect. It should have a fall back block colour, but nothing is showing. Code copied/pasted straight from ...
3
votes
5answers
812 views

Can the webpage title be changed after site has been loaded.

Can the web page title be set to be dynamic? I want to let some part to be updated in title, if any changes occur, an automatic update resulting in a bit of word addition to the title. Example : the ...
1
vote
1answer
86 views

What is the name of the widget which slides in at the bottom of the page and recommends more articles for reading?

I see this on more and more pages. I can't show an example right know, but the widget is a small box sliding in at the right bottom of the page and it usually says "Did you read this?" or something ...
1
vote
1answer
1k views

How to make my page load faster? [duplicate]

Possible Duplicate: Ideas to improve website loading speed? My page gets performance score 79 in yslow which is not bad. Yslow says the parts I can work on are 1) Grade F on Make ...