jquery

jQuery ui dialog - how can i add an asp:button to the dialog button pane?

Hi, I want to add an asp:button to my dialog - for confirmation purposes as part of gathering some data. My intention is to postback on click. I have no problems adding this button to the div that im turning into a dialog (or getting it to postback), however as expected, the button is not part of the dialog button pane - the lowest par...

YUI replacements for jQuery.replaceWith and jquery.append

I have some jquery code which I am trying to translate to YUI. I am using YUI 2.8. Using jquery I could have easily replaced a dom element. Is there a good way to use YUI in place of jquery.replaceWith and jquery.append. I tried writing my functions as below, but these can only take text, while I need to pass a rendered dom like. <p><a h...

Adding ASP.NET control to page using jQuery

I'm writing an ASP.NET app in which a table of objects is created by the user client-side. I envisage them clicking "Add item" and a new 'row' is created in the table with textboxes for them to enter their stuff. I can do this fine by adding HTML with jQuery. The problem is that one of the fields in the row for the user to fill in needs...

how to show HTML tags in DIV

I have an HTML static page how i can show it in a div ? ...

JQuery everywhere.

I would like to know if I can include some Jquery inside another JQuery function, I'm changing the src attribute of the #ggMap item onclick="$('#ggMap').attr('src', 'googleMap.php?x=690&y=390&address=');return false;" and Thishis is what I'm trying to do: onclick="$('#ggMap').attr('src', 'googleMap.php?x=690&y=390&address=$('#addr...

How do I know a a batch of images are loaded?

I have a Javascript Map kit, and it use Image object to load images. Every time I move/resize the map, it will load many images. But I want to know how I can fire a function when all images are loaded after I do a move/resize action. Is there a way that I can create a listener like "allimages.onload=function(){}" ? Or is there any wor...

JQuery Thickbox

I'm using the JQuery Thickbox extension. Can I use it on div tags and span tags as well or am I limited to anchor tags and html button? If I can use it like that, how? ...

tag replacement

Hi everyone ! Does anyone know how to set a new tagName to a tag using Jquery? Let's say i have an HTML document and I want to replace all 'fieldset' width 'div'. Thanks in advance ! ...

jQuery grouping plugin

Is there any jQuery plugin that can group data - either list or table - based on my criteria? For example: $("table").grouping({column: 1}); or $("ul li").grouping({getgroup: function(item) { return $(item).text().substr(0, 10); } }); Something like this. The point here is that I need to change group dynamically - for example...

jQuery animation won't run on one element

I have the following jQuery code which runs when I'm clicking an option in a select box: $('#name, #account, #kid') .attr('disabled', 'disabled') .css('background-color', '#ffffcc') .animate({ backgroundColor:'#ffffff' }, 1000); This code takes the three input fields #name, #account and #kid, disables them, change backgrou...

Full Calendar : Adding time to the calendar's json

I've been using fullCalendar for a while and getting data via json. there is a sample listed below. [{"id":2,"name":"1","title":"takvim","start":"2009-11-04","end":"2009-11-04"}] it works fine but I upgraded the new version of the calendar and it has agenda-week view. I need to use grid area(hours there) on agenda-week so my json must ...

Display large image in browser: allow zoom: when clicked, add marker & retrieve pixel x/y

It feels like what I want to do should be fairly common, but I can't find any plugins that do it. I want to display a large image in the browser, allow the user to zoom in on it (a UI like zoomify, or like a map viewer), and allow the user to click on the image and add a marker. The marker should return the pixel x/y coordinates of the ...

Jquery Ajax XML respond problem

Hi guys, I am a little bit confused on something, see I am doing an Ajax request via Jquery, I send back encoded data in an xml document ( using htmlentities to prevent XSS ) but the thing is when I parse the XML and get the data it seems Jquery automatically decodes the htmlentities and I end up with vulnerable data. Do you have any id...

Variables in a setTimeout function (jQuery)

Hi, I'm trying to use a jQuery statement inside a setTimeout function, but I don't get it to work. I tried a lot of variants, like this one (I'm using 'this' because the setTimeout is inside an each function, and the selector is cached/stored in an object, thus the $selector): setTimeout("" + this.$selector + ".val('" + this.savVal + "...

Order table with hidden td's

Hola, les tengo una consulta... tengo una tabla la cual cada tiene una tabla adentro con una clase llamada "cnt" y otra que corresponde a una letra. Con ésto, lo que hago es utilizando una funcion javascript y teniendo una lista de letras con labels que en el onclick van a esa funcion, ocultan o muestran dependiendo de la letra, la tabl...

How to use Ajax JQuery in Spring Web MVC

Hello All.. I am using spring web mvc for my application. I have 1 dropdown list in my JSP View, coming from following request called savegroup.htm <bean name="/savegroup.htm" class="com.sufalam.mailserver.presentation.web.GroupSaveController"> <property name="sessionForm" value="true"/> <property name="command...

variable from javascript to php

here is the code : $('#sousmenu a').click (function (){ startSlideshow(<?php echo json_encode(glob("photos-" .$_GET["folder"]. "/*.jpg"));?>); return false; }); The question is i like the HREF to change and get cautch by php, now it dont do nothing, but writing the ?folder=portraits work here is the page ** simpl...

chart stream not rendering correctly

Hey All, My controller, in a nutshell is this: chart1.SeriesCollection.Add(SC); using (MemoryStream ms = chart1.GetChartStream()) { return File(ms.ToArray(), "image/png"); } My view is this: $('#targetDiv').load("Home/GetImage"); And I'm getting garbled characters when rendered. ...

Jquery UI Dialog inside UpdatePanel doing strange things

I have a DIV in which I have a asp:repeater which, based on data, puts information in this div. I then use Jquery's UI dialog to display the data to the user via a button click. This all works swimmingly. So, I want to be able to add records to the data which populates the repeater. I have another part of the screen where people can ent...

jQuery slideDown with easing

How can use the slideDown() function with easing? Maybe extend it somehow? I'm looking for something like this: jQuery.fn.slideDown = function(speed, easing, callback) { return ... }; So i can use it slide this $('.class').slideDown('400','easeInQuad'); or this $('.class').slideDown('400','easeInQuad',function(){ //callback...