jquery

jQuery validationEngine and tabbing system

I am working with the jQuery ValidationEngine and also have a custom tabbing function that includes a registration form on one of the tabs. I can't get the tabbing to stop from going to the next step if there was an error on the form. Here is my code: var formValid = $('#registerForm').validationEngine({returnIsValid: true}); if(!formV...

How to trigger link hover state when hovering over its parent LI. jQuery

I'm trying to trigger a hover state on a text link when hovering over its parent li. Is this possible in CSS and secondly, am I missing something with .children that would solve this issue. Here's the HTML: <li class="video-1"> <a href="#"><img src="images/csi-1.gif" alt="csi-1" width="140" height="...

jQuery index of item in selector

this is pseudo code var index_of_myid = $('.selection').indexOf($('#myid)); not sure if this is right is this possible if you can understand what I'm trying to do EDIT <div> <div class="selector"></div> </div> <div> <div class="selector"></div> </div> <div> <div class="selector" id="myid"></div> </div> <div> ...

Cross browser support jQuery

jQuery is famous for cross browser compatibility but, which all properties or functions don't have a cross browser support? I know one: ui-corner-all class won't produce rounded corner effect in any IE browsers. ...

How to remove checkbox from div using jQuery?

How to remove checkbox from div using jQuery? ...

jQuery: Firing an AJAX event local to the element that is loading data

I've been playing around with subscribing elements to AJAX events in jQuery. I have an element that I am using to load AJAX response's. This element is only displayed IF there is data pertinent to the current context of the program. So, I thought it would be nice and easy to .show() whenever an AJAX request has completed on it and hide...

jQuery: loading css on demand + callback if done

hi, i want to load css files on demand (by eg. running a xmlhttp request which returns the css files to be loaded) for example: style1.css, style2.css .. so - is there a way in jQuery (or a plugin) to this: bulk-loading several files + adding all those css-files into the dom when finished loading: firing a callback (like alerting "al...

jQuery + PHP : Deleting rows from a table from multiple ID's

Hey guys. I am somewhat new to jQuery and javascript in general. What I have is a CMS that I am upgrading. In doing so, I have started an option to delete multiple categories at once via checkboxes, which is processed via jquery/ajax. In deleting the records individually, I could remove the row of the table once deleted, but now with ...

How to dynamically use checkbox to get data from mysql? - jquery

Hi all, I am new to jquery and php but I am trying to use a checkbox to grab stuff from a mysql database. To further explain, I want a checkbox and when checked it will place the id of the checkbox in a mysql query and display the results from the database. So, if I check off this box: <input name="apple" type="checkbox" id="apple" ...

How do I create an associate array in jquery and send it via ajax to get parsed with php?

How would I make an associative array (or some comparable alternative) in jQuery AND send that array via ajax to a php page so that I can use php to handle it? Something like this... // jQuery if($something == true) { data[alt] = $(this).attr('alt'); data[src] = $(this).attr('src'); else if ($something == "something else") { ...

jQuery .click() not functioning

I have built a <ul> list and it is being populated with <li id="subsitem"> from a jQuery function. I am trying to build a click function so that whenever one of those <li>'s is clicked, it disappears. I'm using the slideUp() function. Here is my code: $("#subsitem").click(function() { // Act on the event $(this).slideUp(); }); ...

onBlur Javascript event with check if an element has focus

Hello I am trying to find a solution to a simple thing, that looks complex! I have a textarea where users can update their status. Underneath it I have a checkbox (ex: for the user to choose to tweet the status or no). What I try to do is this: 1/ When the textera get the focus, the textarea expands, for that it's fine. 2/ When the t...

change jquery dialog button

I have an issue where I'm reusing the dialog so I wouldnt have to duplicate the code. The issue I'm having is when I click an "Add New" button, I have as button "save" and "cancel". The save button in the dialog handles saving the information. If I click the "Edit Existing" button to edit my information, I would like the "save" button to...

Multiple AJAX requests are not calling onSuccess until all requests are done

Ok, so I'm working on a little photo gallery that will load a set of images using AJAX. Basically it will load a 'loading.gif' placeholder image, make an AJAX request to generate the thumbnail image. PHP page generates the thumbnail and sends a confirmation that the image has been generated and the path of it. My onSuccess should then...

overriding pseudo styles in jquery

How can I overwrite the below css with jquery? (the animations aren't being run and it's just an instantaneous switch) menu span ul {display: none;} menu span:hover ul {display: block;} $('#menu span').mouseenter(function(){ $('#menu span ul').slideDown('fast'); }).mouseleave(function(){ $('#menu span ul').slideUp('fast'); });...

Is there a jQuery gallery/slideshow plugin that matches these criteria?

Can anyone point me in the direction of a jQuery slideshow/gallery plugin that matches these criteria (or can be customized to through setting its options)? Can be inserted into a div - not a popup display No border/thumbnails/filenames/buttons - when an element is being displayed, that's all you can see I need to able able to set a ma...

Is this flash effect possible with jquery?

I see a flash website with some eyecathing buttons with flash effect which I want to have with jQuery if possible here is the link of website -> http://www.goodthinking.com.ph/ .. any tips or sample if can this possible done using jquery code.. . thanks in advance.. . ...

asp.net jquery change html inside updatePanel

Hello. I've got UpdatePanel with Div <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1"> <div class="pnlFind" style="display:none;"> </div> </telerik:RadAjaxPanel> wanna use js for showing this div <script type="text/javascript"> function pageLoad(sender, args) { if (args.get_isPartialLoad()) { $('.btAddU...

How to get specific row text field value using php and jquery?

Hi i want to do the update function where each staff balance is listed in a row of the table. When the form is submit, it will only submit the specific row. Something like this. Preview I am newbie to jquery, can someone give me a direction? <table id="rounded-corner"> <thead> <tr> <th scop...

JavaScript Namespace Declaration Differences

What are the differences between these two types of namespace declarations? Is the first one better than the second one or vice versa? (function($) { $.build = { init: function() { this.attachEvents(); } } } $(document).ready(function() { $.build.init(); }); })(jQuery); versus ...