jquery

How to get previous page url using jquery

Hi, How to get the previous page url using jquery? I am using the following code to get the current page location $(document).ready(function() { var pathname = window.location.pathname; }); ...

Placing a counter incrementing and decrementing when items are added and removed using jquery

Hello, Please find the code below <script type="text/javascript"> $(function(){ var c=1; $("#i1").toggle(function(){ $("#e1").appendTo("#i2"); $('#counter').attr('value',c); }, function(){ $("#e1").appendTo($(this)); $('#counter').attr('value',c); }...

Most effective way to auto detect/select language in a website?

Hello, I need to implement an autodetect feature for a simple, plain html website I am working on. It has two languages and the client wants it to automatically select the language. This could be done either via the browser's language or geolocalization, both options are good. Can someone point me to a good script or solution to do th...

Using charts in web application (negative value in bar chart)

I want to use bar chart in web application. I have searched many libraries including google code, and many but many do not support negative values for bar charts. ...

Cant get Jquery ui autocomplete widget to work

Im trying to develop my first ASP.NET MVC web app and have run into a problem with the jquery ui autocomplete widget. At the moment I have a form with a number of text boxs which would lend themselves well to an autocomplete ability. The code for my "Make"(Car make) text box is show below: jquery: $(function() { $("#Make").autoc...

Loading images into a DIV tag

I have a list of images within a div tag with the id sIMG. Example: <div id="sIMG"> <img src="1.jpg" title=""/> <img src="2.jpg" title=""/> <img src="3.jpg" title=""/> <img src="4.jpg" title=""/> <img src="5.jpg" title=""/> <img src="6.jpg" title=""/> </div> Now If I click on any image I need it to load into the sIMG div tag. My cod...

Aligning an image to the right side of a div

Using JQuery JEditable, I have the following code below which allows the user to create virtual post-it notes, so to speak, and I'm trying to make it so that beside each div created, a delete image that the user can simply click on. I feel that I'm almost there, I'm just missing something. As of right now the image appears only on the ri...

jquery click event

Hi, I have a delete button on my web site which I want to add a confirm box to. I have wrote the following code in JQuery but I'm unsure how to continue with the page load if the user confirms the delete. e.g. what do I put inside the if statement to reverse the preventDefault? $(".delete").click(function(e){ e.preventDefa...

Get jQuery numberformatter working

I have the jQuery numberformatter-plugin installed, but don´t get it to work correctly. I cannot find the correct commands on the net. I want to format the value of a text field, which contains a number with two decimal places (like 0.16), to display 4 decimal places (0.1600). ...

Problem in using JQuery in IE6 for dynamic content selection

Hi i am having problem to get value selected in select Element in which options are added dynamically using JQuery's html() in IE6 , but it works in IE8. var column = $('#cmbSearch0')[0].value; ...

how to determine the child of a <ul> using jquery?

how to determine the child of a UL using jquery? im trying to change the class of the LI items in a UL based on their child type in a clickevent of an element? ...

jQuery get attribute...

Hi guys, I'm trying to get the source attribute of all images withing a specific div but somehow it keeps telling me that the function .attr() doesn't exist... That's the function. Firebug also tells me that "this" is an image element. I'm using jQuery v1.3.2 $('#products LI DIV IMG').each(function() { var image = this; alert(ima...

Dynamically added HTML elements can't be found using jQuery

I am implementing a tree browser in HTML. On clicking a node, I call a function that adds the node's child elements. So far so good. I now want to immediately invoke the click handler of one of the child elements to expand that too. My problem is that jQuery can't find the child elements that have just been added. When I step through in ...

What is wrong with this Jquery function, help

$(function() { $("table.section thead").click(function() { if ($(this).next("table.section tbody").style.display == "block"){ $(this).next("table.section tbody").slideUp("slow"); } if ($(this).next("table.section tbody").style.display == "none"){ $(this).next("table.section tbody").slideDown("slow"...

how to add and remove jquery tabs dynamically?

hi, I have an aspx page on which I have 2 static jquery tabs.Upon clicking on a button avaiable on one of these tabs,I would like to add a new tab dynamically,which gets its content loaded from another aspx page.I've also tried with the following sample http://jquery-ui.googlecode.com/svn/trunk/demos/tabs/manipulation.html I've downlo...

jQuery not first selector found by attributeContains

Hello there, i have problem with selecting "not first selector" with using attributeContains jQuery('div[id*="abc"]:not(:first)').hide(); Thanks a lot for help ...

How to create JQuery async Treeview without PHP

I'm using the JQuery Treeview plugin to display a folder tree. The branches of the tree are provided in an XML file, provided by Livelink. For performance reasons, the tree is initially populated with 2 levels. So far, no problems. I have successfully created the Treeview for the first two levels. Now I need to be able to asynchronoulsy...

Adding code assist for homebrew jQuery plugins in Aptana

Is it possible to add sdoc definition to a jQuery plugin to allow it to be included in Aptana's code assist? Code assist for jQuery is already working, but it doesn't show the plugins I have built. Currently have the following: /** * @id jQuery.fName * @alias $.fName * @alias jQuery.prototype.fName */ function fName(){} ...

Change height of an iframe on hover?

How do i change the height of an iFrame, on hover, using jQuery? I've tried this: <script type="text/javascript"> $(document).ready(function(){ $(".googlemaps").hover( function(){ $('#googlemaps').height(300); }); }); </script> My iframe is: <div class="googlemaps"> <xsl:variable name="location"><xsl:value-of s...

how to get items that hasnot got a certain class in jquery?

<ul id ='caseStudies'> <li class="humor crime fantasy hidden"> A </li> <li class="crime"> B </li> <li class="humor crime hidden"> C </li> <li class="humor crime"> D </li> <li class="humor crime fantasy action hidden"> E </li> <li class="fantasy action"> F </li> <li class="humor fantasy"> G </li> <li class="crime action hidden"> H </li> <...