Hi,
I have object (div-box), and it's draggable (I'm using jQuery). How I can get information which direction it has moved a visitor? Example: User drag it to left down and I wanna know it, how?
P.S.: Sorry for my English
...
function dlLink(title, currentArray, currentIndex, currentOpts)
{
var img = new Image();
img.src = 'Gallery/Wallpapers/' + title;
html = img.width + ' x ' + img.height + '<br />'
+ '<a class = "nav" href = "Gallery/Wallpapers/' + title + '" target = "_blank">Download</a><br />http://';
...
hi guys,
I have following a tags:
<a href="#tab1">Any tab1 Label</a>
<a href="#tab2">tab2 Label</a>
<a href="#tab3">Any tab3 Label</a>
<script>
function tellMyName()
{
alert(this.href);
}
</script>
Now i want to bind the tellMyName function to all the a tags and get tab1 if Any tab1 Label is clicked, tab2 if tab2 Label is clicke...
I have using BlackBerry curve 8900 and SDK 4.6.1 but i can't get a .jdp file while build a application through eclipse.What should i change or include for that.But i can get all other files except .jdp .Please help me.
Thanks in Advance..
...
I want the notify to occur only after the unblock event, however both occur together. I am pretty new to JQuery.
function isSuccess()
{
$(function () {
setTimeout('unblock()',1000);
$.notifyBar({
html: "Thank you, your settings were updated!",
...
link for jsfiddle: http://jsfiddle.net/6UWZQ/1
look on this live link, if you click on any row on delete or edit and after click cancel, the button will remain highlighted (only in Firefox)
I make the buttons like this:
$("input[type=submit]").addClass("abtn");
$("tbody a").addClass("abtn");
$(".abtn").button();
and I add a confirm...
i have script like this
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Testing Ajax</title>
<script type="text/javascript" src="jquery.js"></script>
</head>
<body>
<a class="test" href="getthis.php">click here</a>
<div class="get"></div>
<script type="t...
if you run this simple html, you'll notice that removing the html of the main div doesn't remove the child which was made dialog()
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/aj...
$('.button').click(function() {
$('#small-form').animate({
width: ['toggle', 'swing'],
height: ['toggle', 'swing'],
opacity: 'toggle'
}, 5000, 'linear');
$('#big-form').animate({
width: ['toggle', 'swing'],
height: ['toggle', 'swing'],
opacity: 'toggle'
}, 5000, 'linear');
}...
How to disable the querystring value once the value from is extracted
$(document).ready(function() {
var page1 = Request.QueryString("page1");
alert(page1);
if (page1 == 1) {
// i will execute my code here
............
........
.......
}
else
{
$("#SearchButton").click(function() {
}...
What's the proper way to get the position of an element on the page relative to the document?
offsety/x is the jquery variant: http://docs.jquery.com/CSS/offset
I need the EXTJS variant please.
Edit
Possible problem.
Because grid components are not part off the dom, the grid height is not taken into
consideration. I think I need a c...
HTML below is generated via ajax call into "purchase_content". I want to apply tooltip to each link in each row, can be up to 100 rows.
This is code at moment but with no success. If I rollover each link twice tooltip appears but wont ever appear again. Any thoughts on addressing link on each row?
<div id="purchase_content">
<div id...
I would like to update the flashvars value argument to view another video:
<param name='flashvars' value='movieId=1002' />
I found out that I can make it work in Firefox by updating the parameter with the extra step of readding the whole flash contents.
$("param[name=flashvars]").attr("value", "movieId=33");
$("embed").attr("flashvar...
hi folks
I need some jquery code in my application I have a button on the page and I want to handle it by jquery when the user click on it to show a confirmation dialog for example Are you sure? yes|no buttons but this is an asp.net button inside the updatepanel and in the other side I have some server side code to delete a record from...
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js"></script>
<script type="text/javascript">
alert('works');
</script>
<script type="text/javascript">
$(window).load(function () {
alert('does not work');
});
</script>
Very strange, I'm not sure why it ...
I have using colobox which is a jquery modal window to create a login/regiestration process through modal pages called in an iframe. I am hoping to be able to switch the css from a link within the iframe. I am trying to change the height of the modal window when switching between ajax pages within the iframe. If I try something like ...
I'm using this piece of code to create a property map that I will pass to jQuery:
var myMap = {"one": 1, "two": 2, "three": 3};
However, this isn't complete. I want to iterate through a for loop and create a complex property map, that looks like this:
[...
{
sleep: 2,
fade: 1
}, [
{ src: 'sand-castle.jpeg' },
{ src: 'sunflowe...
I have some code a little like this...
<img src="..." width="100" height="100" alt="" onclick="FlipImg(1234)" />
There are lots of these images on the page, each with a different id in the FlipImg() call.
I normally prefer to put this type of code into a bit of jQuery, maybe a little like this...
$("img").click(FlipImg(<id from some...
How can I clone dropdown list(combobox) with selected option?
jquery .clone method is not working in firefox for selected option.
I have a div having different controls. I have to copy entire div to a variable something like this
var $orginalDiv = $('#myDiv');
var $clonedDiv = $orginalDiv.clone();
$clonedDiv.find('select').each(fun...
Hello
I have a table (with class name ".data") with it's thead holding a single checkbox for selecting / deselecting all checkboxes inside my tbody.
Also each checkbox inside the tbody can be selected invidually and once a checkbox is selected, it adds a new class to the selected row(for making background some other color for highlighti...