jquery

jQuery scrollable images

Hey guys, Can anyone point me to a jQuery plugin / script that can do what they do with the images here: http://alignednyc.com/listings?cmd=details&id= cheers, Mike ...

missing : after property id

I'm a jquery novice..I got missing : after property id error appeared in the firebug console..I don't have much idea what's wrong with this code.. $('#mytable tr').click(function(){ $(this).animate({padding-left: '+=50px'}, 2000); }, function(){ $(this).animate({padding-left: '-=50px'}, 2000); }); ...

Closing TABLE tag with jQuery

Is there a way to close a html tag with jQuery? Like: <table> <tr id="tr1"> <td> hello world! </td> </tr> <tr id="tr2"> <td> hello world again! </td> </tr> </table> js code: $("#tr1").after("</table><table><tr><td>another table</td></tr></table><table>"); ...

How to overlay a transparent PNG over an image /when rolling over some other item/

Hi, I have a webpage with a content image. On this image, I want to highlight a few different items, triggered by the user rolling over the corresponding item in the text on the same page. I have transparent PNGs that I can use as image overlays to accomplish the highlighting. I know how to make an overlay appear STATICALLY by using sp...

How do I keep an image in the center of the page regardless of browser window size?

I want to do this using only CSS + HTML. It has to work in all major/latest browsers - not IE 6 just yet. The code I have is as follows: <div id="left_arrow"> <img src="images/left-arrow.png"> </div> #left_arrow { position: absolute; left: 0px; margin: 10px 0 15px 0; /* top, right, bottom, left */ ...

Is there any way to click the button in jquery ui?

button.trigger('click'); doesn't seem to work. There's also no trigger method in the docs. Is the only way to set the classes manually? Thanks. Edit: Oh actually not specific enough in asking, sorry. My button is a radio. ...

How can I keep the browser from locking up (or show wait symbol) when making a synchronous request with jQuery?

A function uses the jquery.ajax() method to get data from server and use it as return value. If I use async=true the function returns prematurely empty value. If I use async=false the wait for the function is too long. I tried toggle div showing spinning clock right before the request, but the div does not appear until the request is ove...

box turn effect

I want to implement box turn effect as in the following site when mouseover (please see the boxes below animation) http://pepsi.com/ It is made using flash,but i want to develop it using other than flash. will it be possible? ...

How do I select only two of three imgs within the same div using jQuery?

The code is as follows: <div id="compv-navbar"> <a href="#"><img src="image1.png" id="icon1"></a> | <a href="#"><img src="image2.png" id="icon2"></a> | <a href="#"><img src="image3.png" id="icon3"></a> | <span id="view_name"> 2-up</span> </div> The jQuery is as follows: $("#icon2") ....

jQuery confirmation is not working

Hello all, I have used a jQuery confirmation, but it is not working for me. Here is my code: <link rel="stylesheet" type="text/css" media="screen, projection" href="demo.css" /> <script type="text/javascript" src="jquery-1.4.2.min.js"></script> <script type="text/javascript" src="jconfirmaction.jquery.js"></script> <script type="text/...

to get id of the dragged div while dragging if i hav many draggable div.using jquery

i have many dragged div. is there is any way to get the id of the dragged div while dragging. $(".table_div").draggable({ drag: function() { var offset = $(this).offset(); $(this).html(offset.left + ', ' + offset.top); } }); i am using jQuery Draggable ...

IE8 XSS / Jquery problem

Everything works perfect in Firefox and Chrome but except in IE8 (8.0.6001.18702) This is the test code (Jquery 1.4.2) (same problem with $.post): $(function() { $.get("http://domain2.tld/some.php", {}, function(response) { alert(response); }); }); This code is executed in domain1.tld and it is loaded from domain2.tld, t...

.slice and .wrapall

Hi, I'm using a bit of code suggested by a member on stackoverflow and adapted by me to wrap every 3 li items as part of a mega menu. The code is: var lis = $("ul > li"); for(var i = 0; i < ls.length; i+=3) { lis.slice(i, i+3).wrapAll("<div class='new'></div>"); } Unfortunately this will grab child li's from the next parent menu to ...

jQuery plugin not overriding defaults

I'm working on a jQuery plugin and can't seem to override the default settings, here's a snippet of the plugin. $.Auction = { defaults: { parentId: '#span', bidButtonClassName: '.live_bid' } }; $.setAuction = function(options){ startAuction(); } function star...

FullCalendar's events function

I'm using Fullcalendar in my Asp.Net 1.1 application. For taking data from server side, I use Ajaxpro. So codes to gets events to Fullcalendar are written as below: $calendar.fullCalendar({ editable: true, selectable: true, theme: true, height: 545, defaultView: 'agenda...

cleaning strings before passing to jQuery ajax data parameter

Hello, On using jQuery ajax on ASP.Net, we are required to pass the DATA through a string-ed json on the parameters needed. My only concern with this is with strings that has single & double quotes. I tried doing a replace on these and insert escape characters but unfortunately it just doesn't work. help! UPDATE var relativeName = $...

jConfirm form submit returns incorrect value to php

hi im using jConfirm to return form submission to php my html looks like this: <form id="formdelete" name="formdelete" method="post" action="/home.php"> <input type="hidden" name="remove_user" id="remove_user" value="3"> <input type="submit" value="" border="0" name="image" src="" id="removeuser" class="ui-removes" onclick="DeleteUser(...

two submit button one direction

I have one <form id="inputdefect">,and one <input id="item">, but inside that I have two submit buttons: <button id="accept"> and <button id="reject"> They have same purpose, but different result in the DB. This is the result: item condition tape accept roll reject I w...

How to bind plugin with element

I decide to write a plugin, but there is a moment I don't know,and i can't find documentation about it so I decide to ask here. For example when we wrote $("#some_element").nameOfPlugin(); There are a lot of functions in nameOfPlugin, but how some_element connects with the plugin? An example, or a link to some documentation will be...

jQuery getJSON returns null when querying Google maps even when results are valid

Hello, I cannot seem to make this simple code work: <script type="text/javascript"> $(document).ready(function(){ $.getJSON('http://maps.google.com/maps/api/geocode/json?address=cebu&amp;sensor=false&amp;region=ph', function(results) { alert(results); }); }); </script> It always alerts null even though the resul...