I'm working on a website where a 'Tweet This' type button is essential (as is a facebook 'like').
About a week ago Twitter launched their own official Tweet button. I'm curious to hear anyone's experiences with using it, particularly in comparison to TweetMeme and John Resig's ReTweet script.
I'm interested in any performance issues, a...
Hi,
is it possible to animate -> css('height','auto') ?
working example
http://www.jsfiddle.net/V9Euk/154/
CSS
#div1 {
position:absolute;
right:30px;
bottom:0px;
border:1px solid #ff0000;
overflow:hidden;
}
html
<div id="div1" style="height:20px;">
Test<hr />
text text <br />
text text...
edit: this is now solved, see my answer below
The situation:
User clicks on a map-image
google maps API V3 is loaded via
ajax
the map is shown in a dialog window
/ lightbox
please see glitch here
What happens:
The map displays and all functionality works however there's a glitch with the top-left 'square' of the map.
I'm stuck...
Hi
I have a little problem when i try to clone an element with jquery basically I Have this, i want to clone the div called clone and put in other div in some where else.
<li class="jqModal" >
<div class="clone">
<div class="image">
<img src="<?php echo $products[$j]['thumb']; ?>"
title="<?php ech...
I need to cycle through 4 images on my site, I didn't want to add another plugin to the site, so i created my own simple carousel (html, css, and js below)
My question is, just from looking at this code, is there an obvious simpler/better way to do it?
html:
<section id="carousel">
<img src="images/image_00.jpg" width="202" height...
Hi,
I have a working simple jquery drop-down menu. But problem is how can I put an arrow or just '+' character each other like other usual menus if list has sub-menu, of course.
function Mx_menu(){
$(".menu ul").css({display: "none"}); // Opera Fix
$(".menu li").hover(function(){
$(this).find('ul:first').css({vi...
<a href="#addFriend" rel="facebox" title="[+] add <?php echo $showU["full_name"]; ?> as friend">
<div class="addFriend"></div></A>
<div id="addFriend" style="display:none; margin: auto;">
<form action="javascript:DoFriendRequest()" method="post">
<input name="commentFriend" type="text" id="commentFriend" value="" size="2...
Similar to this question:
http://stackoverflow.com/questions/744319/get-css-rules-percentage-value-in-jquery
However, I am writing a plugin and it needs to deal with it gracefully dependent on how the width was originally specified. If the element was originally specified in pixels it is fine as that is the value that .width(), .innerWi...
This is kind of "I already lost x hours debugging this" kind of problem/question :(
Following jQuery js code is initiating POST request upon button click
$("#btn_create_tag").click(function(evt) {
$.post("/tag/createAjax", {
tagname: $("#txt_tag_name").val()
},
function(data) {
}
);
});
Django code that is per...
I use the following structure to set out my objects/classes in JavaScript:
SelectUser = function(instanceID) {
this._instanceID = instanceID;
// Initialize
this.initialize();
}
SelectUser.prototype = {
initialize: function () {
...
},
update(userID) {
$('#hidden-field-' + this._instanceID).val(...
This is supposed to return a JSON object containing a list of picture filenames. The commented alert shows the correct data, but alert(getPicsInFolder("testfolder")); shows "error".
function getPicsInFolder(folder) {
return_data = "error";
$.get("getpics.php?folder=" + folder, function (data) {
data = jQuery.parseJSON(data);
...
I've seen these questions here before, but, I can not find any good answers.
Is there a way to combine selectable and draggable? I don't want to drag the elements themselves, I just want functions like the ones in Apple's MobileMe, you know, red dot follows the mouse, it can be dropped onto another folder.
If this doesn't exist in jQu...
Is it possible to detect once an image has been loaded with jQuery?
...
I've written an updatescript that updates a few div's every second with serverside info.
Now the problem is it seems kinda heavy usage, in google chrome my mouseanimation even keeps loading.
I hope somebody can tell me how to better this script or maybe got an other solution.
Here is my aspx page:
<%@ Page Language="C#" AutoEventWireu...
Hi there
I use a pagination plugin and I'd like to make one of it's functions public, so I can call it from "outside". I can not call it directly, using pageSelected($(obj)).
Is there an easy way to make it visible so I can call it?
Jerry
...
I have an image that is wrapped inside a couple of DIV elements
<div id="wrapper">
...
<img src="myphoto.png" height="400px" width="500px>
</div>
I use jQuery, to access the height or width I either use
jQuery(img).attr('height');
or
jQuery(img)[0].height;
Unluckily, when the wrapping DIV 'display' property change, these values ...
Hi,
I'm trying to call a blur function on a variable assigned to a jquery object (an input field). How do I call the function on the variable?
var someObject = {
day: $('#dayInputField'), // input text field
init:function(){
console.log("this.day" + this.day); // outputs object
this.validateField();
},
va...
I'm using FullCalendar in a project and the month view is great. But I also need to create a simple unordered list of the events gathered from 4 different Gcal feeds, and I haven't been able to do it. Anyone got any ideas? A quick response would be great.
...
Hi there,
I have a div which has 100% width of the window, which is a container for the jScrollPane div.
On Window Resize the scroll pane does not move, is there anyway to make jScrollPane resize with the window?
Thanks!
...
I have the following simple code, where I double click a div (with class container) and it's simply clones itself inside another div (with id containment-wrapper):
html
<span class="container">div one</span>
<div id="containment-wrapper">
</div>
Jquery
$(".container").dblclick(function() {
$(this).clone().appendTo('#contai...