I'm in the midst of writing a slide show app (click a button, and you slide through a list of images) for jQuery, but I've run into a little bug where it will respond to the click() request even while an animation is happening. I'm using the animate() function already, so that isn't staving off the additional animation requests.
Any way...
Given the following:
$("#taglist").append('<li><a href="">' + v + '</a></li>').hide().fadeIn();
Why does it fadeIn the entire taglist LI list, and not juse the new item that was appended which is what I want to happen?
Thanks
...
I've got in-place editing on a page in my app (using Rails 2.3.5 and jQuery). I want to know how to display an error on the page when the update fails.
I'm using ajax (an XMLHttpRequest) to save an update to a Comment object. The controller has an update method like this:
def update
@comment = Comment.find(params[:id])
respond_to d...
I found a question already with a possible solution, but I had already tried the method suggested before reading it, and it even says it's inconsistent. So I guess I'm wondering why this doesn't work:
$("img").click(function() {
var imgwindow = window.open('imgwin.html','','width=460,height=345');
alert(imgwindow.find("img").att...
How do I find if the div I'm cloning has more than one of a child div with a certain class, and if so only clone one of them.
Say the cloned div is .diseaseCon, and the child div(s) is .symptomCon, in the cloning action, how can I detect if there's more than one .symptomCon divs and only clone one if there are?
...
Given the following block of HTML:
<ul id="taglist">
<li><a name="45" href="">Product 1</a></li>
<li><a name="1146" href="">Product 2</a></li>
<li><a name="13437" href="">Product 3</a></li>
<li><a name="51" href="">Product 4</a></li>
</ul>
Is it possible for JQUERY to return a STRING, one variable with the name values:
alert(taglists...
For example, when someone clicks on a button.
...
Hello, I am currently developing a site that I make use of two jQuery plugins:
jQuery Flickr plugin
jQuery Slimbox plugin
The first plugin is used to pull in flickr photos from a specific account. These photos are displayed as thumbnails on the page. I am then using the second plugin to display larger views of these images.
Because...
everytime my page loads, im supposed to create a datatable (also a jquery plugin)
but when im fetching the contents, using .ajax or .getJSON always goes straight ahead to the error function, without even telling me what went wrong inside the callback
$.ajax({
cache: false,
type: "POST",
url: oSettings.sAjaxSource,
data: ...
Hi,
I was trying to add a Jquery file into my application and it gave me following error:
Warning 22 Error updating JScript IntelliSense: C:\Users\Desktop\jquery-1.3.2.min.js: Object doesn't support this property or method @ 18:9345
Geetha.
...
I have a text file that contains a number of the following:
<ID>
<Time 1> --> <Time 2>
<Quote (potentially multiple line>
<New Line Separator>
<ID>
<Time 1> --> <Time 2>
<Quote (potentially multiple line>
<New Line Separator>
<ID>
<Time 1> --> <Time 2>
<Quote (potentially multiple line>
<New Line Separator>
I have a very simple rege...
In the code snippet below, from my jQuery setup, I need to check if the image file actually exists and if not, I'd like to substitute a default image. Currently if the file does not exist, I just get a broken image placeholder...
$('#myTheme').change
(
function()
{
var myImage = $('#myTheme :selected').text();
$('.selec...
Hi All,
I want to create a slider to control the volume of the media player. How to design/create a slider using JQuery.
Geetha.
...
This is my code. It turns my text box into a date picker.
<script type="text/javascript" src="{{MEDIA_URL}}template/js/jquery-1.4.1.min.js"></script>
<script type="text/javascript" src="{{MEDIA_URL}}template/js/jquery-ui-all.min.js"></script>
<script type="text/javascript">
$(function() {
$("#start_date").datepicker();
...
I am hiding an element using inline css, like so:
<span class="hidden-nojs" style="display:none">Some text</span>
Next I use jQuery to show the element, like so:
$(".hidden-nojs").show();
This works great. As soon as I remove the inline css and put display:none on the external css stylesheet for the hidden-nojs class, it stops work...
what is the difference between jquery and java script
...
I'm using the plugin http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ to create tooltips with JQuery but I can't created tooltips containing 3 (or more) lines of HTML code.
I need to render as tooltip the content shown below (obviously the content is generated dynamically an this it only a proof of concept)
<p>Line1</p>
<p>L...
What I want to do is add and remove list items. I have got it to add new items to the list and I can remove existing ones but not the ones that have been added. It seem like it would work but it doesn't. Any help would be appreciated! Here the code:
JQuery:
<script type="text/javascript">
$(function(){
$('a#add').click(function()...
I've got a problem concerning the javascript "this" keyword when used within a javascript functional object. I want to be able to create an object for handling a Modal popup (JQuery UI Dialog).
The object is called CreateItemModal. Which i want to be able to instantiate and pass some config settings. One of the config settings. When th...
Hello,
I have a page called guestbook.php in which contains
$('#guest_form').ajaxForm({});
When the form is triggered it goes to a save.php page which contains and values inserted
if($_POST['x']){
$xx = $_POST['x'];
$yy = $_POST['y'];
$zz = $_POST['z'];
$query_one = "INSERT INTO xxx (x1,yl,z1,z2) values ('$xx','$yy','$zz','00000...