453 posts tagged with javascript.
Displaying 51 through 100 of 453. Subscribe:

How to divide a div into two triangles with Javascript?

Javascript question: I have a rectangular div. Imagine that div is divided from one corner to the other to make two right triangles. I would like to, on hover, have Javascript tell me which triangle my mouse is over. But my trigonometry powers are failing me, and Google is coming up short. Hope me, admin!
posted by eustacescrubb on Jan 8, 2013 - 6 answers

How to solve a complex statistics problem with a script?

In this game, you roll a number of six-sided dice to get a total. The total is either the highest single die result, or the sum of any multiples rolled, whichever is higher. For example: If I roll three dice and get a 3, 4, and 6, my total is 6. But if I roll a 4, 4, and 6, my total is 8, the sum of the two 4s. What I want to find out is the mean, median, mode, and standard deviation of the possible totals given N dice. How might I create a simple script to compute this? [more inside]
posted by j0hnpaul on Nov 30, 2012 - 24 answers

Looking for an Externally Hosted Image Slideshow for the Web

I need an image slideshow script for a website. Unfortunately, I'm extremely constrained by our dinosaur CMS. [more inside]
posted by toastedcheese on Nov 30, 2012 - 9 answers

Safari Bookmark That Controls Scroll Position

In Safari 6, I have a folder of bookmarks on the Bookmarks Bar that I visit each day by right-clicking and choosing "Open in Tabs". I'd like one of those bookmarks to open to a specific vertical scroll position on the page in question. Is that do-able? [more inside]
posted by boombot on Nov 29, 2012 - 2 answers

Im in yr wiki, trackin yr error messages.

I have a MediaWiki installation on new hardware to replace an old public website. Occasionally someone visits the site using a dead link and gets MediaWiki's "There is currently no text in this page". I can customize the message they get, but how can I get a notification (ideally with Google Analytics custom variables) whenever this happens, without using GA's standard Javascript? [more inside]
posted by supercres on Nov 29, 2012 - 3 answers

Sorting things on the fly in Backbone.js

Question about sorting in the Backbone.js framework. [more inside]
posted by steinsaltz on Nov 12, 2012 - 17 answers

Unserializing Wordpress data into JSON

I'm building a Javascript application that will do cool things with JSON data dumped from a client's Wordpress. It's working great except for parts that are in this PHP-style serialized data that I can't figure out how to deal with in Javascript. Can someone recommend a good method for this? [more inside]
posted by steinsaltz on Nov 5, 2012 - 9 answers

JavaScript question

JavaScript question: Here in the U.S. myDate.toLocaleDateString () returns Thursday, Oct. 04, 2012. Can anyone give me an example of the date formatted for another locale?
posted by markcmyers on Oct 4, 2012 - 2 answers

What is the lowest number and what is the highest number generated by Math.random()?

JavaScript question: What is the lowest number and what is the highest number generated by Math.random()?— 0.0000000000000000 or 0.0000000000000001, 1.0000000000000000 or 0.9999999999999999
posted by markcmyers on Sep 25, 2012 - 3 answers

My Gut Is Saying "Run" but My Brain is Scared

I posted this question a few months back but would like to... ask again with a little more details. I bit the bullet and signed up for classes again, and after my first half day back, I'm now at home having a panic attack regarding my decision. I'm a historic preservation graduate student, and after a whole year of freaking out about what I want in life, all I really want is a job that pays well, or an incredibly marketable skill. I doubt I will get either with this degree. [more inside]
posted by ohmansocute on Sep 25, 2012 - 17 answers

Advice on converting a python program to a web app?

Hi I have programmed on eclipse, a reasonably straightforward program in Python 2.7 that applies image filters to user selected images e.g. by turning them to sepia, black & white, negative, etc. It uses Tkinter for the graphics user interface and the program functions ok. However, I was thinking about how to turn this into a web app. So to transfer this to an Amazon cloud server, I understand that for the client side user interface I would need to convert the program by adding html and javascript to the client side while python handles the server side? Does anyone know of any tutorials or other resources that are particularly good at covering web apps like this using python, html and javascript?
posted by conrad101 on Sep 19, 2012 - 3 answers

Can you explain why this works in JavaScript?

Can you explain why this works in JavaScript? [more inside]
posted by markcmyers on Sep 8, 2012 - 9 answers

JavaScript/jQuery Selectors

JavaScript Filter: New to JavaScript and jQuery. Need help wrapping my head around selectors. [more inside]
posted by JPowers on Sep 4, 2012 - 11 answers

