jquery

jquery dynamic id selector, remove then add class

Hi I have a table, with rows which all have a cell of a div with a dynamically generated id in the format of btn-insertidhere. When the table row is selected, I want to select this div id, then remove a class and change it to another one. This is down to me wanting to have a button image change from an add symbol to a delete symbol whi...

Graceful way to tell users of IE7 and below to go away?

TLDR: Tell IE6/7 users to leave in a nice way :) whilst blocking them from all content. Basically I do not need people using IE7/6 lower on my web app. Was thinking of just doing a doc.write after load to wipe the page with a message of "Sorry your browser is outdated" has anyone done similar and found a nice friendly way to tell them ...

fancybox seems to not working with ajax content

Hi I've got the following code: $(document).ready(function(){ $("a#cakeImages").live("click",function() fancybox({ 'titleShow' : false, 'transitionIn' : 'elastic', 'transitionOut' : 'elastic' })) }); and I've got the correct images : <a id="cakeImages" href="cakes/2/1.jpg" > <img alt="cakeImages"...

jQuery dialog: Alternate close button

How can I define an alternate close button for jQuery dialog? I want an anchor with the class "popup-close" to close the open dialog. Simplest is best! ...

Dynamic tab generation in struts2

I need to dynamically create the tabs in struts2 using struts2-jquery-grid-plugin, like selecting from multiple select box and then dynamically getting the tabs generated in the grid. Any suggestions? Thanks. ...

Javascript Git client

Is there a Javascript implementation of Git? I'm wanting to use HTML5 to create a rich Javascript application and have the idea that I could use git to track changes to the data. So, I'm wondering if there is a javascript implementation of a git client, or maybe some way of controlling a git repository by making POST requests. ...

I cannot get the different values from radio buttons using jquery ajax

my form <form action="" method="post"> <p>Shirt 1 : <input type="radio" name="myradio" id="myradio" value="0"/></p> <p>Shirt 2 : <input type="radio" name="myradio" id="myradio" value="1"/></p> <input type="button" name="submit" id="submit" value="create" onclick="createImage()" /> </form> my javascript: function createImage(){ ...

jquery date and time picker

hi, i am using jquery date and time picker in one my project where users can create an event. in the jquery datepicker, i have the option to select the today's date and future date and not the past date which is good for an event creattion website. but i am stuck with the time picker. for example, if i am in the event creation page(assu...

jQuery effect plugin

I'm looking for a jQuery plugin that wobbles DOM elements like on http://www.iconatlas.com/ I checked their source and they use jQuery but it doesn't look like they're using a plugin to do that. Anyone know of a plugin that does something similar? ...

Trigger a jQuery keyup event only when an <input> element is not focused

I can use jQuery to bind a function to a keyup event within the context of an <input> element such that the event only fires when the <input> element is focused: $('#my-input').keyup(function(e) { // only fires when the focus is on the <input> element } How do I bind a function to a keyup event outside the context of the input eleme...

JQuery/PHP Chat Client Help

Hello my friends. I found this cool Chat tutorial on CSS-Tricks. (http://css-tricks.com/chat2/) I am trying to use it however. Everytime I run it, and I enter my name when it asks in the chat room. It just shows this code: Great! You found a username not in use"; $data['inuse'] = "notinuse"; } else { $data['result'] = " That username i...

jQuery .ajax handling errors

i have setup my ajax request like $.ajax({ url: 'ajax.html', datatype: 'html', success: function(data) { $(data).appendTo('body'); }, error: function(xhr, status, e) { alert('An error occured: ' + status); } }); when i trigger an error by specifying a non existent url, i find that status is alwa...

Is there a way to abort a SlickGrid asynchronous render?

I have a search page whose results are rendered in a SlickGrid. It is an ajax search that executes onkeyup, so it's possible for a search to be performed, the Slick.Grid instance's render to be called, and have another result come back before the first asynchronous render completes. I'd like to cancel the initial render as soon as the se...

Opera v 10.60 won't detect linked JavaScript included in the <head> tag

I am learning jQuery for the last two days and I am stuck with this weird issue with Opera v 10.60 on Mac. I like to follow good development guidelines and therefore keep presentation(css), content and behavior (JavaScript) portions separate for any website I write. The head portion of my test html page has two script tags - First o...

Ajax Google Visualization API Gauge with jquery

Hello, I am looking to create a dashboard gauge that updates via ajax. Below is the code I have. I have the ajax code but just am unsure on how to update the gauge. Any suggestions? google.load('visualization', '1', {packages:['gauge']}); google.setOnLoadCallback(drawChart); function drawChart() { ...

Window.open reloading window

Hi, I have a an iframe that has a report within it. What I also have, is a feature to allow the user to detach the report within the iframe and open it up in it's own window, using window.open() call. My problem is, when I press on the detach button, the whole report that initially loaded in the iframe actually goes through the motions...

Event binding mechanism in browsers

I want to understand how event binding/unbinding works in browsers. Specifically, if I remove an element that already has an event bound to it, using for example jQuery: $("#anElement").remove();, will the bound event get removed as well? In other words, if I don't unbind() the event first, am I creating some sort of memory leak? Edit:...

jQuery image button newbie question

Good Day, I have a rendered HTML table with an image button that I can use to cancel an item that looks like: Product ID Product Qty Cancel 12345 Widget A 1 ID=ImageButton-12345 Class=ImageButtonList 23456 Widget B 1 ID=ImageButton-23456 Class=ImageButtonList 34567 ...

Common reasons for IE6 failing to parse jquery (which works great in IE8/Chrome/Safara/FF)

I have a site driven by ~1000 lines of jquery/ui. Most content is dynamically generated from ajax requests. Everything works great in IE8/Chrome/Safari/FF 3.5 IE6/7 fails to parse JS code, giving all kinds of errors (which are really hard to trace to real code). Jquery is supposed to support IE6, isn't it? So, What are the common ca...

page pagination jquery

Hello All, I have tried a jquery to do the page pagination. The example is showing the following: <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js"&gt;&lt;/script&gt; <script type="text/javascript" src="quickpager.jquery.js"></script> <script type="text/javascript"> /* <![CDATA[ */ $...