Here is my code:
http://jsbin.com/uhera3/edit
When I use jQuery to .hover(), the relatively positioned floated divs jump to the left (seemingly losing their margins) in IE7.
Any ideas how to fix this?
...
I'm using the jGrowl jQuery status-message plugin to display a sticky message on page load, and it works perfectly on all browsers except Internet Explorer 8. In this browser, there remains a small block, about 2 lines high but with no text, even after closing the sticky message. It does not have a close button, or anything, for that mat...
Hi,
I am creating my own jQuery plugin. Here is the code which I have written till now:
(function ($) {
$.fn.customPlugin.defaults = {
x: 'test',
y: 'foo'
};
$.fn.customPlugin = function (options) {
var opt = $.extend({}, $.fn.customPlugin.defaults, options);
return this.each(function () {
...
Hi I want to validate a form using a button, but this button call a .ajax function to submit the form.
How can i do this? I've searching.
I had one way but i wonder if there's an easy way.
The way I accomplished this is:
Javascript
jQuery(document).ready(function () {
$(ACCION).validate({
rules: {
...
I have this jQuery AJAX code, when the request is successful, it does this:
success: function(msg)
{
$('.login-msg').css('color', 'green');
$('.login-msg').hide().html(msg).fadeIn('slow');
$('#user-tools').hide().html('<span class="user-credits"><a href="javascript:void(0);" class="logout-btn">Logout</a></span>').fadeIn('slo...
Hi,
I'm trying to get my facebook graph oauth setup using javascript's window location methods.
Here is my code so far:
function fbLog() {
var clientID = '11502353444318540727';
var redirecturi = 'http://google.com';
var clientSecret = '6987d02323442423231f8b9da767b060e9';
var codeURI;
$('#fbLogin').click(function() {
window.locatio...
Hello,
I have a slide show with Previous and Next buttons that works fine with 3 <li>'s but once I add a Fourth (or more) the next button and previous button don't show up, and they don't work (even if they were invisible). Any ideas?
The Sample Page is:
http://newsite.702wedding.com/las-vegas-wedding-packages.aspx
using jQuery Colorb...
I do an ajax call:
$.ajax({
url: '/foo/getData',
dataType: 'json',
async: false,
success: function(data){
lat = data.project_x;
lng = data.project_y;
zoomin = parseInt(data.mapzoom);
console.log(data);
}
});
and return:
[{"id":"3","project_x":...
jsFiddle
I'm trying the get the ID of a button using $(this).id, but it's coming up as undefined. What am I doing wrong? Thanks for reading.
EDIT: Code from jsFiddle example:
HTML
<button id='remove_button' type='button'>Remove</button>
jQuery
$('#remove_button').mouseup(function(){
alert($(this).id);
});
...
I have really liked how the new Twitter and Facebook have saved page loads by instead loading the content dynamically through ajax. I want to start rolling this out to my sites, but I have no idea where to even start.
Twitter and Facebook now have uri's like this:
http://twitter.com/#!/messages
$(document).ready(function () {
// Check...
I am using jQuery-1.4.2 with CakePHP and a few days ago I had this working fine but now it isn't. I don't remember changing anything. I am taking the URL generated from the javascript and putting that directly into the browser and I am able to see the results in my browser however javascript is just getting a return value of null. Any...
I have a variable which holds a relative link for an image. This image link file name can have various lengths. For example...
/v/vspfiles/assets/images/d-amazingamethyst.jpg
/v/vspfiles/assets/images/cdacarbon.jpg
I would like to extract from this variable only the filename with out the .jpg extention and without the preceeding pat...
I'm building a web app with jQuery & Rails. The web app loads pages with AJAX ... no page refresh.
When a user clicks on a link to load a new page via AJAX, i want to update the address bar. I also want to maintain the browser's back button support.
ideas?
...
When the user performs a certain action I want to bring them further down the page. Kind of like how an a-name link works. Except obviously it needs to happen without any additional parameters being added to the url or refreshing the page.
So what would be the jQuery way of doing this:
<a href="#person">Click Me</a>
<a name='person'>T...
I normally don't ask for help. I have spent 3 plus hours trying to incorporate simple javascript using JQuery with MVC app. Not a production app, I am just trying to learn MVC and JQuery. I have googled and found various sample apps that I couldn't get to work. so here is a detailed explanation of the latest download that I am trying to ...
I read lots of questions about this, but every solution uses the same workaround, submiting the form inside the jquery dialog, something like this:
$("#dialog").dialog({
buttons : {
"Confirm" : function() {
window.location.href = targetUrl;
},
"Cancel" : function() {
$(this).dialog("close");
}
}
Isn't ...
I want to store the current page number in a jquery variable, but I am not sure if it is possible, so I am storing it in an input field. Am I doing it the most efficient way?
<input type='hidden' id='current_page' />
$('#current_page').val(0);
if page is changed,
function (newpage){
$('#current_page').val(page_num);
}
...
I have a external js file handling deleteing some element. According to the result, I would determine whether I need to refresh the page or not.
var deleted = 0; // first assume not deleted
$(function() {
$("#action a.action-delete").click(function() {
var id = $(this).parent().parent().attr("id");
$.get("modify-s...
Hi,
I'm trying to use the jQuery "Cycle" plugin (http://jquery.malsup.com/cycle/) to rotate testimonials located within <span>s ... however the plugin is causing my content to not be centered. Yesterday morning someone here pointed out the <span> elements are being absolutely positioned by the plugin: $slides.css({position: 'absolute', ...
I have a simple textbox and autocomplete like so:
<input id="tagQuery" size="25" type="text" class="tagsearchbox" name="tagQuery" style="vertical-align:middle" />
<script>$("#tagQuery").autocomplete("getAutoCompleteData.jsp");</script>
getAutoCompleteData is a jsp file containing JUST this (atm):
<%
String query = request.getPa...