I have a jQuery event handler that essentially looks like this:
$("textarea").live("focus, click", function() {
var o = $(this),
expand_height = "60px";
o.animate({height : expand_height});
}
As you can see, onfocus or onclick it is supposed to animate the expansion of the textarea from it's initial height (20px) to it's exp...
I'm not sure what the best way to approach this is.
I have a control that I want to be able to open and persist some data or change it on the fly.
function TaskControl(params) {
this.params = params;
this.openTaskControl = function () {
alert("openTaskControl");
}
$("#button").click(function () {
this....
Hello,
I'm trying to publish to another user wall, so it would appear as if HE published this post himself. For example, I want to write "I've published a new article on Youngo.com" on his wall.
I have an offline access and stream publish permissions. I also got the access token. I just can't figure how to do that using JavaScript.
Ca...
Hi everyone,
I know this is a hot topic and I know there have been previous questions with identical titles, but I tried everything and something's just not working right. For some reason, my Firefox will not preload the images. The images DO preload (as they should) in IE7/8 and Chrome. But not in Firefox.
EDIT:
I've created a new F...
HELLO
SORRY FOR FRENCH , i will try english
i have tree arrays like this
$keys = array("elment1","elment1","elment2","elment1");
// this one can have duplicates values ,
$operator = array("=","<",">","=");
// operators for Mysql query
$queries = array("query1","query2","query3","query4");
// mixtes values
the question is :
...
I've got the WP Slimbox2 plugin installed and I'm trying to have the caption's ULR point to a different site, not just the img URL. Any ideas out there on how this can be done?
http://www.erisdesigns.net/wordpress/in-the-cloud/
...
have traced JavaScript files under the JReport help folder that produced by RoboHelp, and find out reason. This is a bug of Chrome 5 and it is hard to walk around by modify RoboHelp's JavaScript files. The reason is as below
In the function getStubPage_inter(wCurrent) in JavaScript file whproxy.js, I add comments
function getStubPage_i...
For standard browsers you can use something like this to change the coloring of selected text.
div.txtArea::selection {
background: transparent;
}
div.txtArea::-moz-selection {
background: transparent;
}
div.txtArea::-webkit-selection {
background: transparent;
}
Is there a way to do this with javascript?
My users can select tex...
I have a function that is called whenever a select changes. If the select had an ID of "foo" there'd be a text field with an ID of "foo_other" after it that by default is styled "display:none".
If a value of "Other" is picked from the select, the function is supposed to display the text field, and set focus to it. If anything other than...
I have my front end script which has the following jQuery code:
$.get("/backend/post.php", {
title: title,
message: post,
stick: sticky
}, function (output) {
alert("Call Back");
}
}, "json");
stick is a boolean value, the other two are strings. I've confirm...
My JS works when I reference it in the MasterPage, and it works when I reference it in a Partial View (.ascx), but not when I reference from the View (.aspx). Any ideas why?
...
I am just trying to implement a simple RNG in JS.
What's happening is javascript evaluates 119106029 * 1103515245 to be 131435318772912110 rather than 131435318772912105. We know it's wrong since two odd numbers multiplied does not give an even number.
Anyone know what's up? I just want a reliable repeatable RNG, and because of these ...
Hi,
I see many web analytics application and otherwise use javascript to capture data on a client website, and then send it to a central server for processing/storage/presentation.
For a similar purpose I've been using a javascript snippet which generate a 1x1 pixel image request to the server. The request contains GET attributes with ...
I have three different versions of a mobilized website, and as the market is flooded with more and more phones, I'm struggling to keep up with knowing where to push them. I'm wondering if anyone has faced a similar issue, of how to detect the browser type, and forward to the appropriate version of the mobilized website (where it be text...
Preparing data in json format on backend and populating data to templates via ajax on frontend, what're the problems with this architect design? Assume all visitors use javascript-capable browsers, and we don't care about the number of HTTP connections that a webpage has to make.
...
I have a collection of Javascript files that together constitute a system. Different parts of the system are in different (global) namespaces (e.g., NSA, NSB, etc.) and those namespaces may be objects, e.g.
NSA = {
... lots of stuff ...
}
Now, in my various modules, I may have code such as:
NSA.method();
My code JSLints cle...
I'm using the jQuery plugin jQuery-Tokenizing-Autocomplete in a rails application with a has_many association.
I need to save the values to the database, but to do that I need it to be a string, not an array. So the result should equal "1","2","3". Hope this clarifies.
The javascript used to generate this array:
$.TokenList.ParseValue...
Is it possible to pause all script.aculo.us effects? So when I need I can just resume them from state where they were paused.
...
We are using jQuery to generate an XML fragment and then convert it to a string using the html() function. But as we just found out, and if anyone doesn't know, the html() JavaScript function as implemented in IE is broken, broken, broken. Basically, it capitalizes some tags, adds attributes to others "helpfully" (in our case, ), and gen...
Possible Duplicate:
How do I disable right click on my web page .
How can I disable right click in web-pages that I am developing?
...