jquery

jQuery: select all elements of a given class, except for a particular Id

This is probably pretty simple. I want to select all elements of a given class "thisClass", except where the id is of a given id "thisId". i.e. something equivalent to (where -/minus implies remove): $(".thisClass"-"#thisId").doAction(); ...

Highlighting search words like Chrome with jQuery

I have recently done a very simple highlighting with jQuery and a highlight plugin. It looks like this: $('myButton').click(function() { $('body').highlight($('#myInputText').val()); }); But I wonder how can I do the Chrome like highlighting, I mean highlight the letters whenever I type in some letter in textbox without s...

Capture reload/endrequest event after server redirect to download file

Inside a webpage I have an Excel download button, which redirects to a webpage that serves the requested Excel file via the application/ms-excel MIME type, which usually results in a file download in the browser. In the webpage, I have the following jQuery code: $(document).ready(function () { $(".div-export .button").click(functio...

Trying to use contains selector within nested divs

<div> <div>test</div> </div> $("div:contains('test')").css('display','none'); I know I am going to kick myself on this. The problem is that when this runs all divs are hidden due to nesting. How do I make it so that the parent div does not get hidden? I am limited to using 1.2.6 ...

jQuery: Open File Upload window by pressing a link or image.?

Is this possible to open a File Upload window when clicking on a image or link. (like what exactly in the <input type="file" name="upload" />). ...

Retrieve the full page HTML - jQuery

I am trying to retrieve the full HTML of a page, so far I am using: $('*').html() Is there a better way (also this excludes the <html> tags at the top)? ...

How to automatically assign different Z-Index Values to multiple elements with jQuery

for example i have the markup <div> <img src="#" alt=""/> <img src="#" alt=""/> <img src="#" alt=""/> <div> I want to select $('div img') and then assign each one a z-index value so the first one is 3, second 2, third 1. Is this simple with jQuery? Thanks ...

jquery not printing the image in IE 6

if(count > 0){ for(var i= parseInt(start); i < parseInt(count); i++) { link ='<a href="/diabetes/ropimages/origpicdisplay.php?pid='+pid+'&rid='+i+'" target="_blank"><img src="/diabetes/ropimages/thumbpicdisplay.php?pid='+pid+'&rid='+i+'"/><a>&nbsp;&nbsp;'; if(i > start){ $("#content1").append(link);} else{ $("#content1").empty().html(...

CI+JQuery+Ajax problem

Calling the ajax called URL works well without ajax eg. http://localhost/ci/controller/method/param_value. But using ajax it doesnt work. Following are the code segment, i have just started with JQuery+Ajax with CI. Here is my controller: <?php class BaseController extends Controller{ public function BaseController(){ parent::Co...

Quick help with some jQuery toggle

I have the following code: <script> $(document).ready(function() { $('.toggle_section').click(function(e){ parent = $(e.target).closest("div") objChild = parent.children('div'); $('.sectionContentId').hide(400); $(objChild).toggle(400); }); }); </script> <br /> <d...

Photo gallery in javascript

Hai, I am in search of a photo gallery in jquery like the one in the following link http://www.epson.co.in Could you guess tell me where i can get a plugin like this. thanks ...

How to submit a table with dynamic rows of data via asp.net mvc or jquery?

hi guys, i'm totally noob to asp.net mvc and currently i'm writing an web app which allows user to select multiple product from a listbox and add them to a dynamic table with rows that can be added or removed. thus i'm thinking of using jquery to add and remove the table row, thus the table row will be added via append("xxx"). but the...

Visual Studio 2005 + jQuery intellisense

Hi guys, im with a problem. I'm trying to put my visual studio 2005 profissional with the jQuery doc I'm importing the core and doc files, but i still dont get the result i hope.. No intellisence at same... ...

TinyMCE clearing changes on form submit

I've added a toggle button to TinyMCE (using the jQuery plugin version) that looks like: $('a.mce_show').click(function(){ // toggle all textareas $('.wysiwyg').tinymce().show(); }); $('a.mce_hide').click(function(){ // toggle all textareas $('.wysiwyg').tinymce()....

How to get DIVs into this code via JQuery

Heya everyone I been struggling along with this piece of code for the longest time, its driving me insane. I am trying many different things and looking at past posts here but nothing seems to be helping. Basicly i have a jquery pagination code in place and i want to add animated transitions between pages. With some assistance i got th...

Isssue with ColorBox jQuery plugin

Hi, I am using this plugin for my new site: http://colorpowered.com/colorbox/ The page in concern has two hyper links which are of the same class: a.emailQuote These both should open the same colorbox window which is done by the following code: $("a.emailQuote").colorbox({ transistion:"fade", title:true, iframe:tru...

(jquery): After Ajax: success, how to limit parsing in pieces and insert piece by piece into the DOM (trick to speed up)

Let's say on ajax success the function: xmlParser(xml) is called and the XML response contains about 1500 xml elements (for example: ...) Inside it looks like: function xmlParser(xml){ var xmlDOM = $(xml); // dom object containing xml response xdom.find("book").each(function(){ var $node = $(this); // parsing...

getJSON() parameter length is more than 2500 for IE6 or IE7

Hi, I have a MVC web application. I am calling the controller method through the getJSON() method of the jquery. $.getJSON("applicationurl/controllerActionMethod", { parameter1: json, parameter2: jsonGrid, parameter3: value3, parameter4: value4 }, function(jsonResult) { }); Here I am passing the json values into the parameter1 a...

How do I run jQuery form validation by class?

Hi there, I've been using the jQuery form validator, but I can't seem to figure out how to trigger it by class. Take this example: $("#myform").validate({ rules: { field: { required: true, date: true } } }); Where field it is expecting the name of the particular input. But, what if I have the following: <inpu...

jquery anchor click doesn't seem to work....

Here is function , <script type="text/javascript"> $(document).ready(function() { getRecordspage(1, 5); $("a.page-numbers").click(function() { alert(1); getRecordspage($(this).text(), 5); return false; }); }); And in my page i am appending anchors dynamically to th...