My understanding is that mime types are set by the web server. Why do we add the type="text/javascript or type="text/css" attribute? Isn't this a useless and ignored attribute?
Does anyone know where I can find the code for the carousel.us JavaScript 3D Carousel? Developer's site (http://www.piksite.com/carousel.us/) is down. I see it referenced all over in articles and tutorials but so far haven't been able to find the actual code to download except from that site which is just ads now.
Client wants that specific thing and it doesn't make sense to code it from scratch.
Thanks.
Just had my mind going today. I spent some time in IE debug mode, browsing the web as usual, and oh boy do I see many errors :) Most of these errors are because some value are of a different type than expected (at least as far as I interpret the error messages).
What are the reasons JavaScript and similar scripting languages aren't strongly typed? Is it just to make the languages "easier" to understand and more accessable, or is the lack of a "compile-time" the real problem?
I'm reading the Google Maps API and it states that the:
"callback: The function to call once the script has loaded. If using the Auto-loading feature, this must specify a function name, not a function reference.
What's the difference been a JavaScript function name vs a function reference?
http://code.google.com/apis/ajax/documentation/#GoogleLoad
The formatting of HTML and Javascript is just crazy. It actively works against you. Does anybody know how to turn this off completely? (I Do not speak about th HTML designer, I speak about what happens when you press ctrl-k,d in HTML view).
I have this code working in C#:
var request = (HttpWebRequest)WebRequest.Create("https://x.com/service");
request.Method = "GET";
// Add X509 certificate
var bytes = Convert.FromBase64String(certBase64);
var certificate = new X509Certificate2(bytes, password);
request.ClientCertificates.Add(certificate, "password"));
Is there any way to reproduce this request in Javascript? Third-party libraries would be fine for my purposes.
Dear experts, I am quite new to javascript and I often see coders use those lines interchangeabaly.
document.body.getElementsByTagName();
and
document.getElementsByTagName();
What is the difference, benefits?
Does this have anything to do with FF and IE?
I am trying to extract data from a website using PERL. Below is the description of the site:
site displays data dependent on a date
a calendar is displayed that is used to change the date
upon clicking the dates in the calendar, it calls a javascript function that passes in the date and refreshes the part of the page that displays the data
My question is, how do I execute that JS function so that I could loop through the dates that I need data from?
Thanks in Advance
Possible Duplicates:
Do you recommend using semicolons after every statement in JavaScript?
Why use semicolon?
What are the ups and downs of using semicolons to end commands in JavaSript? What are the arguments for and against doing so?
<?php
$data = array('foo'=>'bar',
'baz'=>'boom',
'cow'=>'milk',
'php'=>'hypertext processor');
echo http_build_query($data);
/* Output:
foo=bar&baz=boom&cow=milk&php=hypertext+processor
*/
How to do similar thing in javascript,say, get the query string from the array ,and convert the array to query string?
How to capture key press, e.g., Ctrl+Z, without placing an input element on the page in JavaScript? Seems that in IE, keypress and keyup events can only be bound to input elements (input boxes, textareas, etc)
I'm considering creating a simple remote debugging application for Javascript. Actually, I want to provide an object to Firebug Lite and let it do all the job.
So, can I get an object from one page, serialize it, send it to server and then to another browser and finally see the same results in Firebug Lite (on that other client) as I would see on the first browser (with doing "console.dir(obj)")? Is it possible to do?
How can I loop through all members in a JavaScript object including values that are objects.
For example, how could I loop through this (accessing the "your_name" and "your_message" for each)?
var validation_messages = {
"key_1": {
"your_name": "jimmy",
"your_msg": "hello world"
},
"key_2": {
"your_name": "billy",
"your_msg": "foo equals bar"
}
}
Why do I never see the prototype property in JavaScript code I edit, from books and documentation I've read, it seems to be a cornerstone of the language.
Do you have any suggestions of graphing libraries to use with a GWT project? I need to graph a set of data points and several lines. Also some shading of the area under a line. I am open to suggestions of straight Javascript libraries or Java that I can just use with GWT.
How do I set up a listener in jQuery/javascript to monitor a if a value in the textbox has changed? The value is fed into the textbox by a scanner,so each time an item is scanned the value in the textbox changes.I need to display some information based on the value in the textbox.
I am currently investigating options for working with the canvas in a new HTML 5 application, and was wondering what is the current state of the art in HTML canvas JavaScript libraries and frameworks?
In particular, are there frameworks that support the kind of things needed for game development - complex animation, managing scene graphs, handling events and user interactions?
Also willing to consider both commercial and open source products.
I'm compiling a list of audio + video players (flash / javascript / other) that I can embed into a website.
flowplayer: http://flowplayer.org/
jw player:
http://www.longtailvideo.com/players/
premium beat:
http://www.premiumbeat.com/flash_resources/free_flash_music_player/
xspf web player:
http://musicplayer.sourceforge.net/
yahoo media player:
http://mediaplayer.yahoo.com/
any popular ones I'm missing? (anyone know if I can skin / customize any of them to operate similar to the Windows vista volume control?)
They are very different kind of languages and the way they handle exception might be pretty different.. How is exception handling implemented and what are the implementation difference within these languages?
I am asking this question also because I noticed that C++ exception handling seems to be very slow compared to the JavaScript version.