javascript (41,540)


html - Determine a user's timezone

html - Determine a user's timezone

Is there a standard way for a web server to be able to determine a user's timezone within a web page? Perhaps from an HTTP header or part of the user-agent string?…


Multiple submit buttons in an HTML form

Let's say you create a wizard in an HTML form. One button goes back, and one goes forward. Since the back button appears first in the markup when you press Enter,it will use that button to submit the…


php - How do I track file downloads

I have a website that plays mp3s in a flash player. If a user clicks 'play' the flash player automatically downloads an mp3 and starts playing it. Is there an easy way to track how many times a partic…


algorithm - Function for creating color wheels

Closed.This question needs to be more focused.It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by…


Format string to title case

How do I format a string to title case?…


algorithm - Efficiently get sorted sums of a sorted list

You have an ascending list of numbers, what is the most efficient algorithm you can think of to get the ascending list of sums of every two numbers in that list. Duplicates in the resulting list are…


javascript - How to detect which one of the defined font was used in a web page?

Suppose I have the following CSS rule in my page: body{font-family: Calibri, Trebuchet MS, Helvetica, sans-serif;}How can I detect which one of the defined fonts was used in the user's browser? Edit f…



Regex: To pull out a sub-string between two tags in a string

I have a file in the following format: Data Data Data[Start] Data I want[End] Data I'd like to grab the Data I want from between the[Start] and[End] tags using a Regex. Can anyone show me how th…


Modify Address Bar URL in AJAX App to Match Current State

I'm writing an AJAX app, but as the user moves through the app, I'd like the URL in the address bar to update despite the lack of page reloads. Basically, I'd like for them to be able to bookmark at a…


Triple Quotes? How do I delimit a databound Javascript string parameter in ASP.NET?

How do I delimit a Javascript databound string parameter in an anchor OnClick event? I have an anchor tag in an ASP.NET Repeater control. The OnClick event of the anchor contains a call to a Javas…




jquery how example get html from not with function and