I am trying to get a better understanding of the jQuery.map function.
So in general terms .map takes a array and "maps" it to another array of items.
easy example:
$.map([0,1,2], function(n){
return n+4;
});
results in [4,5,6]
I think I understand what it does. I want to under why would someone need it. What is the practical ...
At first image height is coming as zero, after that by refreshing the page i am getting its actual height. I need to get its height at first time? could any body helps me?
$j(document).ready(function(){
var imgV = new Image();
imgV.src="http://www.kerrvilletexascvb.com/Riverside%20Nature%20Center3.JPG";
...
Hi,
I need an edit-in-place plugin for jQuery but there are quite some around. I've been testing jeditable (http://www.appelsiini.net/projects/jeditable) but it lacks some basic options (like hover effect). I also found JEIP (http://josephscott.org/code/javascript/jquery-edit-in-place/) which has recently been developed but comes with m...
I have simple application, that shows list of many items, where user can display detail for each item, which is obtained by Ajax.
However, if user closes the detail and opens again, application makes another Ajax request, to get the same content again.
Is there any simple solution how to prevent this by caching requests on client, so w...
I am creating a list of data using Repeater Control. Some of the rows might have other rows that should be toggled using the main row's clickable image.
Here, is the HTML part
<table cellpadding="2" cellspacing="0" width="100%">
<asp:Repeater ID="repeatLockers" runat="Server">
<HeaderTemplate>
...
Within a masterpage I have a standard DataGrid:
<asp:DataGrid ID="dgMyGrid" runat="server" AutoGenerateColumns="false">
<Columns>
<asp:TemplateColumn>
<HeaderTemplate>
<asp:CheckBox CssClass="Checker" ID="cbSelectAll" runat="server" />
</HeaderTemplate>
<ItemTempl...
Hey all,
I have an application that I am writing that modifies data on a cached object in the server. The modifications are performed through an ajax call that basically updates properties of that object. When the user is done working, I have a basic 'Save Changes' button that allows them to Save the data and flush the cached object.
...
I'm using the recommendations laid down here (http://www.odetocode.com/articles/473.aspx) to write a JavaScript AJAX webchat system using simulated Namespacing and prototyping.
In one of my prototype methods I'm calling the $.ajax method in jQuery. What I then want to do is pass the returned JSON data into a method inside my JavaScript ...
I am building a REST based API (Read only) for accessing services of my application. I plan on writing a web application that will leverage these APIs to provide basic information on the status of the application. I plan to use AJAX (using jQuery) to show the information.
Originally I planned on using Grails, Spring MVC, RoR or one of t...
I have a variable d that I use like this:
$(function() {
for(i = 1; i <= 31; i++) {
var d = '#days' + i;
if ($(d).attr("id").substr(4,2) == 11) {
$(d).addClass("date_has_event");
//console.log("diez");
} else {
console.log("otro");
}
}
}
However I get th...
Hi, I have been getting more and more sick of all the quirks about control ids, trying to get your data in serverside (based on client-side events). I seem to spend more time fighting with controls in asp.net, that I think it takes me more time than I gain by using it.
I was thinking about using plain html/javascript with jQuery and a w...
I wrote this on a simple ASP.NET page:
jQuery(document).ready(function() {
jQuery("form").submit(function() {
alert("kikoo");
return false
});
});
and when I submit (by clicking on a button, link, ...), I never see the alert box.
Is there something in asp.net page that "bypass" the submit (I think about the dopostback javasc...
The behavior of "this" when function bar is called is baffling me. See the code below. Is there any way to arrange for "this" to be a plain old js object instance when bar is called from a click handler, instead of being the html element?
// a class with a method
function foo() {
this.bar(); // when called here, "this" is the foo...
I've got to develop an auto scaling arrivals and departures board at work.
It's started out easily enough with me creating a table with percentage based column widths (and the overall table being 100% width).
For now, I've got a small piece of JQuery letting me change the scale of my text but its only to prove the concept.
I'm really ...
I would like to upload files just like google mail does. I would want to use jQuery and PHP to do it is there anyway of getting the progressbar etc.?
Here I added a video of how google does it. http://dl.getdropbox.com/u/5910/Jing/2009-04-02_1948.swf
No flash, no perl or cgi please..
I guess I can live without the progressbar now I am...
I'm using the jquery plugin jqueryFileTree with the PHP connector (slightly modified to give directories individual classes) to show the contents of a directory. I want to, however, hide all file extensions. Has anyone done something similar? I can think of one or two ways of implementing it but they seem overly-complicated...
Is there...
Instead of the typical "Loading..." or animated gif, I want to display a better description of what is going on. (Kind of like what some splash screens do for applications). However, glancing at the Jquery documentation there doesn't seem to be a way to get the change in the XMLHttpRequest state.
What I would like to do is something li...
I have the following jquery code that I've embedded inside of a View:
$(document).ready(
function()
{
$(".dblclick").editable("http://localhost/Configuration/Edit", {
id: 'nodeID',
name: 'nodeValue',
event: "dblclick",
style: "inherit",
submit: "Save",
cancel: "Cancel",
submitdata : {divison: "1"}
...
I'm working on a windowing application for a website of mine. Right now, I have each individual window set up as a in the body of the site. I add new windows by literally adding the appropriate code to the end of the body element, and delete them by removing that div. (I'm using jQuery for the underlying JavaScript architecture.)
I've ...
I need to use Javascript to do three things:
Select all nodes with a class of "foo".
Find all words inside these nodes that begin with "*".
Surround those words with <span class="xyz"> ... </span>, where xyz is the word itself.
For example, the content:
<ul>
<li class="foo">
*abc def *ghi
</li>
<li class="bar">
abc *de...