jquery

IE7 failing to remove an element according to it's href attribute

Ah, is it ever really over if there's still an IE? Thanks to the invaluable help of Stack Overflowers, I have my jQuery working perfectly in FF, Safari, Chrome & Oprah. Naturally, it fails in IE7, which evidently has trouble href attributes, e.g.: $('li a[href="' + title + '"]').parent().remove(); Can someone shed some light on an a...

How to fade in a div on hover?

I want to hover on an image, and have a div with text in it to fade in. Simple. Sidenote: I want it to be style-able by CSS. (Kind of a given.) Also, I tried using some examples but I am in a hurry so please and thankyou. ...

Uploadify Error in IE8

I can't get uploadify (jQuery plugin) to work in IE8, it works fine in all other browsers. When I go to upload the file I'm getting this error: Object doesn't support this property or method And it's on this line in uploadify.js: document.getElementById(jQuery(this).attr('id') + 'Uploader').startFileUpload(ID, false); I can't figur...

rails markitup/markdown or textile

I would like to give my user's the option to nicely format their comments. I am not really looking for something super fancy, perhaps something lightweight. There is a ton of information about markup/markdown/texttile etc. Which it the way to go in rails, performance and usability, compatibility with jquery, security being the priority...

Is this a browser cache problem?

Hi, Can you check if this is a browser cache problem? I have this scenario, I have a table that displays data like this and below that is a link that sends you to another url. Only one row can be click at a time. <table> <thead> . . </thead> <tbody> <tr> <td><input type=""checkbox" val...

jQuery dialog serving multiple button's click event handller

I have a scenario where... 1.) Have created a div with a dropdown list and ok, cancel button 2.) On document ready - registering div created on step 1 into a jQuery dialog 3.) on a javascript button click - I am opening this dialog box. 4.) Now, the problem is - the jQuery dialogbox which I have created, needs to be used by other button...

How to append unique spans to a table in jQuery?

I have a quick question, because my brain refuses to think this evening. HTML <table> </table> <span>2010</span> <span>2009</span> <span>2009</span> <span>2009</span> <span>2008</span> <span>2008</span> <span>2007</span> jQuery $('span').each(function() { $("table").append("<tr><td>"+$(span).text()+"</span>)</td></tr>"; });...

jQuery UI Dialog, Checkboxes and the mysterious case of IE6

I have a jQuery UI Dialog containing some checkboxes. I want to conditionally set the state of these checkboxes and then open the dialog. Unfortunately this causes problems in IE6. The checkbox is never checked if it's value is set before opening the dialog. For example in the following code "Dialog Checkbox 1" is never checked in IE6,...

How do I add \Huge to an image source in jQue

http://jsbin.com/owepu3/edit I'm using mimeTex to generate LaTex images using a cgi script, and I want to add a dynamic size. However, when the source file gets generated, it drops the "\" from "\Huge". Any ideas? ...

jQuery UI datepicker (with time addon) issues

Hi all, I'm trying to implement the jQuery UI Date Picker with the Time Picker addon (http://trentrichardson.com/examples/timepicker/) For some reason, I'm getting NaN instead of numbers and the little slider isn't showing up. I downloaded Redmound theme from the UI, so that might have something to do with it? But I've also copied the ...

Updating recent updates - Problem in procedure - Any other approach?

I have a Section in my website called Recent Updates. in that I will show the latest 5 updates at first when the page is rendered. When a New update is done at real time, the new update will be appended to the top of the updates list and the last one will be deleted. My approach: For this problem, what im doing is, First i renders th...

What does the "@" sign in jQuery selector means ?

What does the @ sign in the following code means ? $("input[@type=checkbox][@checked]").each( function() { ... } ); ...

Not able to read JSON data from secure protocol, getting "Access Denied" error with jquery.

I want to read data from one of the JSON feeds URL and i have used $.getJson(), the feed URL is in diff domain but both are on secured protocol, the same is working on http protocol, but not on https. If anybody has faced similar prob or aware what might be the reason. Please share..thanks in advance ...

jQuery UI drag/drop sorting comparision using float:left vs display:inline-block

I have two examples here, only difference between these two example are one uses display:inline-block and other one uses float:left, li.doc_item{display:inline-block;} vs li.doc_item{float:left;} My problem is display:inline-block sorting is not as fast or responsive as float:left. I want to use display:inline-block because thumbnail...

Custom form validation using jquery plugin, based on attributes.

I am using Jquery valdiation plugin for validating the form at client side. But I want to do the validation like. <input type="text" id="txtInf" regex="/some regular expression/" error="Inf is mandatory"></inf> here regex and error are custom attributes. Field will be validated against the given regular expression in regex and if the ...

JQuery Validation not working on Ajax Control....!

Hi there I have Problem with my Code I just want to validate States which is generated from Ajax response.text Here is the JQuery for State Field $(document).ready(function(){ var form = $("#addStudentfrm"); var state = $("#state"); var stateInfo = $("#stateInfo"); state.blur(validateStates); state.keyup(validateStates);...

How do I assign a real function into a javascript object to use as a callback?

I've got a Javascript mess that looks something like: Note: Not working code, just trying to illustrate my problem... $(function() { $(foo).Something( { //Something is a grid control buttons: { add: { onClick: function() { //Build dialog box to add stuff to grid $('<div></div>...

Using a .live for a key up for a text area in jquery

$textarea.keyup(function(){ update(); }); I tired to add the live funtion to it. Like the following $textarea.live(keyup(function(){ update(); })); but i get Uncaught ReferenceError: keyup is not defined What am i doing wrong? ...

Loading aspx page on tab switching using jquery

Hi i have a jquery tab. On each tab click i want to load a fresh page . I am using iframe, but while tab switching only the source is changed loading event does not takes place. How can i solve this? CODE...... function LoadIframePage(url) { document.getElementById("ifrforms").src= url; } <div style="float: none; height: 80...

.serialize() not returning values from dynamically generated form

I'm missing something here. I have a form dynamically loading a form using jquery where .click() pulls in a $.post query that outputs the form with some specific data to .html(). I'm now trying to serialize the data from this form and it's not giving me anything. What am I doing wrong? Code inserting form: $(".edit").click(function...