jquery

jquery click() not fired in ie8

Hey everybody, I'm not a javascript professional so I can't solve the following code alone. I have a delegate function which works fine in IE7. The Problem in IE8 I figuered out is the last jquery-function click(). Does anybody know how I can solve this for IE 8 thank you in advance. <script type="text/javascript"> function LightboxD...

JQuery - CheckBox List

Hello, Does anyone know if there is a CheckBox List for a Drop Down List in JQuery? This seems like it could be valuable. However, I do not see one anywhere. At the same time, I would be surprised if the vibrant JQuery community hasn't created one. Thank you! ...

How to add a new Row in a table with animation using jQuery?

This is what i am doing to add new Row in table:- function expandAll(){ $('#myTableID>tbody>tr>td:nth-child(2)>div:nth-child(2)').each ( function() { html = $(this).html(); // Is it possible to add this Row with animation $(this).parent().parent().after( "<tr><td colspan='2'>&nbsp;</td><td colspan='15'>" + html + "</t...

How to create the + button with CSS?

When you input "google" into Google, you will see there is a + button Show stock quote for GOOG With firebug, you can see <div class="csb mbi">, what is the content of the class csb mbi I want to create such a button,and after clicking it, it will become a - button. How to do it? ...

Conflict between jQuery, Prototype, and plugins

I am trying to deconflict Prototype and jQuery in a rails app. I discovered that jQuery broke Prototype a good way into the app. I started the process by adding $jq = jQuery.noConflict(); to the application.js file. I then began going through all the .erb and .js files in the project, looking for jQuery calls to $ and replacing them wi...

Internet Explorer Cannot Open the Internet Site Operation Aborted, how to fix this error?

This code giving error in IE Internet Explorer Cannot Open the Internet Site Operation Aborted, how to fix this error? var tip = "<p>Most computers will open PDF documents "; tip += "automatically, but you may"; tip += "need to download <a title='Link to Adobe website-opens in a new window'"; tip +=" href='http://www.adobe.com/products...

jquery deep linking - how does it effect analytics?

Hello, I am looking into using http://www.asual.com/jquery/address/ , but I am wondering how it effects google analytics. Google analytics is a snippet of code at the bottom of pages. I would imagine deep linking would still look like activity on the initial page, not new pages. ...

Using ASP.NET MVC and jQuery to render partial view/submit a form without page refresh

Hi, I'm new to ASP.NET MVC and jQuery, so I thought I'd share how I implemented loading of partial views and submitting forms in a way that doesn't require for the entire page to be refreshed. I hope to get some critique from the experts if there's a better way to do this :) All the magic is done by 3 javascript functions which I bin...

jquery ajax work in mozilla, but not IE

I know jquery/ajax in IE is a common problem. There is a lot of great advice here on stack overflow but none of it has worked for me yet. The following code works just fine in firefox, but does not in IE: $.ajaxSetup({ cache: false }) $.ajax({ url: 'FunDataService.asmx/' + funDataMethod, type: 'POST', dataType: 'html', cache: false, ...

jQuery: What's the difference between after() and insertAfter()

jQuery has an .after() method, and also an .insertAfter() method. What's the difference between them? I think I can use .after() to insert elements after a selected element (or elements). Is that right? What's .insertAfter() for? ...

Add variable to jQuery src attribute

I have a script that I reuse in lots of different places. The script has several image paths specified, and I want to make it easier to implement by setting one 'path' variable at the start then calling the variable in place of the full url. e.g. jQuery(document).ready(function($){ var path = "http://www.mydomain.com/images/"; $(".me...

jQuery AJAX call to web service producing empty response

Hello, I'm using jQuery to make an AJAX call to a remote server, but with the code as it is (and ostensibly correct) I get an empty response. If I change the dataType to "script," I get the expected XML in the response, but I'm unable to do anything with it. Here's some pseudocode I'm working with: function sendData(data) { $.ajax( ...

Is there a visualizer for jQuery selectors?

No, I'm not talking about the visualizer plugin. There are cheap or free tools to visualize the results of XPath queries, or Regex. Example: Is there a similar tool that helps one visualize the results of jQuery selectors? I know it wouldn't be difficult to build... Just wanna know if one exists yet. ...

How can I programmatically flip the value of an element attribute using JQuery?

Hello, I'm just starting to get into JQuery so I apologize in advance if this is a simple question. I'm working with the A List Apart article on Print Previews to try to get live Print Previews in the webapp that I'm working on. I've gotten it to work satisfactorily but I'm now trying to refactor my code to what I think it should look...

jQuery Validation Plugin: How to test for valid and only test for valid

Hello all, So I'm trying to find a way to have the jQuery validation plugin simply return false when the form is invalid, and not show the error messages or do anything else. But this is proving more difficult than it should be. I'm setting up the validation as such: var validator = $journalForm.validate({ rules: { EntryDate: { requ...

jquery - onkeyup - replace input and copy to another input

The old inline js code looked like this: onchange="alias_generator(this,document.forms['category_form'].alias)" onkeyup="alias_generator(this,document.forms['category_form'].alias)" This just means: copy from the 1. input (title) (this) ... filter it with the alias_generator (that removes special character) and move it to the 2. input...

jQuery: How do I select all P children of my parent?

html: <style> hidden { display:none;} </style> <div id="div1"> <a href="#" onclick="expandSiblingParagraphs(this)">+</a> <p>Hello</p> <p class="hidden">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Integer vulputate, nibh non rhoncus euismod, erat odio pellentesque lacus, sit amet convallis mi augue et od...

jQuery validation plugin + CKEditor - validate when typing

Hi! I'm using CKEditor on a textarea and the jQuery validation plugin (http://bassistance.de/jquery-plugins/jquery-plugin-validation/) With the jQuery plugin it's possible to mark a field as empty or required. When a field e.g. "product name" is empty the field will be marked as invalid when submitting the form. But, while typing in a...

Select box shrinks in IE7 but not IE6 or IE8

I'm having a problem in IE7 with jquery and select boxes. When I set the width of a select box and then use jquery to re-populate the items on change of the first select box, the second select box is being reduced based off of the set width. For example : The follow code uses two select boxes. When the first select box has a change eve...

Retreiving names of high level JSON arrays with jQuery/JS

I am working with JSON data with multiple sets of key value pairs - each set constitutes a list. In the simplified example below, The list name is not known beforehand - actually I'll need to populate a select dropdown on the page with the names of each list. How do I retrieve the set names in this situation? Thanks ({ "list1": [{ ...