I can not figure out what all the parameters to the arc() function are (by experimentation) and I have not found any tutorial that seems to explain them. Where would a good explanation of the arc() function be?
...
Are there any good JavaScript frameworks out there which primary audience is not web programming? Especially frameworks/libraries which improves the object orientation?
The framework should be usable within an desktop application embedding a JavaScript engine (such as Spidermonkey or JavaScriptCore), so no external dependency are allowed...
I'm trying to use XULRunner to add a GUI to a command line based program. One solution would be to use something like popen from the XUL application to interact with the command line program. Does XPCOM have popen? Alternatively, does XPCOM have enough primitives to create popen? Is there another approach that gives access to the standar...
I have Microsoft Script debugger installed and selected (somwhere) as the script debugger of IE. I want to make VS the default script debugger. When I uninstall MS Script debugger IE just wouldn't start any debugger on a javascript error.
So how do I go back to VS as my default IE script debugger?
...
I have some javascript menu code that works just fine from a separate directory.
But, when I try to call the same .js files from within the same directory, it won't see the files.
The following works from another directory:
script type="text/javascript"> var vbImgPath="../00-Menu-Files/"
But, if I do this from within the same folder, ...
My current code looks like this, how can I pass my array to the controller and what kind of parameters must my controller action accept?
function getplaceholders() {
var placeholders = $('.ui-sortable');
var result = new Array();
placeholders.each(function() {
var ph = $(this).attr('id');
var sections = $(thi...
I'd like to have some of the scriptmanager features in the new Asp.net MVC model
1- Script combining
2- Resolving different paths for external javascipt files
3- Minify and Gzip Compression
Here is what I found but not sure is the best way for mvc approach.
In general what is the your approach to deal with javascript code in the MVC...
Hello,
I am wondering if it is possible to have a sort of thumbnail image gallery, in which clicking on a thumbnail would show the full image in a layer. I was wondering if it was possible to load all layers and respective images and use javascript to change the z index or something similar to avoid having to reload or leave the page. I...
I'm running google earth in a web browser that is embedded in a c# app. I have captured an event through javascript that fires when the user right clicks on the globe. How can I bubble an event to go from the javascript to c# so that it can be handled there?
Thanks
...
Hi all,
I'm trying to implement this JavaScript code on blogspot (which parses XML code, some code works better than others)
</head><body>
<div class="navbar section" id="navbar"><div class="widget Navbar" id="Navbar1"><script type="text/javascript">
function setAttributeOnload(object, attribute, val) {
if(window.addEventLi...
if i have :
<div class="carBig"></div>
and
<div class="car"></div>
and $(".car").size();
i get 2 items ..
...
I am using jQuery to invoke page methods for my AJAX calls using $.Ajax. This works very well, and is very lightweight. However, I have noticed that when an exception is thrown from the .NET code, Elmah just logs it as a File Not Found exception, or will not log anything at all, rather than logging the actual exception that was thrown. I...
i'm currently using jQuery and am looking for a way to slide an image left as a new image slides left into its place.
specifically, i have a static image of an iphone. when i click a link, i need the current image displaying on the iphone's image viewer to slide out to the left as the new image slides in from the right. oftentimes the...
I am trying to write a JavaScript function that will return its first argument(function) with all the rest of its arguments as preset parameters to that function.
So:
function out(a, b) {
document.write(a + " " + b);
}
function setter(...) {...}
setter(out, "hello")("world");
setter(out, "hello", "world")();
Would output "hello...
I have the following code:
var address;
getAddress(0,0);
function getAddress(latlng)
{
if (latlng != null)
{
geocoder.getLocations(latlng,
function(addresses)
{
if(addresses.Status.code == 200)
{
address = addresses.Placemark[0].address.toString();
alert(address); // Outputs something :...
Problem
I've got a number of Dojo components on a page. When the user tries to tab from an input like component to a grid like component, I get a JavaScript "Can't move focus to control" error. The user base uses IE6.
Solution
The first element in the DojoX Grid layout cannot be hidden. If it is hidden, you get a a JavaScript "Can't ...
I'd like to hide a div when user click anywhere on the page outside of that div. How can I do that using raw javascript or jQuery?
...
This only happens with IE (all versions), on line 1120 in
jquery-1.2.6.js I get the following error:
Line 1120:
Invalid Property Value
The line in the js file is the following:
elem[name] = value;
It is inside attr: function( elem, name, value )
Does anybody have a problem similar to this?
...
So I have this app that checks for updates on the server getting a JSON response, each new update is put at the top of my list on a new div that is added via insertBefore using javascript.
All works just fine, but i'd like to add an animation effect when the div is added, i.e. "slowly" move the existing divs down, and add the new one at...
This is probably a simple question, and I'm slightly embarrassed to ask it, but I've been working with this chunk of JavaScript ad code for a while and it's bothered me that it's never really made sense to me and is probably out dated now with modern browsers. My question is, do we need to check for browser types still, and what is that ...