jquery

.get() IE only issue

Hello, I am fetching some value from another page using jQuery .get() like this <input size="30" id="abc" value="" type="text" readonly="readonly"> <input size="30" id="pqr" value="" type="text" readonly="readonly"> $.get('clientarea.php?', function(data) { var newVal = $('input[name=customfield[1]]', data).val(); $('#abc').val(ne...

jQuery file upload - get the "Open" event from the dialog window

Hi Guys, Does anyone know how can I find out when the "Open" button was clicked in the dialog window of the file upload? I just want to do some checks once this has happened (validation etc.) and then perform the upload automatically. Also - I don't want to use any plugins as I know there are a few. ...

Number with comma separator validation regular expression is required.

Need a regular expression to validate number with comma separator. 1,5,10,55 is valid but 1,,,,10 is not valid. ...

Jquery, reading JSON variables received from PHP

Sorry if this is basic, but I have been dealing with figuring this out all day and have gotten to where I can do everything I need with Jquery and cakephp (not sure if cakephp matters in this or if its same as any PHP), I want to return a variable from a cakephp function to jquery, I had read about how to do it, like here: the cakephp: ...

Will jQuery fail with client side XSLT

I am looking to offload some processing to the client via client side XSLT. If I do this will my current JavaScript and jQuery still work? ...

get parent frame height with jQuery

I want to get the height of parent frame with jQuery. It's my orginal script var iframeElement = parent.document.getElementById('FrmPatient'); iframeElement.style.height = 170; I want to change this script to jQuery style. How to get that? ...

Order of execution of jquery event handlers in respect to (inline) javascript event handlers

Correct me if I am wrong, but seems to me jQuery event handling is completely separate from the javascript event handling. I know that the order of executing jQuery and javascript event handlers themselves is undefined, but can the assumption be made that all javascript handlers will execute before jQuery ones? In the example given in a...

Endless horizontal jquery ticker

I'm looking for an endless horizontal news style ticker. I've played around with SmoothScroll and SimpleDivScroll. SmoothScroll doesn't seem to work well with elements of different widths and SimpleDivScroll is only compatible with jQuery 1.4+ and I'm stuck with jQuery 1.3.2. Any other alternatives? ...

jquery validation only digits

Hello All, I am having the jquery.validate.js plugin and it is working fine for me. My question is : I am having a textbox and this textbox is mandatory and should only accept digits. In the js, I can see that there is validation for the digits and the problem is that I do not know how to use it. I only knew how to make the field re...

simplify jquery parents and childrens

I have to get a far parent's child's child's attribute href... now i can get that using this long statement var uid = $(this).parents(':eq(7)').children( ).find('.p_cell') .children(':eq(0)').children(':eq(0)').attr('href'); please any string using '>' and ' : ' that can simplify the statement thanks Pradyut India ...

Abort all JQuery AJAX requests globally

Is there a way to abort all AJAX requests globally without a handle on the request object? The reason I ask is that we have quite a complex application where we are running a number of different AJAX requests in the background by using setTimeOut(). If the user clicks a certain button we need to halt all ongoing requests. ...

Loading jQuery qTip code dynamically

Hello everyone, For an application I am writing, I have the need to dynamically load content into a DIV when a form is submitted. This dynamically loaded content needs several tooltips to be displayed automatically at the time of loading (no need for an event to trigger it). I chose qTip because it has parameters to do this, unlike mos...

how to hide any page element with mvc2 validation raising in asp.net

I want to hide a span when the validation raised ...

Does adobe AIR support jQuery?

Anyone knows this? ...

jQuery - .load page via AJAX, callback definition on loaded page?

Hi, I'm using $('#container').load method to handle loading all the subpages of my site. Now the deal is, some sub-pages require extra behavior (like form validation etc.) I'd love them to be self-contained, so - each sub-page has own JS code that handles all the subpage-specific tasks. This however requires some of them to handle "load...

How to count the rows in a gridview in asp.net using jQuery

Does anyone know how to count the no of rows in asp:GridView using jQuery. If no rows found then I want to do stuff... ...

jQuery dynamic selectors show div

I have a set of dynamic headings and hidden divs with the idea that when the user clicks on a heading it toggles the div underneath to show/hide the divs all have an id in the form "div_x" where x is dynamically generated Ive managed to use .each() to loop over all divs that begin with div_ and I can .split the x portion of the id, but...

jQuery: put a default value in all empty textboxes

Textbox refers to <input type="text"> in this question. For each textbox with a given class i would like to check if the value equals '', and if it does I want to make the value '0'. I would like to do this as soon as the page is loaded. This is the closest I've got now: $(document).ready(function() { if ($('.myclass').val() == '') ...

Prototype Equivalent JQuery's offset()

Hi, I would like to know if there is any prototype equivalent to the JQuery's .offset() function? Thanks for your help. ...

JQuery: Update hover on mouse movement

$(document).ready(function() { $(".hoverimage").hover( function(e) { openQuicktip(this,e); }, function() { closeQuicktip(this); } ); $("area").hover( function(e) { openQuicktip(this,e); }, function() { closeQuicktip(this); } ); }); function openQuicktip(elem,e) { ar x = e.pageX; ar y = e.pageY; $('.helpbo...