When using a complex box shadow like:
box-shadow: 0 2px 6px rgba(0,0,0,0.5),
inset 0 1px rgba(255,255,255,0.3),
inset 0 10px 20px rgba(255,255,255,0.25),
inset 0 -15px 30px rgba(0,0,0,0.3)
I am seeing considerable (unacceptable really) degradation of a jquery slideshow on the same page. All the transitions happen instantaneously.
Is ...
I have this:
$('input.people').attr('checked', function() {
return $.inArray(this.name, ['danB', 'lindaC']) != -1;
});
It is for a list of contacts. I want to be able to have the user click a checkbox that will select the people in a specific role and uncheck everyone else. That works. Now I want to modify this so that if someone...
This is my code:
$.each(3, function(n) {
alert(n);
});
I want to alert three times but it doesn't work. What can I do?
...
I am trying to unselect the other div i click on before. i have stored the old div id in an hidden input as you can see below i have added a alert so show the last div selected and it works fine but as soon as i try and change the div text color in css the whole script stops working.
function edit_addon(div_id) {
$("#"+div_id).att...
Hi. I think title explain what i have to do (or, i hope so) :)
As fist thing, I'll ask patience to everybody for my english!
So... I have to do this :
I've some "modules" with :
- some select option (in fact, one for hours with 12 value, one for minuts for 60 values and one for seconds with other 60 values);
- some input box;
- some ch...
I know a glow around input fields is standard, but Twitter manages to fade it in smoothly. I've been looking around but can't seem to find a solid way to achieve this. How is this done?
...
$(document).ready(function(){
$("a[href*='http://']:not([href*='"+location.hostname+"'])").attr("target","_blank");
$("a[target!='_blank'][target!='_top']").live('click', function(){
$("#actualcontent").html('<center><img src="/deltasite/uploads/smallloader.gif"></center>');
var url=$(this).attr("href")+'?jquery=1';
$("#actualconten...
Hi everyone,
I am using the CI validation class to do server-side validation and Jquery validation to do client-side validation. Is there some way I can leverage the CI validation and form building, so that when it is creating the form elements it creates them with class="<equivalent of CI validation rules>"? This way, if I change the v...
I am trying to use the autosuggest plugin of jquery to take a users input, jquery that input to a php mysql script to get information, then replace the users input with what was retrieved from the jquery request. Now this should stump you all for a minute.
first off...if I replace the returned text from the autosuggest script with jus...
I am trying to get the parent item of an item with the below code.
(the content of the parent)
ex. the parent of "Item 1.1" would be "Item 2" in the below example.
Items:
<ul class="sortable" id="page-list">
<li><div>Item 1</div></li>
<li><div>Item 2</div>
<ul>
<li>...
How to limit the Datepicker to be closed only by clicking on the input field ?
Thanks in advance...
...
For one of my first ventures into JQuery, I have the very simple goal of stepping through the children of a div and fading them in and out one by one. For some reason though, if I manually define an index for nth-child, say 1, then the first child fades in and out four times. If I use the variable "i", however, then all of the children...
here is a little demo of the problem: textAnimation Demo
and here is the plugin code:
(function($) {
$.fn.textAnimation = function(options) {
// debug(this);
// build main options before element iteration
var opts = $.extend({}, $.fn.textAnimation.defaults, options);
// iterate and reformat each matc...
I have a div where I want to show 6 images. Address of these images are coming from server. I am using this code.
updateImageDiv = function() {
$.ajax({
type : 'POST',
url : 'slider.php',
dataType : 'json',
...
Is there any free MySQL synchronization tool out there?
I need to synchronize the database structure across servers. Data synchronization is not necessary (but is a plus).
It needs to be free (for non commercial use), not a free trial.
Edit:
None of the answers so far has worked, were free, or a suitable to my needs.
...
I am making a request and then right after it I abort.
var x = $.get(url, function (d, e, xhr) { alert(d); });
x.abort();
The problem is that it executes the success function and returns empty data... (example here)
Is there a jQuery method to abort? or Is there a way to check if the xhr was aborted?
...
I have a simple $.ajax call that returns a response that looks like this:
<div id='type'>success</div>
<div id="graph"></div>
<script type='text/javascript'>
//some script that manipulates the graph div
</script>
and on my .ajax's success(response) function, I have:
$(response).find('#type').text()
my problem is that it always r...
How can I get this list of checkboxes to be added to a div prior to their selected state, so if they are selected, they should be added to the div, if not they are removed from the list if not selected.
<div id="selected-people"></div>
<input type="checkbox" value="45" id="Jamie" />
<input type="checkbox" value="46" id="Ethan" />
<inpu...
I just implemented a multi-language mod onto my website.
Problem is that there seems to be a conflict between the javascript files from the language mod and the javascript files that already were on the page.
<!-- language files here -->
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript...
I'm trying to send a POST request to my GAE app through JQuery AJAX but I get no response data back. I have a very simple servlet that simply echo the "msg" I pass in. Also overriding doOptions.
@Override
protected void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
{
resp.setH...