When you use Google Maps, you click a marker on a map, then a window will pop up. You can even enter your mobile phone number and receives a sms from Google. How to generate that popup window using Jquery or Jquery plugin?
...
I'm using Jquery tools for my tabs - something's gone wrong which I don't know (as everything was working) .. all the panels are being displayed at once for some reason... here is the code:
<div id="form">
<ul class="tabs">
<li><a href="#"><%= GetResourceString( "TabHeaderBasic" ) %></a></li>
<li><a href="#"><%= Get...
Hi,
I’m working on an MVC app using the jCarousel plugin where I have one carousel on a view and a second carousel on a partial view returned as a dialog when a link is clicked.
My issue is that on the second carousel the each function below (from jquery.jcarousel.js) is not hit in IE7 so the carousel doesn’t load.
$.fn.jcarousel = fu...
I'm looking for a jqeury or javascript that fill up a glass of water. So when clicking on one button you add water to the glass and when clicking on another you remove water from the glass. Just wonder if someone already have written something like this that I can use.
Thanks!
...
Using jQuery, and looking to let user drag a placeholder into a text area.
Each placeholder is a <span> which has a class='placeholder'. The text area id is simply 'main_text'.
So, user should be able to drag each placeholder span on top of text area, drop it, and then text gets inserted.
Most desirable effect would be to insert text ...
hey guys, here's my function :
$(".home .up_0").click(function() {
$.post("includes/vote.php",
{truc : $(this).attr("id")},
function(data) {
if(data==1) {
$(this).parents('.home').find('.score_neutre').append(
$(this).parents('.home').find('.score_neutre').val()+1
...
Can someone please explain how the selectors work for the different descendants?
I've looked a bit online but the descriptions I've found so far don't seem to be terribly different.
For example, what's the difference between these three?
$('table tr')
$('table > tr')
$('table + tr')
...
Given that this is the correct way to see if 'this' has class 'selected':
if ($(this).hasClass('selected')) {
// logic goes here
}
What is the correct way to test for the absence of a class?
That is, how can I test if 'this' does not have class 'selected'?
...
$(document).ready(function(){
$("a[rel^='prettyPhoto']").prettyPhoto();
});
How do I get this to load onload instead of when clicked?
...
Ok basically my problem is what i stated in the title. I'm using jquery tabs and after i submit 1 form and i go about adding another news post instead of doing the ajax submit it just posts to the page.
<script type="text/javascript">
//if submit button is clicked
$('#submit').live("click",function () {
//Get the data fr...
hey, i'm trying to change the html of a div after an ajax request, the ajax request works. the data is correct but the selector can't seems to find the div
here's the code
$(".home .up_0").click(function(){
$.post("includes/vote.php",
{
truc : $(this).attr("id")
},
function(data){
if(data==...
I have:
<img class="avatar_img" />
and after:
avatar_img.attr({src: "/site_media/avatars/" + this.userid + ".jpg", title: this.username});
I get:
<img title="admin" src="/site_media/avatars/1.jpg" class="avatar_img">
As you can see, slash "/" from end of tag has disappeard. How can I fix it? It seems to make some problem with...
I have this page:http://www.ryancoughlin.com/files/xml/ - if you select User -> Someones name
You will see a table populate. I am trying to only show JUST the results of the user you selected. Since I am actually loading an XML file I cant really send data to it. So I figured, load them all then hide EVERY entry but the one you selected...
I use this small code within a jquery function, it works in every browser apart from ie6 and it just so happens our client only uses ie6,
Can anyone help me translate this into pure javascript?
$("#large_box2_link").click();
...
I have a question regarding the alignment of accordion items.
<!DOCTYPE html>
<html>
<head>
<link type="text/css" href="http://jqueryui.com/latest/themes/base/ui.all.css" rel="stylesheet" />
<script type="text/javascript" src="http://jqueryui.com/latest/jquery-1.3.2.js"></script>
<script type="text/javascript" src="http:...
The following code
stringref = "tab_2";
jQuery('.someclass a:not(.someclass #a_someclass_'+stringref+')').css('color', '#000');
gives me this warning in the FF 3.5.5 error console and I can't figure out why:
Warning: Missing closing ')' in negation pseudo-class '#a_someclass_tab_2'.
Is my syntax failing me or has FF gone bonkers ?
...
Hi all,
I'm using Visual Studio 2008 and ASP.NET MVC 1.
I have a View where i open another View in a modal popup using fancybox. In this popup users can edit some data. It works great and the data is presented by the modalpopup, but when i click on the save button, the parent window changes to the modal popup content.
<script type="te...
On http://jqueryui.com/demos/accordion/ at the top right corner, you can see a dropdown that says "Theme: UI Lightness" by default.
I'd love to create such an interactive element in my web application. Does anyone know of a good jquery plugin to easily do this?
...
I'm trying to put together a way of marking up various components in HTML that get parsed by a jQuery script and created when the page loads.
For example, at the moment I can put the following in to my page..
<a href="link.html" class="Theme-Button Theme-Button-Style-win2007 Theme-Button-iconLeft Theme-Button-AlignmentCenter Theme-Butt...
I'm having one heck of a time getting this validation to work.
I'm using the JQuery Validation framework found here, and I'm trying to validate a form that has both a select and an input as required fields. I've managed to simplify the problem down to a rather simple prototype that demonstrates the problem:
<%@ Page Language="C#" Au...