Is there such jQuery plugin?
More specific:
I want to use some elegant and easy way to postpone some code execution until it's really needed (some event happens). And when this event happens, the postponed code should get executed only once. Some kind of lazy initialization.
For example, apply some animation to an element not when docu...
I have an elements on page that are draggabe with jQuery. These elements have click event wich navigates to another page (ordinary links for example).
What is the best way to prevent click from firing on dropping such element, while allowing clicking it in not drag and drop state?
I have this problem with sortable elements, but think i...
hi guys, I'm trying to use jquery Full Calendar from http://arshaw.com/fullcalendar
I searched the docs alot but I could not find how I can retrieve the current month a user is on at a certain moment.
On render it is set as the current month in the title, but I cant find a way to use that info. I want to sent the month to my ajax call ...
Hello
I have a bit of problem with my function who just should return html code
function contentStringHtml(data, name) {
return '<div id="gm-event-title">' +
'<h2>' + name + '</h2>' +
'</div>' +
'<div class=\"gm-trafic-index\"><ul>' +
$.each(data.DataTime, function(i, item) {
r...
Hi,
I'm trying to setup a custom date parser but can't get my head around it. Basically my dates are in the format mm/yyyy.
Can anyone point me in the right direction?
Thanks
...
Hi all,
I currently have a table with rows that contain a clickable link.
When a user clicks a link from any table row JQUery's UI Modal DIalog popups up and i add a class to the clicked links parent tr called 'highlight'.
What i'd like to be able to do is remove this class from the row when the JQuerys UI Dialog is closed.
Does any one...
I was planning to create an unordered list of users of my web application using a simple database query, but then was planning to let people filter this list down by typing the person's name they're looking for into a text input.
I was hoping to use jQuery to match the string in the input box to any inside one of the list items, then hi...
This is what i have now:
$("input").bind("keydown",function(e){
var value = this.value + String.fromCharCode(e.keyCode);
}
If the e.keyCode may not be an ASCII character (alt, backspace, del, arrows, etc)...
I would now need to "trim" these values from "value" somehow (preferably programmatically - not with lookup tables)
I'm us...
I set values (of server controls) in an update panel via code-behind, it must be using some javascript method to set those values. if i try to access them through jquery after this, it doesn't recognize anything set by asp.net ajax
asp.net:
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Button ID="Button1" ...
Hi All,
I have a table with an image on each row with a hover event attached. Can someone please show me how to alert the value of the hidden field?
<div class='first'>
<input type="hidden" value="target">
<div class='second'>
<img src="yada" />
</div>
</div>
thanks,
rodchar
...
For example I have general code for catching json, that says - "its error request". This code is in ajaxComplete, how can I stop executing specific code from ajaxComplete point?
$.post('url', params,
function(json){
if (json.success == false){
alert('error')
}
if (json.success == true){
...
I get dynamic content with Ajax and i put it in a div, but the problem is that i have diffrent ids for some child divs(from the dynamic content). So i have added selectors for these divs, but as i said they are dynamic loaded and that means they are not visible anywhere before they are loaded(from another file) and inserted into the div....
What is the exact difference between live() and ready()?
Edit: found that die() is the opposite of live()
...
I have a string: "The quick brown fox jumps over the lazy dogs."
I want to use javascript (possibly with jQuery) to insert a character every n characters. For example I want to call:
var s = "The quick brown fox jumps over the lazy dogs.";
var new_s = UpdateString("$",5);
// new_s should equal "The q$uick $brown$ fox $jumps$ over$ the...
I've got the following jQuery (I've got it wrapped in the document ready function and all that, so please know I'm just showing you the inside of the function.
..
var itemIsSold = $("#itemIsSold").val();
alert(itemIsSold);
if(!itemIsSold) {
...
}
where itemIsSold is a hidden input...
Hi all,
I have two arrays of JavaScript Objects that I'd like to compare to see if they are the same. The objects may not (and most likely will not) be in the same order in each array. Each array shouldn't have any more than 10 objects. I thought jQuery might have an elegant solution to this problem, but I wasn't able to find much onlin...
I want to just change one of the elements in a class with jQuery
.myClass
{
background-color:#FFFFFF;
}
I want to programatically change this
...
How do you bind it so that when a user scrolls, I can know the "offset" from the top, in pixels?
...
I have some confusion over a jQuery extension not working as I'd expect. I have the following function defined:
$.fn.poster = function() {
this.each(function() {
self = $(this);
self.click(function() {
/* does stuff */
$.post(url, data, function(d, t) { handle_storage(d, t, self); }, "json");
...
Hi,
Does anyone know of a good solution to convert from XML to JSON and then back to XML?
I found two tools for jquery, xml2json & json2xml.
Each of these works very well - however, the conversions they use aren't 100% consistent.
Has anyone encountered this situation before?
...