jquery

Development Environment for Jquery and javascript

What develepment environment do you use when you need to work on javascript?What options have as an Asp.net developer for working with javascript or jQeury in order to have possibilities to test,develop in realtime? I tried to set up the intellisense to make it work the jquery documentation,but that's not working. Right now i'm using Fir...

Does jQuery have built in JSON support?

Does jQuery have built in JSON support or must I use a plugin like jquery.json-1.3.min.js ? ...

How to execute javascript function from a dynamic html result? Jquery

Please have a look at this code - When I click on myLink I get a modal dialog window which shows the html as defined below. This html includes a button (id=test_button), and when I click on this button I want to do an ajax request. But its not working. So to test it I am just doing an alert but it wont work as well. Also will it be p...

jQuery validate less than

I am trying to write a "Less than" validator for jQuery. I want to compare one text box against another, so if I have: <input type="text" id="value1" /> <input type="text" id="value2" /> I want my validator to look like $('#myForm').validate({rules: { value1: { lessThan: "#value2" } } }); I have tried this but I can't get it to wo...

My jquery ajax form will not post

Below is the code so far that I am working on, It will be a comment system, the flow: User fills in comment form hit submit, AJAX call is made and POST to a php script script determines if user should enter a captcha form If they need a captcha form it sends that response back along with there sanitized message If they do not need c...

JQuery 'Change' event handler for asp.net radiobuttonlist not firing

I wired the Change event handler for an ASP.NET radiobuttonlist like this in the ready() handler in JQuery like this: $("#<%=rblYesNo.ClientID%>").change(MyFunction); When I select one of the radio buttons, MyFunction doesn't get called. Why? ...

document.ready() causing an error in IE 8

Hello, I'm trying to use document.ready in IE 8 and I keep getting an error that "The object does not support this property" when I load the page. I at the point where I'm simply trying to display an alert using document.read. Here is the code I'm using: In the Head tag I load the jquery file in the script tag, that is located j...

Jquery Tabs in a MVC User Control

I am having a problem with Jquery Tabs. On my MVC page, I have a form that returns a partial page (.ascx). This page has Jquery tabs on it, howerver all I get is the tab content without the tab. It looks like the partial page javascript code for the tab does not run, <script type="text/javascript"> $(function() { $("#tabs").tabs(); ...

How can I provide a textbox that filters results in real time using ASP.NET MVC and jQuery (NOT autocomplete)?

I'm looking to something similar to how the Stackoverflow Users page allows you to type in a username and it filter the users below in real time. I'm using ASP.NET MVC and jQuery. Can someone point me to a simplified example that uses this technology stack to do the same thing? ...

jQuery FadeIn/FadeOut, looping through an array

At this url - http://thespacebetweenthewords.org/sandbox/ I am attempting to cycle through arrays of words with a jQuery FadeIn/FadeOut effect. The array of words displayed doesn't seem to be starting at [0], though. I am perhaps missing something with the order in which the functions are executing. If anyone in the community wo...

jQuery sortable serialize two columns in one database call?

Hey all. A quick overview of what I'm trying to accomplish. I have two columns of data. Each column has an arbitrary amount of homogeneous elements. On the jQuery sortable update event I want to serialize the location of all the elements in their respectable column. Each element in the columns has an id of the form item_{id}. In the up...

getting xhtml custom attributes from jquery in IE

hello, i got some li elements with a custome attribute "type". whe i try in jquery to get the value of this attribute width jquery like so: $("li", $list).each(function(){ console.log($(this).attr("type")); }); i only get the values in firefox but not in IE 7-8 any solutions? ...

jQuery / javascript - How to Check if select box matched original value ?

Hi there, Just wondering if there is any way to check if the value of a select box drop-down matches the original value at the time of page load (when the value was set using 'selected = "yes"') ? I guess I could use PHP to create the original values as javascript variables and check against them, but there are a few select boxes and i...

How to get jSON response into variable from a jquery script

I am having trouble with my jquery script below, this is a basic stripped down version and even it will not work, I have the php file that the jquery script makes a call to, I have it set to encode and show a json response Then in the jquery script it should read the value and respond to it but It is not getting the response. Is j...

JQuery Sub Selector question

my html <div id="x"> <div id="x1"> some text <div>other text</div> </div> <div id="x2">just text</div> <div> my call I have this element than can be any jquery selector, 1 or more elements: var x = $("#x"); now I NEED (this is a plugin who will discover inner elements like tabs) to navigate only thru the firsts DIV e...

How do I loop through a regex's matches inside a replace in javascript?

I have the following JavaScript (the spaces in the <P>s are non-breaking): var html = '...<li>sub 2</li></ol></li></ol>\n\ <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n...

jquery not sending my form data

The code below does not return any errors and I can make it return data from process.php however on process.php I am checking for "message" like this: <?PHP if (isset($_REQUEST['message'])) { //return a json string } ?> Here is my jquery code below, dataString shows "message=WHATEVER I TYPE IN THE TEXTAREA" when I use alert (dataS...

jquery validation plugin minLength override in invalidHandler

Is it possible to override the default minlength error message in the callback invalidHandler ? Say by default the error message for minlength would be Please enter at least {0} characters. Can this be overriden with the inclusion of the form element say {element} - Please enter at least {0} characters. validator.numberOfInvalids() is a...

How can I maintain control of the this keyword when extending prototypes in jQuery?

I'm implementing a class-like structure in jQuery, but I'm having some trouble when I try to call some of my functions. This is how the structure is setup: MyClass = function(name) { this.init(name); } $.extend(MyClass.prototype, { init: function(theName) { this.myFunction(); // works $('.myclass').each(function(){ ...

How to call/bind a jquery datepicker to a label or div instead of an input field

I'm working with the jqueryui datepicker on this page - http://jqueryui.com/demos/datepicker/ How do I call it on a label instead of an input field? Is this possible? ...