jquery ("#field") is null
Hello, I have a selectbox with month periods in it. Here is my code: $(function(){ $("#ppsub_ppterm_id").change(function(){ var term = this.options[this.selectedIndex].text; if(term == "Eenmalig"){ ...
Hello, I have a selectbox with month periods in it. Here is my code: $(function(){ $("#ppsub_ppterm_id").change(function(){ var term = this.options[this.selectedIndex].text; if(term == "Eenmalig"){ ...
Which one is better to use in ASP.NET MVC? ...
I am using the jQuery date picker calendar in a form. Once submitted the form passes params along via the url to a third party site. Everything works fine, except for one thing. If the value inserted into the date field by the datepicker calendar is subsequently deleted, or if the default date, that is in the form on page load, is delet...
(For further background, this relates to the same piece of work as a previous question) I'm creating a JavaScript based webchat system using jQuery to make life much easier. All the webchat JavaScript code is in an external js file, which is then referenced and instantiated by the html page. <html xmlns="http://www.w3.org/1999/xhtml"&g...
Hey, Just wondering when using the jQuery Cycle plugin if for the next/prev buttons, it can be configured so that clicking the next button would slide right, and clicking prev would slide left. Thanks for your help. Dave ...
I would like to create a similar effect to Apple's Safari 4 Beta Top Sites page - http://farm4.static.flickr.com/3644/3323438140_10b62d40f4.jpg ; when when you view it and a page's content has changed since you last visited, it displays a blue star in the top right hand corner to notify you. I would like to do the very same, but only w...
Why does this happen? Any workarounds? Example: http://chrisdillon.us/jquery_fadein_problem1.html jQuery: $(function() { $('p.quote').fadeIn(2000); }); HTML: <p>someone said:</p> <p class="quote">“lorem ipsum”</p> <p>someone else said:</p> <p class="quote" style="display: none;">“magna carta”</p> ...
Hello All, Using jQuery validation plugin but it has no CSV validation. I have made an additional validation for this but can't get the RegEx right. Here is what I have: jQuery.validator.addMethod("csv", function(value, element) { return this.optional(element) || /([\w.$]+?(,[\w.]+)+)/.test(value); }, "Must be comma separated if ent...
Hello, I've been scouring the internet trying to find a way to do this with jQuery. My situation is this, I have a tablesorter function (using the jQuery plugin tablesorter) in an external scripts.js file as follows: $(function() { $(aTable).tablesorter({ // Go through each column and sort data according to type of data in t...
i have a simple form on my page with a textbox and button that calls this javascript method onclick="Create();" and this is the function that is ran... function Create() { var txt = document.getElementById("longTxt").value; if (txt == "Insert Name") { alert("You must provide a name"); return; } var d...
Hello! I am making a very minimalistic calendar plugin for the website with jQuery. I have not had much expirience with it, so I was following plugin tutorial. I have two <a> links that should change month, but unfortunately they do so only once and then both of them stop working. I suspect I have put events to a wrong place. Sorry for...
I've generally tried to stick with DOM-only attributes when writing Javascript. Now that I've switched from Prototype to jQuery, I can get some serious mileage out of adding my own attributes to various DOM elements, mostly in the realm of being able to set up a very readable coding convention for handling AJAX requests. As a short exa...
"this" is a text field, "new_id" is an integer. When I apply the following snippet: $(this).attr('id', this.id + '_' + new_id); $(this).attr('name', this.name + '_' + new_id); $(this).attr('value', 'test'); the id changes, the name changes too, but not the value. If I change the last line to this (and therefore use a string literal...
So I am doing some fairly simple JSONP stuff using Jquery. General structure Site lives on domain A Javascript lives on domain B JSON services also live on domain B The site calls a method which jsonp calls out to a json service (.net) , in .net i set the session and return. This all works fine, except in IE it is not storing or...
Revised: I have a list items on the page that I'm creating from database records (messages). Each record contains an Id value that I'm currently putting into each individual message. What I'd like to do is when they click on a view link to grab the message's Id value so that I can then manipulate it with javascript. Generated html loo...
I'm trying to write a Greasemonkey script, and would like to use the jQuery library to do so, but I'm not quite sure how I would include jQuery from a web address to get rolling. How would I include jQuery (from Google's web server) into the greasemonkey script so that I can just go: $(document).ready(function(){ // Greasemonkey stuf...
I am currently using jQuery to write an online application, that started off with a couple of lines of code, and have quickly now become over a 1000 lines. My code's structure is simple. I have a window.load which wraps my javascript, and inside it I start adding my click event handlers, and the various functions that makeup my applicat...
When developing for browsers FF3 and IE6/7 with jQuery, are there any compatibility issues when setting custom attributes on HTML tags? First, I'm aware of jQuery's data() function and it essentially does what I want, but the data doesn't survive a clone() function. This is an issue when using the jQuery UI draggable/droppable plugins ...
I am trying to find the correct syntax to pass a varible to my JQuery Post. var id = empid; $.ajax({ type: "POST", url: "../Webservices/EmployeeService.asmx/GetEmployeeOrders", data: "{empid: empid}", contentType: "application/json; charset=utf-8", dataType: "json", success: function(result) { alert(resu...
Hey all.. I have a call (POST) to a web service that returns a type IList<>. I suspect that this type is not serialized properly because I get the following error: "A circular reference was detected while serializing an object of type......" Can I only work with arrays? Make another method that returns only an array? I would rather not...