jquery

migrate to jQuery

Let me make this same command in jQuery $('aplicacao').filterByTagName(searchValue); currently is in prototype would like to see more on jQuery Thank you very much ...

bind event on generated element and get its current state.

Here is a plug-in that binds a click event on an element, which generates a container with a <textarea> and then i bind a keypress event on this new <textarea>, all is ok, but inside the keypress handler i can only get the state of text().length from when the initial click happened. How do i get the onKeyPress function to get the state...

Can you use jquery to add comments dynamically to code?

I tried: <script> $(function() { $('.class').before('<!--'); $('.class').after('-->'); }); </script> but it didn't work for a reason unknown to me. Can anyone help me understand why it didn't work and how I would do it? Thank you, much appreciated. ...

HTML5 video works in Firefox but not IE

Hi. The HTML5 video player (JW Player) on this page works fine in Firefox, Chrome, Safari, Opera, but not IE: http://bit.ly/9mR6Wy If you scroll through the carousel component, you'll notice the video's width gets "crushed" on IE and the text next to it, visible on the other browsers, isn't displayed. The video slides are 1 and 5 in the...

Prevent element stacking with CSS

When there are multiple of the following element they are shown right on top of each other, as if the z-index is different on each element. I'd like for them to stack up against the right side of the screen, going up the side of the screen and then as they "fade away" via my javascript for them to slide down to the right corner... I hop...

asp.net MVC 2: in a create form, how to add new model relation entity with ajax request.

First of all , I use MVC 2 with Entity Framework 4. I Have 2 Entities. Customers and Emails There is a Relation 1 to many between Customer and Email. One customer ca have many Email. My question : In the Customer Creation page form, I have all the info related to the customer. ex: <%: Html.LabelFor(model = model.FirstName) %> <%: Ht...

hover() backgroundColor problem

$('li > a').hover( function(){ $(this).animate({ backgroundColor: '#2a639a', color: '#fff' },300).corner('5px'); }, function(){ $(this).animate({ background: 'transparent', color: '#444' },300); } ); What's wrong with background: 'transparent'? turns back white, not transparent ...

ajax fetch into div, div not taking size

hello, Using jquery, i fetch a data from php to div $.post(url.php?info="+$('#info').val() // rest of code $('#information').show().html($(response).fadeIn('slow')); i set in css #information as width: 290px; border: 2px solid #000; Any idea why height isn't automatically set? do i have to do something? i am new in jquery ...

Why does jScrollPane work in every 'modern' browser except IE8?

I have put in the new jScrollPane, and I've gotten my scrollbars to work on every browser except IE8! Same thing happened with the old version as well. I keep getting this error: Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0) Timestamp: Wed, 22 Sep 2010 14:14:38 UTC Message: Invalid ...

jquery strange reload on delete row

Hi, I am using jQGrid. When I delete a row with: jQuery('#jobList').delRowData(row); after it has delete the row, the page reload himself.....? Why it happens? Thanks. ...

Access local variable from outside the function

I'm using TopUp to make a simple slideshow. Unfortunately they don't expose the image index. Is there a way I can access the local variable "index" without having to modify the original script? TopUp = (function() { var index = null; ... } ...

jquery's form submit not working in IE

What we are trying to do here is that we have a form with an id of upgrade_form. We also have a form called 'paypal_submit' form. This form is blank. 'upgrade_form' has billing detail fields(address, name, expiry etc) We then have just one submit button, and the logic was that it will submit the form if a credit card radio button is che...

JQuery attr not changing title

We have this JQuery code: $('#dialog-message').attr("title", t); It works fine the first time it's executed - the title is changed. But on subsequent calls to this method the title is not updated. Any ideas? ...

replacing chars using jQuery

Hey everybody, I am trying to replace all special characters except alphanumerics using js. function checkWholeString(string,len){ if(string != null && string != ""){ var regExp = /^[A-Za-z0-9-]+$/; for(var i=0; i < string.length; i++){ var ap = string.charAt(i); if(!ap.ma...

Stop the timer / Automated flow when user clicks on any digit.

I have a slider that rotates between different divs nicely with the following code: <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"> $(document).ready(function (){ function showSlide(integer) { $('#myslide .cover').css({l...

jQuery funcionality not working within an ajax-controlled section of the webpage

Hi, This 'Timepickr' jQuery function is woking fine in one section of my webpage using the following code... <? include("header.php"); ?> <br> <form method="post" name="form1"> <div id="div"> <center> <table border="0" cellpadding="0" cellspacing="0" width="60%"> <tr> <td width="150">Time</td> <td> <input class='timepickr' type='text' ...

ffmpeg video encoding progress bar

When I run the conversion in the browser it simply shows the white blank space. Only after the conversion process page will load. Please suggest how to implement a progress bar which shows the progress to the user when the video conversion takes place. I have this in my php script exec("ffmpeg -i filename.flv -sameq -ab 128 -s 640x480...

jQuery.validate() newbie: it doesn't work for me

HI, Im trying to validate an email field dinamically using jquery.validate here. The field i'm speaking about is "Email" ("Registro" form). any idea? Regards Javi ...

Programatically disabling jQuery client validation in ASP.NET MVC

I am using the jQuery MVC validation library for ASP.NET MVC, which is working fine. However, on my form I have a 'Cancel' and a 'Save' button, both of which I want to submit the form back to the server. However, if the user clicks 'Cancel' I need to disable the client side validation so that the user doesn't get prompted to complete...

Shorten JQuery Snippet

I have the following JQuery snippet: (someVar.next().length == 0)?someVar.fadeOut().end().find("ul").first().fadeIn():someVar.fadeOut().next().fadeIn(); There is a fair amount of code duplication between the two results of the conditional - i.e. someVar.fadeOut() and .fadeIn() on both. I would ideally like something like this: someV...