jquery

Button with image and loading element id when clicked

Hello guys, I've made an application that makes full use of ajax, and what I need to do is: I want a button with a description + image that when clicked is disabled and instead of the original image in the button, appears the ajax loading element id inside the button. And when the ajax loading is complete, the original image of the butto...

Fullcalendar change color of some events

I need to change color of some events in Fullcalendar plugin. I tried "className" property in the constructor of "events" object. However, i couldnt achieve to change the color and css. I checked on the firebug. The css of the event td's are still using default css. I am generating calendar in the codebehind by using RegisterClientScri...

Post data to JsonP

Hi Is it possible to post data to JsonP? Or does all data have to be passed in the querystring as a GET request? I have alot of data that I need to send to the service, cross domain, and it is too large to send via the querystring What are the options for getting around this? thanks ...

Wordpress and Jquery slide

I am integrating a Jquery slider inside of wordpress here is the demo of the slider. I can see the div that is their but for some reason it is not showing up. View the working site here Now my problem is that this code: <script type="text/javascript"> var _siteRoot='index.php',_root='index.php';</script> <script type="text/javascrip...

jQuery - script tags in the HTML are parsed out by jQuery and not executed

I have an HTML page like so: <html> <body> <div id='something'> ... <script> var x = 'hello world'; </script> ... </div> </body> </html> On another page, I am doing this: $.ajax({ url: 'example.html', type: 'GET', success: function(data) { $('#mydiv').html($(data).find('#something').html()); ...

User clicks link in email, it opens email client, how to close window/tab?

A user clicks a link in their HTML email, it then goes to a page that simply opens up their email client. window.location.href = 'mailto:...'; I don't want this window/tab to stay open, how can I close it? window.close() doesn't work since it wasn't opened using window.open() is it possible? ...

Filter large amounts of data from a HTML table w/ jQuery

I work for a transit agency and I have large amounts of data (mostly times), and I need a way to filter the data using two textboxes (To and From). I found jQuery quick search, but it seems to only work with one textbox. If anyone has any ideas via jQuery or some other client side library, that would be fantastic. Ideal example: To: ...

jquery form validation: validation script specified externally

i have a jquery form validation in the master page and it works fine and i got that working from this article: http://www.dotnetcurry.com/ShowArticle.aspx?ID=310 my question is: if i place the .js to external and add a reference to my page then its not working... it says object expected here is how i have done: in my content page (i a...

jquery for each function

I have added a show more or less function to a div - this all works fine however now i need to only allow this functionality if a element is over a certain height in this case. there are numerous classes of the same so i need to do the check on each element. although i am having problems getting it to work see code below : $(document)....

jQuery: Is it possible to assign a DOM element to a variable for later use?

I'm working on a project that is using jQuery, which I'm much more familiar with Mootools. I'll start with my code first. var customNamespace = { status: 'closed', popup: $('#popup'), showPopup: function() { // ... } } $(document).ready(function(){ console.log($('#popup')); console.log(customNamespac...

jQuery: Use of undefined constant data assumed 'data'

I am trying to use jQuery to make a synchronous AJAX post to a server, and get a JSON response back. I want to set a javascript variable msg upon successful return This is what my code looks like: $(document).ready(function(){ $('#test').click(function(){ alert('called!'); jQuery.ajax({ async: false, type: 'POS...

JQuery Ajax Get passing parameters

Hi, I am working on my first MVC application and am running into a bit of a problem. I have a data table that when a row is clicked, I want to return the detail from that row. I have a function set up as: function rowClick(item) { $("#detailInfo").data("width.dialog", 800); $.ajax({ type: "GET", contentType: ...

jquery tabs - load url in current tab?

I'm trying to figure out how to load the url each tab links to inside the tab area onclick, and have been trying to following the docs at http://docs.jquery.com/UI/Tabs#...open_links_in_the_current_tab_instead_of_leaving_the_page, but am clearly not getting it.... This is the HTML markup: <div class="tabs"> <ul class="tabNav"> <...

DocumentFragment not appending in IE

I have a select list which, when changed, pulls data via ajax and dynamically creates select lists. Then based on the data used to create the select lists (a type), I pull more data via ajax if i don't have it already and create the options for the select list and store them in a fragment. Then I append that fragment to the select list...

How can I make this not move and only load beneath it?

Currently, if you click item 2, it will reveal a input box and also widen the <li>. I don't want it to alter the size of the <li> and I want it to open right beneath item 2. How can i achieve this? Also, I want to make it close on click after it's been opened, but my jQuery doesn't seem to work. <html> <head> <script src="http://code.jq...

How to disable text selection using jquery?

Does jquery or jquery-ui has such functionality? Disable text selection for given document element. ...

ASP.NET & jQuery multi-select dropdownlist, get selected values

I have an .aspx page with a databound multi-select jquery dropdown. This works nicley but how can i get hold of the selected items in the code behind? ...

JavaScript - Efficiently find all elements containing one of a large set of strings

I have a set of strings and I need to find all all of the occurrences in an HTML document. Where the string occurs is important because I need to handle each case differently: String is all or part of an attribute. e.g., the string is foo: <input value="foo"> -> Add class ATTR to the element. String is the full text of an element. e.g....

Jquery: How to target the parent ul and count the li's held?

I am using jstree to build a tree menu. When you select an item in the tree a div on the right brings up certain information. The information can be deleted. When it is deleted I remove that item from the tree. The problem is when the last li is removed from the ul, I need to remove the ul and also remove the "open" and "close" classes...

Performance issue with ASP.NET page with many (hundreds of) CollapsiblePanelExtenders

I'm maintaining an ASP.NET site where users can log on to register some set of data (for statistical purposes). One user registers data for a set of units, and for each of these units a set of forms are to be filled out (with a handful of fields in each form, but that doesn't matter here). One scenario is that a user has 12 units, and in...