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.
7
votes
3answers
334 views
Directory structure for a website (js/css/img folders)
For years I've been using the following directory structure for my websites:
<root>
->js
->jquery.js
->tooltip.js
->someplugin.js
->css
->styles.css
...
0
votes
0answers
94 views
Responsive Menu Navigation [closed]
I am sure you all have heard of Responsive/Adaptive Website Design and Development, but for the sake of beginners to the technique and skill, what are ways to create a Responsive Menu Navigation?
I ...
3
votes
1answer
109 views
What is this thing called?!?! (bottom of screen popup)
I am looking for the name and some possible jquery libraries etc for the standard bottom of screen popup bar.
Its like a little bar that pops out on the bottom of the screen after X seconds or ...
2
votes
0answers
44 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
2answers
2k 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.
0
votes
1answer
302 views
SEO - Index images (lazyload)
Note:My question is not about Javascript.
I'm developing a plugin for jQuery/Mootols/Prototype, that work with DOM.
This plugin will be to improve page performance (better user experience).
The ...
1
vote
1answer
126 views
SEO - Google and link cleaning / cloaking [duplicate]
Possible Duplicate:
Does the Google spider render JavaScript?
This a SEO related question, not a code related one.
Googles own link cleaning / cloaking
Gå to http://www.google.com and ...
7
votes
3answers
2k 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 ...
3
votes
2answers
144 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, ...
0
votes
0answers
11 views
zooming causing problem with panning [closed]
Heres a fiddle for example: http://jsfiddle.net/f5rSw/ After the zoom, if I pan the paper, the zoom doesn't stay. Even more, It some times give my viewbox's X and Y NAN values, why?
what am I missing ...
1
vote
1answer
144 views
Tracking logged in vs. non-logged in users in Google Analytics
I am building a social media site that is similar is structure to twitter and facebook.com where unauthenticated users who go to https://mysite.com will see a login + sign-up page, and authenticated ...
0
votes
0answers
33 views
Bookmark login_email at new PayPal URL [closed]
I have used this Bookmark in Firefox so that my email would be autofilled and I only had to write in my password. PayPal has recently changed its login URL. Has anybody figured out a method to achieve ...
2
votes
1answer
562 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
0answers
71 views
Which JavaScript carousel zooms blocks from the playlist?
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
2answers
137 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 ...
0
votes
0answers
12 views
Javascript widgets: do links count as SEO backlinks? [duplicate]
Possible Duplicate:
How good is it for SEO if you have a widget that lives on other sites?
On my website I offer an option to let users embed information from my site with some kind of ...
0
votes
2answers
49 views
Help choosing slider
I'm looking for JS implementation of effect similar to:
http://www.citroen.it/home/#/home/ main slider
Joomla! module will be the best solution, however, standalone JS snippet is also an option.
...
-3
votes
2answers
62 views
Jquery lie about size of download [closed]
When you go to jquery.com you see on top right
"Grab the latest version!
Choose your compression level:"
its saying 32Kb for Production (compressed) version in reality when you download it its 91Kb. ...
0
votes
0answers
45 views
Unable to debug javascript? [closed]
I’m having some problems debugging an encoded javacscript. This script I’m referring to given in this link over here.
The encoding here is simple and it works by shifting the unicodes values to ...
5
votes
4answers
270 views
Will JavaScript (document.write) content be indexed by search engines?
I have an external JS file embedding some content inline in a web page.
Basically it just does a document.write("my content") via a script tag and loaded externally with the src attribute.
Any ...
0
votes
0answers
40 views
How do I protect sending scores from HTML5 games to my server [closed]
On backend I am using java. I have a game in HTML5; when user completes it I sends an Ajax call to save the score to database. Now, someone can easily use tools like Fiddler and firebug to modify ...
5
votes
1answer
112 views
Repeated calls with random Javascript append to the URL
I keep getting calls to my server where there is random Javascript appended on the end of lots of the calls, e.g.:
/UI/Includes/JavaScript/).length)&&e.error(
...
15
votes
1answer
47k 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 ...
0
votes
4answers
171 views
Web development and tips for building a website and the advantages of using HTML 5 in the site [closed]
I am trying to make a website for my college, and the program starts from jan 13 and we get 15 days of time to develop a running site.
The best site will become the college site. I am participating, ...
4
votes
1answer
252 views
How to overcome politics of the net (Google translate code refuses to work from a specific region)
According to the FAQ's I am not sure if my question is a ok to ask or will be closed or should I post it in the meta or even I would blame some one for downvoting it. However it is one that has been ...
0
votes
1answer
147 views
Does google see the output of document.write? [duplicate]
Possible Duplicate:
Will JavaScript (document.write) content be indexed by search engines?
I've got a site where people can list machinery for sale. Each item for sale has it's own dynamic ...
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 ...
4
votes
4answers
427 views
Protect js code from being stolen
I have developed an web app with jquery,html-css markup which would be an premium web app. So I have to ensure the security of the code from being stolen.But as all these are client side,so there is ...
1
vote
1answer
102 views
S1000D JavaScript search engine
I am developping a static web application. My goal is to create a search engine.
So, I have a list of training's documents and I want to search a fulltext from each one;
My documents are stored on ...
1
vote
3answers
23 views
Separating portion of website to its own server
So my job is to take the homepage (or maybe I should say "homesite" because it encompasses a few interrelated pages) and drag this onto its own Apache server. The problem I'm having right now is being ...
10
votes
3answers
2k views
Does the Google spider render JavaScript?
Does the Google spider knows how to render JavaScript, or only HTML?
5
votes
1answer
482 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:
...
2
votes
1answer
168 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
2answers
394 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 ...
0
votes
0answers
80 views
Display a JSON-string as a table [closed]
I'm totally new to JSON, and have a json-string I need to display as a user-friendly table.
I have this file, http://ish.tek.no/json_top_content.php?project_id=11&period=week, witch is showing ...
3
votes
1answer
552 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" ...
18
votes
4answers
393 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 ...
-2
votes
3answers
154 views
If something can be achieved using CSS or JavaScript, which will render faster? [closed]
I have two working solutions for hover navigation that I've built. One solution uses JS, one use CSS. My question is, assuming a browser is JS-enabled, which solution will work faster?
I'll most ...
-2
votes
1answer
30 views
What shoud I look for, for this project? [closed]
I recently finished my C++ programming class, and I'll start school in september. There is a limited online Parking spot registration and it always gets filled very quickly.
I would like to create a ...
0
votes
1answer
106 views
XSS with local storage - Is it a concern?
I am working on creating a demo of how to use HTML5's local storage. The demo will be placed on my personal website and will append the user submitted data to the html. Can XSS stored on the client ...
3
votes
2answers
429 views
How can I create links in javascript that are crawlable by search engines?
If I use JavaScript + jQuery, for example, does links inserted in $(document).ready() will be available for crawling? How can I insert crawlable links in JavaScript?
3
votes
5answers
401 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 ...
0
votes
1answer
94 views
Encouraging recurrent users to +1 (or Facebook Like)
I want to display a message to users who have visited my site 5 times, but have not yet +1'ed or Like'd to please do so. I guess javascript and a cookie are likely required. But have no idea how to go ...
1
vote
2answers
151 views
cookie not being sent when requesting JS
I host a webservice, and provide my members with a Javascript bookmarklet, which loads a JS sript from my server. However, clients must be logged in, in order to receive the JS script. This works for ...
1
vote
1answer
46 views
Posting a link to our page on facebook doesn't resolve correctly within FB
We have a product page, there is a javascript popup that requires users to enter an email address to gain access. But the page behind the popup is fully rendered (for SEO value and such).
...
3
votes
2answers
328 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 ...
-3
votes
3answers
130 views
Interlinking websites using javascript - safe for SEO?
I have a nutrition network of 20 sites which share the same hosting account, though different C class IP's.
They were interlinked and suffered a massive traffic drop after penguin.
I have decided to ...
0
votes
1answer
172 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:
...
11
votes
4answers
942 views
Loading main javascript on every page? Or breaking it up to relevant pages?
I have a 700kb decompressed JS file which is loaded on every page. Before I had 12 javascript files on each page but to reduce http requests I compressed them all into 1 file.
This file is ~130kb ...
3
votes
1answer
351 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: ... ...
