jquery

best ide for javascript dev - dojo is my target

what do people use when working with complicated framework - dojo , jquery etc vs2008 plus ie has nice debugging plain editor plus firebug is ok but what about intellisense, are there any editors that can deal with these complex frameworks any other 'must have' tools ...

loop and list values

I have an array. What is simple way to loop array and display value in paragraph putting one in each line ...

Don't understand jquery - setting equal height contained divs

Hi, I am trying to set two side-by-side divs contained by a single larger div to equal column height. I am trying to use the following jquery script: <script type="text/javascript" language="javascript"> function pageLoad() { $(document).ready(function() { setEqualHeight($(".instructionsPa...

Clear and add content

I have the following paragraph to which content of array added $('#pop').html(arr.join('<br>')) I want to do like clear and add. $('#pop').text('').html(arr.join('<br>')) ...

Installing JQuery?

What is the procedure for installing JQuery, Because i am new to this software ...

Working example of jeditable and autocomplete working together

I see a lot of google posts on this but all seems to be talking about how this is in progress. Does anyone know of a working version of jeditable and autocomplete functionality working together so i can click on text and get a textbox and have autocomplete functionality working against that textbox EDIT: I am opening a bounty, as it s...

Checkbox form validation jQuery

I have a form where a user can select a list of events, each event has the start time as a classname. When the form is submitted, I need to check if the user has selected more than one event with the same starttime. e.g. In Today if the user selected Event A and Event C, it would trigger the validation message. <form> <h3>Today</h3> ...

How to select not-direct left sibling <span> with jQuery?

<span>This is the span I want to select</span> <div>something here</div> <a id="start"></a> Suppose can only access $('#start'), I tried $('#start').prev('span') but not working. ...

How to display messages in invalidHandler in JQuery validator

I'm trying to use the JQuery validator on a form and am trying to figure out to get the messages of the errors in the invalidHandler option (or if there's somewhere else, do tell). When a user clicks the submit button, whatever the first error is, I want to display an alert box with the message of the error. I don't want the error to be...

$$ in jQuery, what's this used for?

if someone just write: $("#downloadTabs>div").each(function(el) { el.setStyle("display", "none"); el.removeClass('active'); }); I would know what is this used for. But the actually code I read is $$("#downloadTabs>div").each(function(el) { el.setStyle("display", "none"); el.removeClass('ac...

JsonResult Problem

I have an ActionResult returning this : return new JsonResult() { Data = new { isDeleted = isEntityDeleted } }; in javascript , the value returned by that ActionResult is "{"isDeleted":true}" , which is an object called data, but if i try to access data.isDeleted i get undifined What am i doing wrong? Edit: javascript code:- $.p...

How to set/unset cookie with jQuery?

How to set a cookie named 'test' and value '1'? EDIT especially,how to unset? ...

Make onclick handler ignore clicks on links

I have a custom onclick handler for a block element (set up through jQuery's .click() method). This block element can contain links. I'm fairly certain this is possible, so, how do I have the handler simply return if it was a link I clicked on (so that the link is visited without running my code)? ...

How to get index number inside $.click() of jQuery?

$("span.ws_label").click(function() { }) By selector "span.ws_label" there are 5 elements selected, when one of them is clicked, how to know which one actually? EDIT I must get the index or its id,$(this) is no use to me. ...

$.ajax and webmethod/pagemethods.

Hi I'm trying to call a pagemethod that doesn't have any parameters, and I can't seem to get it working. If I have a single parameter in the pagemethod it works fine. $.ajax({ type: "POST", url: "Default.aspx/getLastCallData", contentType: "application/json; charset=utf-8", dataType: "json", success: function(msg) { aler...

jQuery - getting a height and re-using it

Hi All Can someone explain to me how to get the height of one element, and then re-use it elsewhere on another element, using jQuery? For example, to have 2 divs, 1 & 2, and to get the height of div 1, then have an on-click event on div 2 that animates it to the same height as div 1. Cheers ...

how to prevent click queue build up, using toggle in jquery? tried using bind/unbind('click')

i want to disable the click handler when the toggle animation is showing so the animation won't build up because of multiple fast click. thanks jquery script: $("#button").click({ $(this).unbind('click').next().toggle("slow",function(){$('#button').bind('click')}); }); html code <div <a href='#' id='button'>Toggle</a> <div...

jquery ajax get example

At the moment I'm using the post method like this $.ajax({ type: "POST", url: "Servicename.asmx/DoSomeCalculation", data: "{param1ID:"+ param1Val+"}", contentType: "application/json; charset=utf-8", dataType: "json", success: function(msg) { UseReturnedData(msg.d); }, error: function(err) { al...

Height of content inside a div

The content of a page is loaded inside a div: <div id="content">Some content</div> The div has a fixed height and uses scroll in case of overflow. I want to adjust the height (make it smaller) of the div onload if the content does not need the fixed height of the div. How can i meassure the height of the content inside the div? I tri...

slideshow for div's background image + jquery

Hi friends, I have a big div element at header and there are many text contents and some boxes in the div. and i have a big img as bg for this div, now i need to make a slideshow for this div's background :/ How can I make slideshow for a div's background image? I researched a lot, but could not find anything :/ Thanks a lot! apprec...