jquery

jQuery/Javascript Multiple Array Combinations

I have been trying to find a solution to this with no avail. The idea of what i'm trying to achieve is to be able to find all unique combinations of multiple lists. So, let's say I have 3 lists of checkboxes (but this is an unknown number in the real-life application), Colour, Size, Pack Size. The items in the list's will be unqiue. [0]...

Using jQuery to handle checkboxes

I am currently using a catch all method for all inputs on my form when it is being handled by jQuery. $.each($(':input'),function() { //stuff }); What I need to be able to do is see if any of those inputs is a checkbox, at the moment the only thing I can find is to say if the field is checked or not. Any help would be greatl...

Trying to find a (jquery?) popup date/time selector with callback to php

I have a large table with input boxes. Three columns of these are dates/times (in unix format). Im trying to find an easy to implement way of allowing the user to click on this box, being able to (graphically) select a date/time, and when done, sending the selection to a php script to make the physical changes of the data. (i can conve...

jQuery Validator custom method

Hi all, could you take a look at this http://jsbin.com/osolo/ please? If you enter a letter in Min Age rather than a number then hit submit this validates using jquery validator using a regular expression in a custom validation method, this works but i'm now looking to make it a little more dynamic. In the custom validation method...

How can I get JQGrid to recognize server sent Errors ?

I have a jqgrid that's functionning very well. I was wondering is it possible to catch server sent errors ? how Is it done ? ...

jQuery: Grab the next <select> with a specific class in a table row

Hi all. I have this HTML structure (excerpt): <td> <select id="test1" class="pub_chooser"> <option value="99">All Publications</option> <option value="40">Contract</option> <option value="21">Student</option> </select> </td> <td> <select id="thing1" class="ev_chooser"></select> </td> This is hooke...

How to get the jQuery $.ajax error response text?

Hi all, I am sending an error response to my jQuery. However I can not get the response text (in the example below this would be Gone to the beach) The only thing jQuery says is 'error'. See this example for details: php <? header('HTTP/1.1 500 Internal Server Error'); print "Gone to the beach" ?> jQuery $.ajax({ type: "post", da...

[jquery] e.which ENTER key enabled only if input field focus

Hello, I am using a e.which of jquery for running a function on press of ENTER, but I want this function to be called only if the particular input field is focused (where the cursor is blinking). My current jquery function. $(document).keyup(function(e) { if (e.which == 13) { var page = $("#userpage").val(); if(pa...

[jquery] e.which codes for CTRL + A and CTRL + E

Hello, Can anybody please tell me e.which codes for key press CTRL + A and CTRL + E. Also please tell me where i can find these values, i tried searching google but no appropriate results and i dont want shortcuts plugin for simple needs. Thank You. ...

Replace a specific string on an HTML page using JQuery

We are supplying a blob of HTML content to be imported and displayed on someone else's page. The owners of the page put a title around our content blob, but the title is the name of our web service that provides the content, rather than a user-friendly name that we want to display to users. They can't figure out how to change the title o...

jQuery change event on <select> not firing in IE

I've got a page with a variable number of <select> elements (which explains why I'm using event delegation here). When the user changes the selected option, I want to hide/show different content areas on the page. Here's the code I have: $(document).ready(function() { $('#container').change(function(e) { var changed = $(e.target);...

VS2008 SP1 Lost Javascript Colorization and Intellisense

Hi everyone, I'm hoping this is a simple fix. I'm using Visual Studio 2008 and recently had to install SQL Server 2008 enterprise edition on my local computer. One requirement was that Visual Studio 2008 SP1 needed to be installed, so I installed it. After that, SQL server installed just fine and I can now use it. However, now, I seem t...

Best approach to slideup and tabs with jQuery

I'm creating a page with an image at the top, and a menu below. When the user clicks on on of the 3 menu buttons, the image slideUp and the page scrolls down so the menu is at the top of the page, then the right .content div fades in. The slideUp should only happen the first time the user clicks on of the buttons. What the absolute best...

JQGrid - disable checkbox based on value

I would like to disable a checkbox in JQGrid where "multiselect: true" is set. It was touched on here: http://stackoverflow.com/questions/1356990/disabling-checkbox-in-multiselecttrue-mode-for-a-specific-row-in-jqgrid but I'm not sure how to implement this solution since I am new to jqgrid. im looking to do something like if (amount...

Is it possible to edit or modify css file at run time?

Hello I have style sheet with a class name "changebackgroundcolor" i want make change in css class at run time that color will change. .changebackgroundcolor{ background-color: #21606E;} if i change the back ground code in my color picker then it will make change here permanently. is there any jquery for this or any asp.net code. W...

JQuery: Toggle question

How do you fire a JQuery toggled event once, and only once, another JQuery toggled event has been completed? I have the following: I have <div id="displayDivWhenPageLoads">...</div> - this DIV is show (visible) when the web page loads. I also have <div id="displayDivWhenToggledSelected">...</div> - this DIV is hidden (display:none) wh...

dynamically generting fields using jquery and also making them serverside on asp.net

Hi this may seem like a weird question, but here's my situation: I have a form where the user can click and add rows which contain certain input fields. This is strictly done on client side using JQuery. I can access the input values on postback on asp.net side using Request.Form and the name of the fields, which is fine. The problem...

jquery how to preload then swap images in a expander function?

Hi i am using expander.js a jquery plugin for expanding text. Now here is the thing, whenever the expand and collapse are triggered i am supposed to swap an image. now usually that is not a problem. One more piece of information is that there is a list of items which comes with expandable description and image hence the id inside ...

fancybox jquery codeigniter

hi, I have a small situation. I am preparing a sample for a client and I cannot understand this. I have a div with 7 jpg's and a list item that is a link that if I click should fireup fancy box and show some pics in gallery format. Now this doesn't work so I remembered that I must add the '#' to the list of accepted characters in ci but...

jQuery - two columns - sortable and cookie?

Hello everybody! On my page I have two kind of columns with several conainers in it. Now I want to be able to sort these containers in these two columns. This was not really a problem. I can sort my containers in the two colums and toggle it on or off. But now my problem: I want to sort my containers on reload. I want to sort and toggle...