I have a method that I want to take some action depending on the 'checked' status of a checkbox. The 'click' event works as expected, but the 'myFunction' call in the foreach loop does not:
$(document).ready(function(){
$('#TreeView1 :checkbox')
.click(HandleCheckbox); // Works fine
// Go through the entire Category treeview to...
I have a XML that needs to be parsed using jQuery. I understand how to get the first level of site map nodes but some of my node are 3 or 4 levels deep. I cant seem to get past 2 level. Here is my XML and my code. I am tiring to output it to a list to be able to do a jQuery drop down on hover for one of the sites im working on. Please an...
Hi
I have a textbox which i applied on it jq wysiwyg:
public static void PopulateWysiwyg(this SafeTextBox tb)
{
string script =
@"
jQuery(document).ready(function()
{
jQuery('#safe_text_box').wysiwyg();
});
";
ScriptManager.RegisterStartupScript(
tb,
tb.GetType(),
tb.ClientID + "_wysiwyg",
...
The below code does not fully disable the sortables on the start event. It will add the classes "ui-sortable-disabled" and "ui-state-disabled" to the sortable elements, but it doesn't disable the functionality - in other words, the sortables look disabled, but they still accept the dragged item and behave like they are enabled.
var ass...
I've seen lots of related questions, but nowhere have I found a simple example of code that passes parameters back to a page method via jquery.
I've looked through some of the examples at encosia.com (thanks, Dave) but still haven't managed to get it working. Here's the code so far:
Updated - added some code to pass in params, but it'...
Below is my full code, its basic, you select a country and it shows, or hides the correct form underneath, problem is it gives an error
"getState" is not define
Now I am a total noob at this but how do you debug these kind of errors?
<form method="post" name="form1">
<select style="background-color: #ffffa0" name="country" onchan...
Hey,
I am currently doing the same ajax request using jQuery every 2sec. For some reason, on IE8 it only work the first time. Each following request automatically seems to go to the onSuccess function, with the same result as the first request.
The same code work perfeclty on FF3 and Chrome.
Is anybody aware of that bug and how to hac...
Hi I am trying to do a tri state rollover using jquery. I want an on state off state and click state.
I have to replicate a specific interface style and not using images in not an option. Below is the code that I have used. However, I cannot seem to figure out how deactivate an image when it another is clicked.
Here is a the scenerio...
I have a pageLoad function which sets some css on an .ascx control that I cannot change. On page load everything is fine, but when an update panel updates the control, my css is no longer applied. How can I rerun my function after the page updates?
$(function() {
$("textarea").attr("cols", "30");
$("input.tbMarker").css...
Hi,
I've read quite a bit about how memory leaks are created in various versions of IE.
Some great information can be found here:
http://msdn.microsoft.com/en-us/library/bb250448%28VS.85%29.aspx
http://laurens.vd.oever.nl/weblog/items2005/closures/
Using closures with JQuery is a very common practice. I can't find any articles at al...
I'm farily new to jquery and can't figure out how to build a series of span elements based on the number of divs in a container. I'm trying to use the jquery.flow plugin to create a slider on a page in my site. My CMS will kick out all the images in divs, but I'd like to automatically create the necessary span elements. I'm trying to mak...
Okay, I did a crappy job of describing the issue in my previous post. I think the discussion got sidetracked from the core issue - so I'm going to try again. Mea Culpa to Elzo Valugi about the aforementioned thread.
I have an XML file:
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="wtf.xsl"?>
<Paragraphs...
Sorry if this has been answered, but I couldn't turn up a search for it... a difficult thing to search for, I think!
Say I have this:
var MyPrototype = function() { this.init(); }
$.extend(MyPrototype.prototype, {
a: 5,
init: function() {
var thing = new SomeOtherClass();
thing.meth = this.meth;
// thing...
I'm going to re-ask this question in a slightly different way.
Say I have 2 or more of the [same] partial view on the page.
On this PartialView there is a text box and a button.
On the click of the button I need to take the contents of the textbox and do a Json postback, do some stuff and return a result set.
The problem I have is th...
I have a database of links that users can submit. Every time a user submits a new link it is added to the database. I have a separate page that lists all the submitted links. How can I have this separate page check the database for changes and load them with AJAX when it finds them?
...
Hi,
I want to be able to create a div in my application by clicking and dragging. Clicking would initiate the div creation, while dragging would resize the div.
I have seen similar functionality in several jquery calendar plugins, I want to be able to do it in my application too.
Can anyone please guide me into the right direction? An...
Hi,
New to the jquery ajax methods and I am just wondering how to capture the elements passed in the jquery.ajax() call using POST on a C# (ASP.Net) page.
Here is my jquery ajax call:
$.ajax({
type: "POST",
url: 'UpdateQuickLinks.aspx',
data: {"userid": contactid, "update": addString, "remove": remo...
How to replicate:
Create an html5 page.
Make sure you have the script from remysharp.com/2009/01/07/html5-enabling-script/ added so that IE will notice the tags.
Create an hardcoded <section id='anything'></section> tag.
Using jQuery 1.3.2, append another section tag: $('#anything').append('<section id="whatever"></section>'); So far, ...
I have an issue with this jquery code below. Please give me advice or code if you can help
So I have a country drop down list, a state drop down list for USA, and a state input field for non USA users.
When you select USA from the country list it hides the othstate field, when you select any country other then the USA it hides the USA...
I have some ajax calls on the document of a site that display or hide a progress bar depending on the ajax status
$(document).ajaxStart(function(){
$('#ajaxProgress').show();
});
$(document).ajaxStop(function(){
$('#ajaxProgress').hide();
});
I would like to basically overwirte these methods on other parts o...