jquery

any simple jquery <table> paginators

I'm looking for a jquery plugin so I can paginate my html tables (the content of which is generated by a jsp c:forEach). But so far I haven't found anything that worked. The plugin doesn't need to be fancy, in fact something like the first example on http://dl.dropbox.com/u/4151695/html/pajinate-0.2/examples/example1.html would do fine....

Finding a particular parent of an HTML DOM element

Lets say I have the following: <table><tr><td> <table> <!-- I want a reference to this table --> <tr> <td> <table> <tr><td><span class="theSpanClass"></span></td></tr> </table> </td> </tr> </table> </td></tr></table> Using jQuery, I'd ...

Stuck on conditionally enable or disable input with JQuery

I am attempting to conditionally enable or disable HTML input based on the value of a variable. The "disable" part is working well, but the "enable" isn't, and I can't figure out why. The code: <--if variable is true...--> <div id="disabledSearch" class="searchBox disabled"> <script type="text/javascript"> $('#disabledSear...

Does IE have a max selector length?

I am using the statement given below to remove the check marks from a selected list when clear is clicked. It works perfect in FF and GC(google Chrome :-)) but not in IE. $("#divResults li span .ui-icon-check").each(function () {$(this).remove(); }); Any idea why this does not work in IE? Are there any specific limit in the number of ...

Issue using JSON with JQuery and MVC

I'm trying to execute my controller from javascript using jquery... here is my jquery code that is executing.. <script type="text/javascript"> $('form').submit(function (e) { e.preventDefault(); $.ajax({ type: "POST", url: $(this).attr("action"), data: $(this).serialize(), contentType: "application/json;charset=utf-8", ...

jQuery .click() .toggle() - change display and swap character

Here is my jQuery: $('.ask').click(function() { $('.addtitle').slideToggle('fast', function() { // Animation complete. }); }); And my HTML: <p class="ask">+</p> <div class="addtitle"> <p>Give your Idea a great title</p> ...

jquery getjson works fine in mac, and fails in windows

this code loads the data jQuery.ajax({ type: "GET", url: "getOptionsJson.php", cache: false, dataType: "json", data: "config_id="+config_id, success: function(json) { jQuery.extend(dataArr, json.ajax); jQuery.extend(opts, json.ajax2); printResult(config_id)...

need to changed markup with jquery to work with thickbox iframe (2nd attempt)

This is a revised attempt at solving this issue. Excuse my noobness. I have the following markup on a page of which I do not have direct access to... <a href="javascript:void(0);" onclick="window.open('/BulkDiscounts.asp?ProductID=318&ProductCode=' + escape('LB30X40ES') + '&Orig_Price=22.95', 'Discounts', 'scrollbars,status,resizable,w...

Tooltip on button click using jquery

How can I show an error message using tooltip on click of a button and that too if there is error, else the button should just work fine to submit the form? Here is what I have tried with modal dialog $.fx.speeds._default = 1000; $(function() { $('#dialog').dialog({autoOpen:false,show:'blind',hide:'explode'}); $('#savej').click(funct...

How to create Hash object/array using jquery?

Hi folks I know there is a Hash() object in the Javascript prototype framework, but is there anything in Jquery like this? As I would like to stick with one javascript framework, rather than mixing the Prototype Frame work and the JQuery framework and use at the same time, as I worry there will be conflict and create side-effects. So ...

jQuery background-position animation

Hi guys, I've created an image which is basically a CSS sprite of 3 images together. It's size is 278x123 so they are basically 3 images of 278x41. What I am trying to do is to make an animation of that by changing the background position. I've tried many things, one of my not very working solution is the following: var $slogan =...

Internet Explorer IE 8 overlay lines render issue on dropdown

I have an issue with menu dropdowns that use JQuery. Using IE8, take a look at my menu just below the header. Hover over 'Acrylic Awards', then 'Award Plaques', then 'Crystal Awards'. http://www.blackacedesign.com/ Anyone know what causes this issue in IE8? And how I can fix it? ...

dynamically changing the selector text

I have a 'next' button which fades out a div, shows another, changes out a graphic and then... I want it to change the actual ID of the 'next' button but neither .html nor replaceWith seem to be working. I have this: $(document).ready(function(){ $('#portfolio').fadeTo(500,0.25); $('#account') .animate({width:"10.1875em",height...

Problems with AJAX in jQuery and IE.

I had a really problem with Internet Explorer in all version i have a code in AJAX using jQuery, works perfect in all the others browsers and the propouse it's return an alert with the message "Bienvenido", but doesn't works with IE. Here i provide the code and the page in where you can try with the code and see. function chargeFnc(mdln...

How to change the jquery table footer for pagin..

Hello friends I have jquery grid with paging at the footer of the grid, i have >> > arrows for next and last.. istead of that can i define First Previous , Next and Last here is the Code which I have for Find, Columns and refresh the Grid.. thanks ...

jquery ajax and php arrays

Hi There, I am trying to submit some data to a PHP script, however the PHP scripts expects the data to arrive in a specific format, like this example which is a dump of the post, Array ( [save] => Add to shortlist [cv_file] => Array ( [849709537] => Y [849709616] => Y [849709633] => Y ) ) The process is currently that a user selects t...

How to create and send JSON from client side

Hello, I have a web application. On the client side I basically need to get the values of some fields and turn them into JSON and then send them to the server in an AJAX kind of way.(asynchronous) How would you do that? I also am using jQuery ...

Jquery toggle with two elements

I am using a toggle on a graphic to slide out a contact form. The problem is, the contact form can cover up the graphic element on low resolutions. I thought a solution would be to include a "close this" inside the form, that would use the same toggle effect. When I add the close this element to the code, instead of working in tandem wit...

jQuery: How to use modifier keys on form submit?

Say I have a form that looks like this: [ Animal name input field ] Add button If I type a name and hit enter, an animal with the given name is added to a table. Works fine. What I would like now is to call the current way of working "quick add" and add a new feature called "slow add", which I am not quite sure how to do. Basically...

jQuery: is there a way to make a recursive child selector?

instead of checking only the immediate children of an element, i would like to recursively check all children of the element. specifically, something like $("#survey11Form>input[type=text]:visible").val(); with the html: <form id="survey11Form" name="survey11Form" action="#" method="post"> <div id="survey11Div"> ...