Browser based programming environment?

I want to set up a browser-based programming environment for my projects that I can access from the web whenever I'm not at home. [more inside]
posted by jsturgill on Aug 14, 2012 - 2 answers

JavaScript quandary

In JavaScript, I can't think of any situation in which nested if statements can't be replaced by more concise code that employs the logical operators &&, || and !. Can you think of any?
posted by markcmyers on Aug 11, 2012 - 10 answers

Flickr pictures won't display

Forgive me if this is a) really basic and b) has been asked before (I have searched the questions, honest!). My mother has a Pro Flickr account, but is unable to view her pictures, getting only the broken image link in the photo box. How can I fix that please? [more inside]
posted by Myeral on Aug 7, 2012 - 16 answers

today is

Website question, now to automatically change data based on current date [more inside]
posted by wandering_not_lost on Aug 3, 2012 - 6 answers

Question about JavaScript variables

In JavaScript, if I define a variable within in a conditional block, is the variable defined through a type of hoisting even if the condition isn't met? [more inside]
posted by markcmyers on Aug 2, 2012 - 5 answers

Why so much Javascript-loaded content?

Why is the page content loaded by Javascript? [more inside]
posted by urbanwhaleshark on Aug 1, 2012 - 14 answers

Enable Facebook Comments for mobile viewing in Google Blogger?

Is there a way to enable Facebook Comments Box for mobile viewing in Google Blogger? I used these instructions to enable Facebook comments on my blog. It worked out, but it's not showing up in the mobile view. This site discusses how to add a widget to the Blogger Mobile Template. The Facebook Comments Box is not exactly a widget. I imagine there's probably a solution to getting it to appear in the mobile view, similiar to this, but I don't know how to do it. Is there a way to add something like this (mobile='yes') to the plugin code?
posted by Bushmiller on Jul 25, 2012 - 0 answers

Bookmarklet help wanted

Help me find a good set of tools for creating bookmarklets. [more inside]
posted by benito.strauss on Jun 12, 2012 - 9 answers

Building a Narrowing-Focus Questionnaire

How difficult would it be for someone with intermediate HTML/coding skills to build something similar to the Dog Breed Questionnaire on the Animal Planet website? [more inside]
posted by These Birds of a Feather on May 28, 2012 - 7 answers

Shark animation machine: go!

I want to make a lightweight, non-Flash animation for my webpage that looks like this one example... [more inside]
posted by pavane on May 18, 2012 - 3 answers

Have my graph and graph it too?

How can I generate a graph server-side, and update it client-side? [more inside]
posted by fvox13 on May 15, 2012 - 11 answers

3D graphics in a 2D context (for dummies)

HTML5 canvas question: I'm trying to model a 2D grid in 3D space and it's not working right. Can you help? [more inside]
posted by The Winsome Parker Lewis on Apr 17, 2012 - 10 answers

In JavaScript, since global variables are available to functions, is there ever any reason to pass them to functions through arguments?

In JavaScript, since global variables are available to functions, is there ever any reason to pass them to functions through arguments?
posted by judytaos on Apr 7, 2012 - 12 answers

Can you decode this Javascript spam?

Help me decode this obfuscated javascript spam document I accidentally ran in my browser [more inside]
posted by coffee and minarets on Apr 4, 2012 - 10 answers

Do serious JavaScript coders use string-formatting methods like big()?

Do serious JavaScript coders use string-formatting methods like big()?
posted by markcmyers on Apr 4, 2012 - 5 answers

I want to make something beautiful, but I need some help with this paintbrush here.

I want to make an awesome web resource, but have hit a wall on the technical side of it and need to know what to ask for. I want to make an image with a slider that reveals and hides different triggerable pop-ups depending on where you move the slider. [more inside]
posted by history is a weapon on Mar 29, 2012 - 25 answers

Create a web-survey using javascript.

Advice on using Javascript and JQuery to create a web-survey. [more inside]
posted by a womble is an active kind of sloth on Mar 24, 2012 - 6 answers

JavaScript precedence for dummies

I have a hard time remembering operator precedence rules in JavaScript. Is there anything wrong with using parentheses to force the precedence I want so I don't have to remember the rules?
posted by markcmyers on Feb 20, 2012 - 12 answers

What kind of magic does QString().setNum() do?

What kind of magic does QString().setNum() do to convert -1413011644 to 2881955652? [more inside]
posted by crawl on Feb 16, 2012 - 6 answers

How to create a "Chat With The Site Owner" widget?

