jquery

how to find out second click on a button

i make a jquery function and called it by linking. <a href="javascript:myfunc(ID)"></a> and i want to check in my function that button is second time click or first time and i want to make different different event on first and second click() ...

Detecting CSS Selector Support of Browser with jQuery

Hi, Normally, i'm using Modernizr for regular feature detection but it can't detect browser selector support (i.e: :nth-of-type() selector). Is there a way to detect selector support of browser with jQuery? ...

Fading problems with Cufon elements on IE

Hello All, I have a slideshow running with textquotes. These quotes contain a custom font provided by cufon. This all works fine. However when the slideshow fades in or out, the text gets a dark border or shadow. I think its a transparancy issue in IE but I can't find a solution. I'm using the jQuery plugin Cycle for my slideshow, and...

how to add an onclick event to an image in jquery

How i can make a function click on image that have a classname 'img' <img src='img' class="img" id="fu1"> <img src='img' class="img" id="fu2"> <img src='img' class="img" id="fu3"> i want to make a function on click of image who have a class 'img' how can i track the id of img who is click ex: if i click first image then how i can tr...

JSON parser doesn't work

For some reason my json twitter parser isn't working? Anyone got any ideas as to why? <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"&gt;&lt;/script&gt; <script type="text/javascript"> function outputHtmlToDiv(tweet,i){ count = i + 1; $('#wrapper #sidebar .profile')...

concatenate Array Recursively

I want to merge recursively arrays.. My code is: var allitemorder; var itemorder; $('.divclass').each(function () { itemorder = $(this).sortable('toArray'); allitemorder = $.merge([], itemorder); }); Kindly help. ...

JQuery incompatibility problem (probably) in Firefox. Working in Chrome

<tr onmouseover="$('#actions').show();" onmouseout="$('#actions').hide();" > <td> <a onclick="showContacts();">Group Name</a> </td> <td> <span id="actions" style="display:none;"> <img src="../images/Delete-icon.png" onclick="del();"/> <img src="../images/add-16.png" onclick="loadpage('c...

Determine the left offset of a click using jQuery

Say you have an image that is 200px wide. Is there a way to determine how far from the left of the image you clicked? For example if you clicked in the dead center you would get 100. I tried using something like ui.position.left but couldn't get that to work. Any ideas? ...

jQuery/Javascript - reload current page with an appended querystring?

Hi, I've got a dropdown menu on my form, which when something is selected I need to reload the current page, but with an appended querystring. How would I go about doing this? ...

accent not showing in jQuery load

Hello, I'm working on a small site that I would like to change a little bit so it is more dynamic. The index .html is something like <html> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> ... </head> <body> <div id="page"> <div id="header"></div> <div id="main"> <div i...

css boxshadow property

I want to extend the animate function of jquery to support the CSS box shadow-property which can animate the color, the x- and y-offset, the blur-radius and spread-radius.How is it possible? ...

Removing a word from a class using jquery

I have the following html on a page: <h1 class="theme-color-3">Knowledge Portal Site</h1> This is rendered dynamically.I dont want the word Site after 'Knowledge Portal'.I dont know where the word Site is hardcoded,so i wrote the following jquery code to remove that word. $(document).ready(function() { $('h1.theme-color-3').html($(...

jQuery submit() - Append querystring to page?

Hi, I have a dropdown menu, which I want to use $('form#form').submit(); on from a .change() event, but how would I append a query string to the submitted page? So the resulting page would be example.com/submitted-form/?querystring=something ...

jQuery conditional selector for table rows

I have a table with data in: <td> item </td><td> order code </td><td> price </td> I'm processing the table with jQuery which needs to find the order code: $.each($('.productList tbody tr'), function() { var orderCode = $(this).find('td:eq(1)').html().trim(); // do stuff }); If there are no products, the table shows a message...

Assigning a variable to a cookie.. no wait! The other way around...

I would like to assign a cookie to a variable... e.g. var aVariable = $.cookie("moo"); I am using the jQuery cookie functions - do I need to set the cookie AND set the variable at the same time or something? Help pretty please! ^.^ My Code: function goBackToPosition() { var xPos = $.cookie("yourPositionX"); var yPos = $...

Problem with jQuery, fullcalendar, curvycorners, anytimec and msie

Which fragment of code bellow can not work in MSIE? $(document).ready(function() { var minId; var fadeTime = '25'; $.ajax({ url: 'JsonFileWrite.php', type: "POST", data: "idRequest=true", success: function(data) { mi...

jUI TimePicker and MySQL DATETIME column

I'm using the Martin Milesich TimePicker, which is basically the jUI datepicker with hour/minute sliders attached to it. I have a couple of queries regarding this: 1) I'm storing the data in a database field of type DATETIME - as you're probably aware the default format for this field is 2010-07-19 14:00:00. In my form field however I ...

LocalScroll works perfect in Firefox, IE, but not Safari.

UPDATE: works fine in Firefox, IE7 and Chrome, but not Safari. Now I'm really confused. Only rarely do I have issues with Safari, but this is quite interesting. It's just a cookie cutter LocalScroll call: <script type="text/javascript"> $(document).ready(function() { $('#politician_filter').click( function() { $("#all-people u...

How to display a dialog only when correct data is entered in a field?

I have a field in my form which accepts only numbers and I am validating in the below function. In the function I want to activate the dialog only when the user enter numbers only (no letters). When characters are entered it shold show an error. $('#submit').click(function(e){ $("#form").validationEngine({ inlineValidation...

Trigger event on background image load

Is there a way, using jQuery, to trigger an event on load of a CSS background image? ...