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)

2
votes
1answer
315 views

Reduce HTTP Requests method for js and css

Is these way can Reduce HTTP Requests? multiple javascript files with & symbol <script type="text/javascript" ...
2
votes
1answer
656 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 ...
2
votes
3answers
312 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. ...
2
votes
1answer
624 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 ...
2
votes
1answer
86 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 ...
2
votes
2answers
100 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?
2
votes
2answers
354 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 ...
2
votes
2answers
684 views

Google Search iFrame works in Chrome and firefox but not IE8

I use Google site search in a IFrame for my sites search engine. When I search for something in Chrome/FireFox "Flight" I get the results page. When I do the same search in IE8 I get 404 error. ...
2
votes
1answer
50 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, ...
2
votes
1answer
39 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 ...
2
votes
2answers
49 views

May site A or B get banned/penalized if from site A I use window.open to site B?

As many advertising systems open popups, I was wondering what if from my site A I make (randomly, I mean not every time) a window.open(B)? Could one of the sites get banned?
2
votes
1answer
123 views

JavaScript loaded external content SEO

I wonder what is the best way to have Javascript loaded content indexed by search engines. I know that search engines don't execute Javascript, but I am thinking more of an progressive enchantment. I ...
2
votes
2answers
170 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 ...
2
votes
1answer
770 views

Weather Widget/API

I am developing a website and am looking for an easy piece of code that I can add to a webpage that will display the weather for today and also for the next 5 days for a given location (Wellington, ...
2
votes
1answer
756 views

Show/Hide Div - Cross browser compatibility and jquery concerns

I'm working on displaying a hidden div when clicked on for a website. This would be a contact for to request more information about a product, so, its a very important form. So, i came across the ...
2
votes
2answers
261 views

jQuery scrolling images for e-commerce site, what to do about users who disable JS

As the title suggests, I am developing an e-commerce site and I intend of having two jQuery plug ins on the default page, one for scrolling images and the other for the navigation menu. Should I be ...
2
votes
1answer
103 views

If my URL's are static, but then parsed by Javascript, does that make it crawlable?

Lets say I have a link: <a href="/about/">About Us</a> But in Javascript [or jQuery] catches it and then adds the hash based off of the href attribute: $('a').click(function(e) { ...
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 ...
2
votes
1answer
509 views

How to interpret Events from Unique Events in Google Analytics?

I'm trying to add some javascript triggered Google Analytics events to a website that is already working with GA. I've included the following beneath the standard GA script (new ga.js script). ...
2
votes
1answer
4k 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: ...
2
votes
1answer
276 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
226 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 ...
2
votes
1answer
423 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. ...
2
votes
1answer
612 views

Google Search results not showing up

I have added a custom Google Search to a site and while the search box functions the results page is pathetically empty. Here is the search box code: <form ...
2
votes
1answer
101 views

Schema.org's WebApplication: for web applications or references to web application?

Assuming one offers an online service on a page using HTML5 + Javavascript. Technically speaking, it can be considered as a web application. Is the WebApplication itemtype appropriate for this page ...
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 ...
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 ...
2
votes
0answers
49 views

How to run/test JavaScript? [closed]

I'm reading David Flanagan's "JavaScript: The Definitive Guide, 6th ed". It only actually tells users how to run JS code on page 311, where users are told of the following solutions: "Client-side ...
2
votes
0answers
99 views

Which JavaScript carousel zooms blocks from the playlist? [closed]

I saw a carousel/slider for displaying featured content a while ago that does something that most don't. It started fairly simply, with the top feature large, and a playlist to the side of other ...
2
votes
0answers
28 views

How to overcome politics of the net (Google translate code refuses to work from a specific region) [duplicate]

Possible Duplicate: How to overcome politics of the net (Google translate code refuses to work from a specific region) I have this Web Site. It uses the Google Translate API (Can't post the ...
2
votes
0answers
129 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.
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 ...
2
votes
1answer
190 views

How to fix page lag on load [closed]

I have a problem with my website, when you load the index page , the headers load fine but the main content appear with a delay between each photos. The error is only on the index because there is ...
2
votes
0answers
90 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 ...
2
votes
0answers
415 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 ...
2
votes
2answers
276 views

How do i properly use CustomVars in google analytics?

How do i properly use custom vars in google analytics? I used the code below and here is what i notice i only seen 'one' being in the get request After 24 hours only 'one' showed up After commenting ...
2
votes
0answers
436 views

Disqus integration in website.. what is wrong? [closed]

I try to embed a disqus forum in a website I created. I used the exact code and instructions they give on the installation instructions. I just don't get it. Not much on Google either. Is something ...
2
votes
1answer
88 views

@Viewport @media use for input type?

I've searched high and low for some way to setup my HTML5/CSS3 for various devices. Going by screen resolution isn't the best route because some times the screen size of one device is the same as ...
1
vote
3answers
323 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?
1
vote
2answers
971 views

How to get browsers to only download CSS/Javascript when it changes?

I had an epiphany earlier when reading codinghorror. On a content website (blog/forum/website) the basic things rarely change if at all. So I was wondering if there was a way to cache them and only ...
1
vote
2answers
454 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
3answers
372 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
296 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 ...
1
vote
2answers
135 views

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

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
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 ...
1
vote
1answer
475 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 ...
1
vote
1answer
586 views

Memory problem - CPU high usage in IE

I have a problem with a site, in which I try to find out what is wrong. The website is kiteclub.gr. I think that following two scripts are corresponding for the high memory usage from ie and cpu: ...
1
vote
1answer
91 views

Crawling retail websites to use as templates

I'm setting up a commerce website. I really like the Overstock website, and I was wondering if could simply crawl the website for the webpages, remove Overstock's logos, and use their website as a ...
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
2answers
252 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.