jquery

creating a jquery grid from json data that came back from an ajax request

hi everyone, i am searching for a way to create a grid (from some kind of jquery grid plugin didnt choose one yet) anyway i want to call a webmethod and return a json serialized from a List of an object i created. today i just use a regular grid view inside an iframe. but i want to eliminate that iframe and create those grids with aj...

Problem in using JQuery for body load event

Hi there, I am using jquery(newbie for jquery) in my application. In short what I am doing: I have a home page, where user enters his name and gets results on the same page. So I wrote two functions in home.php , one for body load event another for getting user's result. I have "get_home_info.php" which will load on body's load event ...

Drag and drop a child node

I had populated data in TreeView control. How will I drag a particular child node from a parent node and drop the dragged one to a DIV or any portion, using JQUERY ? I know in jquery, there are methods "draggable" and "droppable" to make this possible. But I want to drag a particular child node and drop it. Or atleast How to fetch the ...

alphanumeric validation not working in jquery

my code is given below,all the required js files are included. <?php echo $this->Html->script('jquery'); echo $this->Html->script('jquery-ui'); echo $this->Html->script('jquery.validate'); echo $html->css('jquery-ui'); ?> when i submit the form without giving any value for UserDetailAliasName the form does not submit...

how to combine these 2 jquery code into one

Should work same as it's working independently. This (function($) { $(document).ready(function(){ $('#number1').hide(); $('.button1').click(function(){ $('.table1').slideToggle(); $(this).toggleClass("minus_icon"); return false; }); }); })(jQuery); and this (function...

Setting timeout on jQuery's get shorthand

Is it possible to set the ajax timeout parameter using jQuery's get shorthand? If not, do requests sent with the shorthand ever timeout? jQuery.get( url, [ data ], [ callback(data, textStatus, XMLHttpRequest) ], [ dataType ] ) thanks ...

Error when removing contentEditable attribute using JQuery in FF and Opera, works in Chrome

Hello, I have problem with this piece of code: var el = $('div#editor'); el.find('*[contentEditable]').removeAttr('contentEditable'); It works great in Chrome 4/5/6, but it doesn't work in FF (3.6.) or Opera (10.60). In FF it throws this exception: Error: uncaught exception: [Exception... "An invalid or illegal string was specified"...

Simulate position:fixed in jQuery

I have a header that is larger than the width of the page so that I can't use position:fixed to set him on top of the page, because I absolutely need to be able to scroll horizontally. I don't think there is a CSS solution for this. I made a sample of code to try to reproduce the effect of position:fixed, but there are undesired jumps. ...

Jquery: Perform function when user comes out of focus

I need to perform a function when a user comes out of focus. So far I can do it when they go into focus but how do I do it the other way round: $("input.default-value").focus(function() { $(this).css("color", active_color); }); ...

Get element from latest append() call

If you use append() to insert a new DOM node, is it possible to move the chain context to the new element? This sample code illustrates the subject: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; <html> <head><title></title> <script type="text/javascript"...

How to change markers on zoom change in google map api

Hi I have this map I'd like to change the marker image, when zoom is greater then 5. I know how to detect zoom change, but I don't see how to change the image. ...

Jquery: How to get the value of an input and put in an array

I have an input <input type="text" value="hello" /> and I want to get the value of this and using Jquery, save the value in an array. How can I do this??? ...

is this a bug? please check it out.

html <div contentEditable="true">testing....</div> jQuery $(document).ready(function(){ $('[contenteditable]').removeAttr('contenteditable'); }); above codes is fine and working. you can feel it here. Now, try this $('[contentEditable]').removeAttr('contentEditable'); // notice the CamelCase of the string contentEditable in...

Help me move Burt Reynolds Face - jQuery

I have a problem with jQuery moving Burt Reynolds face around on the page. My code thus far is: function moveBurt() { $('.burt').animate('left' : "-=100px", 3000, 'linear'); } But this isn't working :( PLEASE HELP ME MOVE BURT REYNOLDS FACE!! ...

jquery slider problem with changing ID of span

Hey all, i am in need of some help trying to figure out why this code is not working as it should: $('#slickbox').hide(); $('#slick-show').click(function () { $('#slickbox').show('slow'); $('#userSetupP').text('User Custom Panel (click to close)'); $('#slick-show').attr('id', '#slick-hide'); return false; }); ...

How to retrieve data from the DB for recursively binding a jquery treeview using asp.net mvc

I have a table structure like this. id | Name | ParentId so for example: id | Name | ParentId 1 | Alice | 0 2 | Bob | 0 3 | Charlie | 1 4 | David | 2 where 'Alice' and 'Bob' are Parent nodes( which has Id = 0) and Alice has a child node named 'Charlie' and 'Bob' has a child node named 'David'. My question is...

Jquery parsing xml from request

Hi, I am using Jquery. I have an xml returned from a webservice. So I want to extract some value from it. This is an xml example returned from webservice: <ns3:ExecuteResponse xmlns:ns3="http://www.opengis.net/wps/1.0.0" xmlns:ns1="http://www.opengis.net/ows/1.1" xmlns:ns2="http://www.w3.org/1999/xlink" statusLocation="http://webse...

Jquery slide from right to left

I have the follow code: $("#headerimg" + currentContainer).slideUp(function() { setTimeout(function() { $("#headertxt").slideUp(100).css({"display" : "block"}); animating = false; }, 500); }); Now the pictures animate from bottom to top. But i want that the picture, slide from right to left. What in the code i must change?...

Remove white line from Table with Jquery

Hi can someone help me remove the white line just below my top banner. In Firefox you can't see the line, but its visible in IE and Chrome. You can see it here http://www.direkte-el.dk/default.aspx Would prefer a JQuery solution, since its the only way I can change the layout. Sorry the page is in Danish, but you should still be able ...

jquery - select first element which doesn't have "display:none"

<td class="profile"> <% var usedColors = ViewData["usedColors"] as string[]; %> <a class="profile-color" href="#" style="background: #c00; <% if (usedColors.Contains("#c00") && Model.Color != "#c00") {%>display:none<% }%>" id="color-c00">Color1</a> <a class="profile-color" href="#" style="background: #3491c2; <% if (usedCo...