How do I go about binding a function to left and right arrow keys in Javascript and/or jQuery? I looked at the js-hotkey plugin for jQuery (wraps the built-in bind function to add an argument to recognize specific keys), but it doesn't seem to support arrow keys.
...
I've been using jQuery .find() to do xml traversal, and I'm finding that occasionally I have a child tag in a tree that will collide with a tag somewhere further up the tree. For instance...
<?xml version="1.0" encoding='UTF-8'?>
<userInfo>
<firstname>This is a firstname</firstname>
<lastname>This is a last name</lastname>
<app...
Hi,
I use iepngfix.htc for png in IE6 and jQuery(noConflict mode).
iepngfix.htc doesn't work with jQuery, which means png transparency doesn't work.
It's strange.
How can I avoid this?
Thanks.
Sam
...
I have jQuery similar to this on a view:
<script>
$(function() {
$("#yourID").makeAsyncUploader({
upload_url: "/Images/AsyncUpload",
flash_url: '/Scripts/swfupload.swf',
button_image_url: '/Scripts/blankButton.png'
});
});
</script>
I need to change the upload_url to ...
I'm having a problem using the jquery hover events. I've created a reduction of the problem. You can find a working demonstration here. I can reproduce this after moving the mouse around in IE, FF, Opera, and Chrome.
I'm using queued animations in my mouseover event. Roughly 1% of the time, the color of the td elements is left as #...
Hi Guys,
I have this site I am developing: http://tinyurl.com/l7uzzp - I made the scroller with the following code:
$(document).ready(function()
{
function scrollIt()
{
$('#featured-brands div#scroll').animate({
marginLeft: "-4550px"}, 85000, "linear").animate({
marginTop: "-223px" }, 2...
When using jqModal how can I position the window relative to some element in the page. If I have $('#dialog').jqm(); for example, how can I tell it to position the window relative to the element with id #button -- perhaps a few pixels below or to the right. Thanks.
...
Hi,
recently just tried to jump right into jQuery but found it to be harder than I expected.
I was trying to implement the Coda Slider 1.1.1 to my new layout. Somehow my cross-links are not causing the "slide effect" that should appear. The linking is working but without the effect.
See for yourself at http://www.origross.net/od/jquery...
I am using this plugin: http://jquery.bassistance.de/autocomplete/demo/
I have an autocomplete textarea where the values are autocompleted and are separated by commas.
This textarea is inside a form. When I submit this form, I expect the values to be transmitted to the serverside which is the action of my form. However, I am not gett...
Have two connected sortable lists inside a div.Need to be able to reorder items in each list,updating with ajax.And I want to use it with php and mysql.but I don't know how to do it? could anyone can help me? thanks!
...
Hey so I'm not sure if this has any easy or good solution, but I figured I'd post here and find out if there's something I'm not thinking of.
Basically we have a bunch of data that's nested in logical groups (not necessarily reflected in the database architecture), and it's being loaded and navigated by way of dynamic ajax loads. Thi...
I have noticed a strange thing happening in jQuery and wonder if anyone knows why?
Upon clicking the following anchor tag
<A ID="catchme" HREF="#">Add Row</A>;,
my jQuery script will catch the click and display a hidden table row. The problem is the considerable lag to the redraw operation. Additionally, none of the animations will ...
<select id="target">
<option value="1">item1</option>
<option value="2">item2</option>
<option value="3">item3</option>
</select>
Say,I want to do some processing according to selected value.
...
<div class="a b"></div>
Say, I want to change it to:
<div class="a"></div>
And reversely, how to add class "b" to a div with class "a"?
...
is there any existing function in jquery library with the help of
which I can submit request and be able to show other page.
like for example in my case I have a page where there are gif's
existing on that and onclick of these gif's I have to show other
page, is there any function available.
...
This is the file I'm using $.load() to load into DOM:
<script type="text/javascript">
$('.close').click(function() { alert(1) });
</script>
<div class="close">
click me
</div>
Say,it seems to me that the <script> part will automatically be delayed when it's loaded ,is that a feature of $.load()?
If so,how is that implemented...
I'm trying to select a particular tab section of a web page, on clicking a link on another page. I was suggested to use the location.hash function to select that particular anchor element of the tab and add the hash property in the href attribute of the first web page.
But the code doesn't work for me.I get the entire page,instead of th...
I am using this code:
$('body').click(function() {
$('.form_wrapper').hide();
});
$('.form_wrapper').click(function(event){
event.stopPropagation();
});
<div class="form_wrapper">
<a class="agree" href="javascript:;">I Agree</a>
<a class="disagree" href="javascript:;">Disagree</a>
</div>
The problem is that I have links inside ...
I have done a hide and show of a div element, on clicking a element with class toggleIt by using the toggle() function.
But how to change the name of the p tag after clicking it?
For eg, I have the name as 'Hide' for the p tag. On clicking this I hide a div. Now, I also want the name to change to 'Show'. How do I do that?
<p class="to...
<input type="text" id="name" />
<span id="display"></span>
So that when user enter something inside "#name",will show it in "#display"
...