jquery

How to create an array from a select list's text using jQuery?

Hey guys i bet this is an easy question but cant seem to find any help online, i have a select List box and i would like to get each list text and split them up into an array of how big the list box is without the user selecting the value. Right now my list box makes random values so the list can go up to 100 Example <select id="selec...

Toggle classes with radio button in jQuery

I have a set of radio buttons where when I click a radio button, I want the label to change color or whatever. But when I click another radio button, the color goes away. Therefore I have something like this: jQuery('label').mouseup(function(){ jQuery(this).prev().attr('checked', 'checked'); jQuery('input').next().removeClass('sel...

jQuery script for clickNshow on a dokuwiki page

I am making a dokuwiki for our company, but because the documents tend to get very large, I want to collapse the sections and only show the headers. The sections should appear when the header has been clicked. The dokuwiki tips and tricks page shows a nice little jquery script that facilitates this click and show behaviour. I modified i...

jquery find element next to another

Hi I have the following html: <p> <input type="text" name="field1"/> <input type="hidden" name="fieldh1"/> <button type="button" class="sendInfo">Send</button> </p> <p> <input type="text" name="field2" /> <input type="hidden" name="fieldh2"/> <button type="button" class="sendInfo">Send</button> </p> Wha...

jquery: Enable sorting on a table and keeping it sorted while inserting new rows

I have a table with data and I want the user to be able to sort it in different ways. I have tried the tablesorter plugin for jquery, but there are some issues I can't quite figure out of. What I am struggling with is how to insert new rows while keeping the table sorted according to how the user currently have chosen. The best would be...

unknow margins on my jquery slideshow???

I have got unknown margin on left and the top of my jquery slideshow..cant figure out what's happening? please help!!! below is the code and the screenshot %@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.or...

Jquery .text() seems not to work on XML in IE7

My PHP backend sends XML response to the client (ajax): <response> <code>0</code> <message>OK</message> </response> in the javascript I'm trying to get CODE value in this way: var errorCode = $('code', xml).text(); and then depending on errorCode value I do processing. It is working fine in all browsers I tested except IE7. In...

jquery radiobutton focus

On some of my pages I am setting focus on a first input element: $(':input:visible:first').trigger('focus'); If the first input element is a checkbox or a radiobutton it receives a focus fine but that's not clearly visible, so it's label is not highlighted and screen reader doesn't recognize that, too, i.e. it doesn't read out t...

Why is post() not updating the DOM after it returns? Wierd timing problem observed.

Hi all, I have the following code that is really bugging me, I'm thinking perhaps the post() function needs to be blocking. I am new to jQuery(latest version) and AJAX, but I'm using ColdFusion which returns some HTML in the data variable. var dataResult; var statusResult; $.post('fh_result.cfm',$('#myform').serialize(),function(data,...

fullcalendar : updating option function callbacks after init

Ok, so I have a problem with setting options whose values are callback functions when trying to set them after plugin initialization. I think this would be a common behavior, to dynamically set event callback after init'ing the calendar. Here is a snipit of code: $(document).ready(function() { $('#calendar').fullCalendar({ ed...

Looking for jQuery slideshow where a user can hide/show a block of text (link, caption)

I'm looking to implement a fairly basic jQuery slideshow. One that automatically loops through a set number of images. The snag I'm running into is i'd like to have a little icon in the corner of the picture, that when clicked, brings up a transparent black bar across the bottom with some text and perhaps a link. Has anybody come acros...

Determining whether jQuery has not found any element

Hi, I'm using jQuery's selectors, especially id selector: $("#elementId")... How should I determine whether jQuery has found the element or not? Even If the element with the specified id doesn't exist the next statement give me: [object Object] alert($("#idThatDoesnotexist")); ...

ASP.NET Performance Issue

I am working on an ASP.NET 3.5, C#, ASP.NET AJAX, JQUERY web application which currently is having some performance issues. I have a screen with the forms view control and when I edit the form and save it for the first time the POST takes 4.89 seconds and when I perform the same operation again for the second time the POST only takes 1.0...

ASP.NET ListView - Render THEAD/TBODY Tags

I have an ASP.NET ListView control (see below). Unfortunately, when a ListView control is rendered is does so absent of HTML tags such as THEAD/TBODY. This is causing a problem for me because the CSS styling that I'm using needs those tags. <asp:ListView ID="ListView" runat="server" DataKeyNames="Id"> <LayoutTemplate> ...

Change all instances of object to iframe for IE using Jquery

I was wondering if it would be possible to use jquery to change all object tags on a site automatically to iframe for IE 8 and below. I would like this so that it can be xhtml 1.1 valid and not have to be double coded all the time and you would not have to focus on non-standard browsers. The data attribute would have to be changed to sr...

Unbind Events with JQuery: Does it work with events setup in HTML?

Hello all, I have a few onclick and on mouseover events in my html generated by PHP, something like this: <div onmouseover="fave('heart_<?php echo $row['id']; ?>';" class="heart"><a href=""></a></div> I wish to make use of unbind on the mouseover but it hasn't worked when I tried this: $('#'+ id).unbind('mouseover'); So I am gues...

jQuery action being called when selector isn't met?

I've been working on a prototype for a client's web site and I've run into a rather significant snag. You can view the prototype here. As you can see, the way it works is you can scroll a set of slides horizontally and, by clicking one, open a stack containing yet more slides. If you then click again on an image in that stack it opens u...

Triggering click with jQuery to hit code-behind function not working in 1.4 - Worked fine in 1.3.2

I have a gridview in an update panel and am using a jQuery dialog for adding entries. The dialog calls an AJAX/JSON function that adds the entry. On success of that function I have jQuery trigger a button click on a hidden button ... success: function(msg) { $("[id$='_btnUpdateGrid']").trigger('click'); ...

update portlet without refreshing portal page

I'm trying to create a simple agena portlet. Now I've developed a basic one using spring-portlet-mvc, it allows you to navigate to the next and previous month with thusly named links that invoke a previousMonth or nextMonth function in my controller. Now the problem I'm having is that this navigation causes my whole page to refresh. Now...

Is JavaScript allowed to call a remote web page during a click event?

When viewing the click in firebug, the call turns red (i.e. error) but I can't see the error because the page redirects. So is it allowed to call a remote website (in my case, its a 1x1 image using a standard url like http://www.example.com/becon). ...