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
2answers
1k views

Does Internet Explorer 'timeout'?

Within my website I have a single page that dynamically updates via AJAX / JSON in a plain HTML page. Now this page may be left open for up to three or four days. When I left it running over the ...
3
votes
1answer
60 views

How is this website's architecture structured? [closed]

refer to this URL: http://imagemechanics.com.au/ Every page seems to have its own unique URL, but the "/#!/" leads me to believe it's all one giant page with anchor tags defining the sections. Is ...
3
votes
2answers
916 views

How to crawl a webPage with dynamic content added by javascript

I guess there is a news that Google bots have the capability to understand our javascript code. It means this is possible to fully crawl a webpage which has lazy loading feature enabled. I am using ...
3
votes
1answer
1k views

Fixing validator error “cannot generate system identifier for general entity”

The W3C validator shows a "cannot generate system identifier for general entity" error when attempting to validate a page that contains the following code: <script type="text/javascript" ...
3
votes
1answer
513 views

Does loading and executing external javascript have influence on SEO?

Say I have a script that executes after DOM Ready. It loads more resources (like a twitter feed and the like). So, it adds up to the total experience of 'waiting' for the page to load, though it isn't ...
3
votes
3answers
295 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?
3
votes
5answers
509 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
439 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: ... ...
3
votes
2answers
346 views

AJAX Keyword Suggestion Tool

Are there any JavaScript includes to provide an AJAX based keyword suggestion tool based on some existing text? For instance Yahoo offer a Keyword Extraction Tool but due to cross-domain JavaScript ...
3
votes
1answer
224 views

How to check if linked JavaScript and CSS files are being used?

I've inherited a website that seems to import every JS and CSS framework my predecessor could think of. Is there an easy way to analyze the site and determine which ones are actually being used? Or ...
3
votes
2answers
151 views

Track exit link and ads with PHP

I want to track exit links on my website and also exit ads like Google Adsense etc. I mean by exit ads is that when click on add I get ads dimension and ads type like Google or other ads. In short I ...
3
votes
2answers
216 views

Will text that appears dynamically (via javascript/jquery) be indexed by search engines? [duplicate]

Possible Duplicate: Does the Google spider render JavaScript? I'm writing an article that is broken up into sections, where the content of each section is hidden unless the user expands ...
3
votes
2answers
245 views

Will a search engine lower the rank of my page if i have hidden iframes?

As a praxis, all external content on our site is put in iframes to lower the risks of any external parties injecting stuff to our users. We also do it to make sure our content shows up before banners, ...
3
votes
1answer
125 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 ...
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;"> ...
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 ...
3
votes
1answer
2k views

Cufon text replacement and IE8 standards mode

I have a perculiar issue. In IE8 standards mode text replaced by Cufon.Replace works roughly 50% of the time, the rest of the time the DOM modifications are there (viewed through IE developer toolbar ...
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 ...
3
votes
2answers
534 views

Google JSAPI Auto-Loading

When using Google's JSAPI Auto-Loading system - is there a way to get the returned file with all the JavaScript (combined) in one HTTP request? At the minute is just calls the load routines (with ...
3
votes
1answer
538 views

Forbidden 403 error on Google AdSense requests

I have created a new website and have set some ads. For some unknown reason, FireBug tells me that I get 403 errors on Google Adsense requests. I have checked my AdSense account and it does not block ...
3
votes
4answers
168 views

Are there any scripts to integrate social networking site's chat and posting features into a webpage [on hold]

Are there any scripts to integrate social networking site's chat and posting features into a webpage using PHP or JS... for example a section with Facebook chat, a section to post to twitter and maybe ...
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 ...
2
votes
4answers
107 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
128 views

Why don't people embed style and scripts in the HTML?

I know this sounds like a silly question, but hear me out. These days, there are a lot of 'media aggregator' tools that will take your globs of javascript (laden with coffee and underscores and ...
2
votes
3answers
133 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 ...
2
votes
3answers
355 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 ...
2
votes
3answers
400 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
1answer
101 views

Prevent HTML files downloaded from getting copied from that particular system to another system or getting the script modified?

How to prevent my HTML files downloaded to a particular system from getting copied from that particular system to another system or getting the script modified? Is there any tool or method out? Well, ...
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.
2
votes
2answers
78 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 ...
2
votes
2answers
61 views

How does this stackexchange form saved the work, I mean keep an auto save function, to retrieve loss of work

How does this stackexchange form saved the work, I mean keep an auto save function, to retrieve loss of work, in case the user's browser crashes.
2
votes
2answers
450 views

Should I use HTTP or HTTPS to reference resources on the Google CDN?

All the examples of accessing google's CDN use https:// in the URL (including on Google itself) - but this has caused a problem when testing in Safari (certificate problem and also different domain). ...
2
votes
2answers
218 views

How to do a JavaScript redirection to the same page without hurting my SEO?

I did something that does that when people land on my page for the first time, they get a JavaScript redirection to the same page, but with PHP $_GET URL queries, then this page redirect back to the ...
2
votes
1answer
271 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 ...
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?
2
votes
2answers
179 views

Get google to index JavaScript pages as separate pages

I have a product page with say 10 products, that loads up all the content when the page loads. Then JavaScript hides content till a product is selected. Then JavaScript hides and unhides information. ...
2
votes
1answer
541 views

Why am I getting messages from cloudfront in my error log?

I frequently have messages like this in my websites error log: "Script error.". URL: https://e3m4drct5m1ays.cloudfront.net/items/loaders ...
2
votes
3answers
246 views

What parts of JavaScript and jQuery are essential reading for Web Designers [closed]

As a web designer, how should I go about learning javascript and jquery? I would like to avoid duplicating my efforts and focus on whats important. I am very much confused and need a place to start.
2
votes
1answer
317 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 ...
2
votes
2answers
160 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 ...
2
votes
2answers
742 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. ...
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 ...
2
votes
2answers
119 views

Disqus analogs? (comments platforms) [closed]

What analogs of Disqus for comments do you know?
2
votes
3answers
149 views

Recommend me a CSS/JS compressor

There are scripts to compress CSS on-demand like these. Have you stumbled upon something similar for javascripts? Also, any recommendations regarding CSS and JS compression are more than welcome. ...
2
votes
1answer
95 views

Guidelines for Opera Mobile

Opera Mobile fails to render two sites I help out with correctly and I cannot find the guidelines for Opera Mobile. All other browsers tested (even Opera for the Wii) show these sites correctly. ...
2
votes
1answer
213 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 ...
2
votes
1answer
173 views

Can minification in Google PageSped service break Adsense?

A few days ago I applied for Adsense account. But it was rejected due website being down. Here is the full message: We did not approve your application for the reasons listed below. Issues: ...
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.
2
votes
1answer
106 views

New to website form validation

I'm new to form validation and I have been lucky over the years. I would like to update my method of form creation in my sites. I was curious to know what is standard and if there is a preexisting ...
2
votes
2answers
198 views

How can I create a dynamic site that is still search-bot friendly?

If I want to have a slide effect between pages. You click a link, it is loaded off to the side and then slides in (pushing the old page off the other side). I can imagine using jQuery to do the PHP ...