jquery

call blockUI on button onclick

Hi, I'm trying to call an blockUI after a buttonclick, but I can't get it to work. What am I doing wrong? Script: $(function() { $('#<%= btnSave.ClientID %>').click(function(e) { e.preventDefault(); $.blockUI({ message: '<div><h1><img src="Images/busy.gif" /> Please wait.....

Is there a way to use jQuery to simulate a user clicking on this div, to start playing the video contained within?

jsFiddle I have a DailyMotion video embedded in my page, through an iFrame, within a div. If the user clicks on the video, it starts playing. Is there a way to use jQuery to simulate the user clicking on the video, so that it will start playing automatically? From what I've read so far you can only use jQuery's click() with events atta...

jQuery and iPhone native app development.

How to use JqPlot (javascript ) charting libraries in a native application for iphone? ...

ASP.Net C#: Call serverside function together with Jquery BlockUI

Hi, I want to show a Jquery blockUI when I click an asp:button that triggers a serverside function. When the function ends, I want to do the unBlockUI. Is this possible? If so, can I have an example, cause I'm not an Ajax specialist. Thx! ...

Get the rowIndex of an ASP.Net Gridview using jQuery

Hello, is it possible to get the current rowindex of a gridview using jQuery? Bit of background: I delete rows from a gridview using a server side link button in a template field like so: <asp:LinkButton CausesValidation="false" CommandName="Delete" ID="lnkDelete" OnClientClick="javascript: return(confirm('Delete item?'...

How to get the selected tab of the browser using javascript?

Hi all, How to get the selected tab of the browser using javascript? Thanks, Gaurav ...

jQuery - execute a block of code in one line

Hi, I have a block of code: $('#link_dwebsitedesign a').removeClass('selected'); $('#link_dhuisstijl a').removeClass('selected'); $('#link_dhosting a').removeClass('selected'); $('#link_dwordpress a').removeClass('selected'); $('#link_dseo a').removeClass('selected'); ...

jScrollPane 2.0 height problem in chrome

I am using a div with class scroll-pane (height 100%) within an absolute positioned div. The scroll-pane div contains some text first, followed by an image and followed by some text again. The image height is set to 200px. Problem is! If I view the scrollpane in Chrome (latest Version) I sometimes can scroll the complete content and some...

js form filling checking

How could i return user to unfilled field when he push "submit" button? I have something like this: <!--Contact Name--> <div class="section" id="inputdiv"> <span class="fieldname">Name:</span> <input type="text" id="contactname" /> <!-- Nessesary to be filled--> <script type="text/javascript"> ...

Error: uncaught exception: [Exception... "An invalid or illegal string was specified"

This two errors I get in the Firefox error console: Error: Incorrect document format Source file: Row 1, column 45 Source code: <div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; Error: uncaught exception: [Exception... "An invalid or illegal st...

jQuery Table Row Renumbering

I am trying to renumber rows in my table using jQuery This is the generated HTML ... ... <tr> <td><input type="hidden" class="counter" value="5"></td> <td><input type="text" size="40" id="drugName5" name="drugName[5]" class="drugName required" value=""></td> <td><input type="text" name="dose[5]" class="dose" value=""></td> <td><input ...

Help required in user control

I am using a user control (.ascx) as below <div class="ui-widget" id="w_instruction"> <div class="ui-state-instruction ui-corner-all w-msg"> <a id="btn_instruction_close" class="ui-dialog-titlebar-close ui-corner-all" href="#" style="float:right;"><img src="../../Images/i_close_blue.png" border="0"/></a> ...

jquery quicksand custom sorting methods? & 2 attributes?

Hi people, how to code the sorting method, i have a datetime formatted as 2010-09-26, how would i code it for quicksand? and how would i possible add another attribute(data-id), im listing out a bunch of images, and using quick sand to sort them into image types, and also need a additional attribute for sorting the 'latest' attribute. ...

PHP/MySQL Show first X results, hide the rest

Hi, Does anyone know how to bring in all of a mysql tables' results, only show the first X, (say 10), and then hide the rest using jquery? Basically, as I've already got the jquery, I just need to know how to show only the first X results in one div, then the rest in a seperate div. My aim is to only show the first 10 results, but prov...

Form onChange calculation

Hi there, I have a classic asp form to add products to a site. The form has 3 fields of 'Price', 'Sale' Price and a checkbox for 'On Sale'. What i'm trying to do is, when a user enters a 'Price' and ticks the 'On Sale' checkbox, some javascript would complete the 'Sale Price' with a value that is 'Price' - 10%. Wondering if anyone may...

How do I access the list of classnames using javascript/jQuery ?

here are the html elements : <input class="myClass problemOne" type=text value=something></input> <input class="myClass problemTwo" type=text value=somethingelse></input> and here is the javascript and jquery in which I am tryign to access classaname, neither method a, or b works ... "classname is null or not an object". var myElem...

Javascript block removing

I really need to remove some block with the help of js. Is it possible not to hide some block, but remove it at all? Because I have a field wich user will not be able to see if he selected "no" in my selectbox, but JQuery validation anyway sends message that this field is empty. I have this: $(function () { $("#wichone...

Deep Cloning in Yui3

How does one deep clone an object in YUI3 ? In jquery it would be typically done as follows var clone = jQuery.extend(true, {}, object); ...

Problem initialising Google map with multiple markers

Hi guys, I'm trying to develop an application where addresses are pulled out of a database to show them using a marker on a google map on my website. I have the following javascript code + jquery , google maps and all other necessary javascript files: $(document).ready(function(){ // initialise map var myLatlng = new google.m...

JQuery set cookies.

Hi, How to save div title into cookies? And how to get this saved data, back? <script type="text/javascript"> function setcookie(title, value, exp) { var expdate = new Date(); expdate.setDate(expdate.getDate() + exp); document.cookie = title+'='+value+';expires='+expdate.toGMTString()+';path=/'; } </script> <div title="1" ...