I have a form that is validated once the user "blur"s out of an input field. So:
$("#field1").blur(function() {
if($(this).val().length>0) {
$(this).attr('class', 'completed');
}
});
When the user first visits the form, and up until all fields are "completed", the submit button is hidden:
$(".submit").hide();
I want the submit...
I'm working on this site http://church.allthingswebdesign.com and the links on the left require 2 clicks to get the li's to slide in, while in FF you only have to click it once. The desired result is to only have a user click it once.
Here's my jQuery:
//slides the left sidebar links when the button is clicked
$('div.links').hide();
$(...
I'm using jQueryUI and jQuery-tmpl, but I believe the advice I'm looking for is broad enough it'd apply to any sort of templating library.
The problem I have is that I'll often have some sort of CRUD widget in my template
<script id="some-widget-template">
<div class="some-widget">
<input name="NameField"/>
<button id="some-widget-sa...
I'm using MVC 2 and loading a partial view via AJAX which contains my jqGrid. The problem is that my OnSelectRow event only fires once if I have it in an external .js file. Is it possible to use the jQuery live to bind to the OnSelectRow? I can only see how to bind the OnSelectRow in the options for the jqGrid?
Thanks for the help,
Ciar...
hi,
is there a good jquery plugin for lazy loading css+js which also supports callback-when-loaded?
i'd like to pass eg. an array of .js and .css files and have a global callback for when anything finished loading. any ideas?
thx
...
I'm a newbie to the jQuery UI plugin and I'm building a demo application to test my knowledge. I'm using the radio button add-on and I can't seem to get it working. I have the following line in a function called when the body loads:
$("#buttonSetDiv").buttonset();
I'm also including the CSS and JS correctly, like so:
<style src="jque...
I've got a mass of values in a JSON file containing the names of venues and their contact information along with a description. I'd like to generate a table listing the contents of the JSON file on my page. I'm hoping to create a live search function that removes each entry that is no longer relevant with eachkeyUpdetected.
The JSON
[
...
Site in question: http://tinyurl.com/23oar6z
You can look at the source for the javascript on the JQuery or the main part here:
// validate signup form on keyup and submit
var validator = $("#Register").validate({
rules: {
UserID: {
required: true,
minlength: 2,
remote: {
...
Hi guys,
I'm trying to add a new method to jQuery validation plugin with the codes below. My goal is to check whether the email address has already existed in the database(MySQL). If it is, it will inform the user to register for another email address. Somehow, the result that always returns is "Email is already taken".
These are the c...
Hi folks. Gotten a lot of great help here! The code here has been helped along by a few folks. Hopefully someone can help me take it to the next level.
Basically, I have code which will add a checkmark after a given period of time to a clicked item in the left navigation. There are going to be other links on the page which are going t...
My page navigation follows the following pattern:
<div id="topNav">
<ul class="sf-menu sf-navbar">
<li class="menustrip"><a>...</a>
<ul class="navsubmenu">
<li><a>...</a></li>
..................
</ul>
</li>
<li class="menustrip">....</li>
....
I'm having an issue sending array parameters to a Struts 2 action class. I am using struts 2.1.8.1.
Here is some example code:
public class MyAction extends ActionSupport {
private String[] types;
public String execute() {
return SUCCESS;
}
public String[] getTypes() {
return types;
}
public...
Possible Duplicates:
jQuery Standards and Best Practice
Javascript Best Practices
After finding that a website I wrote is leaking memory like crazy, I've started trying to improve the way I write my Javascript/jQuery code.
For instance, instead of writing:
if ($('#elem').is(':checked'))
I can write:
if ($('#elem')[0].ch...
Hi,
I have a DIV that im trying to adjust the top margin on upon click of the trigger link using jQuery. My code is below.
The problem is, this only works one way - decreasing the negative top margin back down to 0. But on second click it doesnt increase it back up to -200px.
Anyone have any idea why?!
$('.gh-gallink').click(
fun...
I'm building a simple html5 app to monitor the total network traffic that's incoming and outgoing. Is it possible to know your bandwidth usage using js?
...
How can I have all my nested lists collapse and expand when clicked.
Here is my xHTML.
<ul>
<li><a href="some-link.php">First Nested List</a></li>
<li><a href="some-link.php">First Nested List</a></li>
<li><a href="some-link.php">First Nested List</a>
<ul>
<li><a href="some-link.php">Second Nested List</a></li>
...
Really weird issue I've come across now.
I'm using jQuery to make some 'widget' windows (drag & resize). They work beautifully in everything but IE (big surprise, right?). They also do everything they're supposed to in IE (drag, resize, dim on moving, return to proper opacity on release). However, in IE, when you 'let go' of the window...
Is there any plugin which will help to create a dropdown menus for countries, regions and cities? At first user chooses country, then he has his region dropdown menu updated according to which country he has chosen, he chooses region and after that from 3rd menu a city.
Plugin can be either for Ruby on Rails, jQuery or maybe javascript ...
Well there are so many image gallery plugins for jQuery, I need one that can show the images in three sizes. A basic image gallery plugin usually displays all thumbnails and one large image. Clicking on the thumbnail brings the larger version of the chosen image into view. I want something after this stage: clicking the larger image shou...
Hi All,
I've been asked to add the HopToad JavaScript Notifier to a site. The JavaScript can be seen here.
What I am wondering is if there is a way that I can set a global error handler for JavaScript / jQuery the way I can with ColdFusion, where any error that occurs, AJAX or just in a function, causes the HopToad.notify(e) function t...