What is the best way for a web developer to create a custom "chat with the site owner" widget? [more inside]
posted by steinsaltz on Feb 15, 2012 - 10 answers

How can I protect my javascript code from being stolen?

I've written some customizable interactive activity templates in javascript that work on tablets and I want to sell to publishers. How do I prevent anyone from stealing and re-using the code? [more inside]
posted by postergeist on Feb 15, 2012 - 9 answers

Why does hitting 'enter' when searching redirect my browser?

Weird re-direct issue when searching Google... [more inside]
posted by Fidel Cashflow on Feb 8, 2012 - 8 answers

Literal notation vs. constructor in JavaScript

Literal notation vs. constructor: Which one should I use to create an object in JavaScript?
posted by markcmyers on Feb 7, 2012 - 5 answers

Can I add a javascript slideshow to my website articles even if Im using a proprietary CMS?

Can I add a javascript slideshow to my website articles even if Im using a proprietary CMS? [more inside]
posted by Senor Cardgage on Feb 6, 2012 - 10 answers

Can I call functions in a modeless dialog from the parent

Is there anyway to call functions of a modeless dialog (in IE) from the parent window that spawned the dialog? [more inside]
posted by zeoslap on Feb 3, 2012 - 3 answers

Tell me how to stop making this JavaScript mistake.

I keep making the same JavaScript mistake, writing = when the rules call for ==. It's because both signs mean "equal," but in different contexts. Any tips for reprogramming myself so I get it right every time?
posted by markcmyers on Jan 30, 2012 - 29 answers

Basic Javascript Syntax Question

Can you (of all people) help me figure out a javascript syntax issue I'm having? [more inside]
posted by Hypnotic Chick on Jan 18, 2012 - 25 answers

Automatically adding Amazon affiliate codes

Is there a straightforward way to transform Amazon links to add an affiliate code? [more inside]
posted by fightorflight on Jan 11, 2012 - 4 answers

Internet explorer development

I've got some JavaScript I want to turn into an extension (plug-in?) so it will always run for certain webpages for Internet Explorer, but because I've been using Chrome/Firefox for years, I don't know what search terms to use. Do you know of a simple how to resource? Grease monkey like alternatives aren't an option for me.
posted by Pants! on Jan 10, 2012 - 2 answers

What is the black magic occurring in this Wordpress theme?

Can anyone help me make sense of the javascript/jQuery (and black magic?) behind the category list in the portfolio of this Wordpress theme? [more inside]
posted by This_Will_Be_Good on Jan 10, 2012 - 11 answers

Cross-platform javascript apps

I'm working on a program that I want to be cross-platform, and someone suggested writing it in Javascript and using a javascript/html5 engine to display it without using a web browser. Are there any resources to get me started on this? [more inside]
posted by SpecialK on Dec 23, 2011 - 11 answers

Touch here to switch to espanol every. single. time.

Is it possible to detect a smartphone user's language settings and serve them web content in their chosen language? [more inside]
posted by Uncle Ira on Dec 13, 2011 - 6 answers

What's the URL this Javascript button goes to?

Is there a way to discover the destination URL that one gets by clicking a Javascript button? [more inside]
posted by Mo Nickels on Dec 10, 2011 - 11 answers

Going beyond basic programming

I'm a largely self-taught web designer (HTML/CSS/design) with fairly basic but competent enough programming skills (PHP/Javascript/Python) to do simple development and be able to understand roughly what's going on when I work with developers. What are some good things to learn (libraries, techniques, math?) in order to do more interactive and dynamic things on the web, particularly when it comes to data visualization? [more inside]
posted by OverlappingElvis on Nov 23, 2011 - 5 answers

Hacking a way through Google+ and Skype audio cancellation

Hacking around sound cancellation on Google+ and Skype: Two tier question here about a related problem. Firstly, a way to sidetrack the software audio limits of a Google+ Hangout. Secondly, a way to stop Skype from cancelling out audio from one half of a conversation. [more inside]
posted by 0bvious on Oct 21, 2011 - 2 answers

How to convert this jQuery snippet to plain JS or Mootools?

Need to get standard Javascript or Mootools equivalent code for this jQuery snippet. [more inside]
posted by circular on Oct 15, 2011 - 11 answers

Making artwork "pop" on the web

Question for a web app I'm building... How can I distort a flat image as though it were projected onto a contour, using JS/jQuery and HTML5 or ColdFusion's server-side image processing? [more inside]
posted by The Winsome Parker Lewis on Oct 13, 2011 - 8 answers

Page: 1 2 3 4 5 6 7 8 ... 10