Basically I am using jQuery ui's selectable functionality on a ul, but the ul will often times have a scrollbar, and this scrollbar becomes unusable in Webkit browsers since when you try to click on it to grab it, the lasso for the selectable functionality is drawn overtop instead.
I have formulated a solution, which involves checking t...
Hi,
In javascript I can use the following code both ways, i.e:
var a = document.getElementById("emp").value;
document.getElementById("emp").value = a;
So I can basically retrieve a value as well as assign a value using ...().value
In jQuery, what is the equivalent to the above, i.e retrieve and assign
Thanks.
Tony.
...
I have this javascript:
triggerAnimation(listItem,toggleToggleRadioListItem(listItem));
function triggerAnimation(listItem,passThruFunction){
listItem.find(".inlineLoading").show();
// pause and then call the toggle function
$("body").animate({opacity: 1}, 1000,
function(){
alert("a");
passThruFunction;
}
...
I found that CrossSlide causes video playback on the same page to stutter quite badly. My thought was to have the cross slide effect on the same page stop or pause during video play back, annd then start again when video stops.
Id doesn't look like there is any start stop function included. Does any one know how I might be able to acco...
This sounds a little obscure, but...
Is there a technique in Jquery (or just straight javascript) to step thru all the external CSS and JS file references in an HTML file and replace the references with the contents of the files.
So instead of:
<link rel='stylesheet' id='style-css' href='http://domain.com/style.css' type='text/css' me...
$(document).ready(function() {
$(document).keyup(function(e) {
alert('This key: ' + e.keyCode);
});
});
If an individual key is mapped to multiple characters, then the keyup event will execute multiple times for one key press.
Does anyone know how to identify just the physical act of pressing the key in this instance?
...
Hi all, I was wondering if it's possible to create an image of a div inside a page in php, jquery or javascript? Or even just a screenshot of the entire page (on my own server - not external)..
What I want to do is create an image of a graph (drawn in via jQuery) and pass it onto a PDF, as I can't seem to get the jQuery to display in th...
Hello All,
I am new to Jquery, I have a problem regarding uploading the files using Uploadify. Iam trying to send a file to the Java Servlet which uploads the file using apache commons.
But while executing the code, it is not all going to servlet. I actually took this sample example from web and trying it. Can anyone advice what am i mi...
im doing following
var data = $(form).serializeArray();
// now i want to add another value on this data
data.username = 'this is username';
i want to know how can i add another value after doing serializeArray(), i tried all the things i know, but nothing is getting it to work. any ideas pls.
...
Hello all,
I have this line of code which rounds my numbers to 2 decimal places. But the thing is I get numbers like this. 10.8, 2.4 etc. These are not my idea of 2 decimal places so how I can improve this:
Math.round(price*Math.pow(10,2))/Math.pow(10,2);
I want numbers like 10.80, 2.40 etc. Use of JQuery is fine with me.
Thanks for...
(Jquery) I have two divs that I'm toggling back and forth (show and hide) between on my page using a link to each. I want the link that is clicked on to change to a highlighted background color and when you click on the other it is highlighted and the previous goes back to normal.
I've tried reworking the toggle code I've got for the di...
lets say inside a <textarea>, i type in a bunch of keywords on each new line.
keyword1
keyword2
keyword3
...
$('textarea[name=sometextarea]').val().split('\n').each(function(e){
alert($(this));
});
...
I have a function in jquery I would like run in flash using action script 2.0
The Jquery:
<script>
$(document).ready(function(){
$("a").click(function(event){
$("div#Header").height(97)
.css({cursor:"auto", backgroundColor:"#FCC"});
});
});
</script>
The Html
<a href="#">Run</a>
How I do this in actionscript 2.0?
...
I have a page setup that uses jQuery + AJAX to load content into an accordion frame. It works fine for loading straight text/HTML but I now need to load Javascript along with the HTML.
To elaborate, I'm using GalleryView to display images in a photo gallery section of the accordion. When I load the HTML file, however, the scripts aren't...
How to get a selected text inside a iframe.
I my page i'm having a iframe which is editable true.
So how can i get the selected text in that iframe.
...
I have a form that I'm trying to duplicate using jQuery. I'm using the clone() method, which returns the cloned object (DOM element). I need to then select elements of the cloned form and manipulate them. Is this possible? If so, how?
I've tried stuff like:
var clonedForm = $("#myForm").clone();
clonedForm.$(".inputField").val();
But ...
By now, I'm sure a lot of people will agree jQuery is pretty much the standard JavaScript framework (or as much as one can ever be). I mean, it has been adopted by Nokia and Microsoft.
Now that Google has put out it's own framework, is it worth my time learning it? Do you expect good adoption of it because of the Google name?
...
Get Selected id's
jQuery("#m1").click( function() {
var s;
s = jQuery("#list4").getGridParam('selarrrow');
alert(s);
});
i have data in the grid "#list4" but it is giving error: getGridParam is not a function.
Please sort out the prob.
...
Hello,
If I have a bunch of links to an image like this:
<a href="foo.png">foo.png</a> <a href="foo.jpg">foo.jpg</a> <a href="foo.gif">foo.gif</a>
How would I find it all with js and then add a class?
This is what I was thinking but that didn't work:
$('a[href*=.png]').addClass('image-link');
$('a[href*=.jpg]').addClass('image-link...
I'm trying to learn jquery and I'm having some difficulty figuring out how to deal with a set of jquery results. Let's say I have some html like:
<div class="divClass">
<p class="pClass1">1</p>
<p class="pClass2">Some text.</p>
</div>
<div class="divClass">
<p class="pClass1">2</p>
<p class="pClass2">Some text.</p>
</div>
<div c...