Hi everyone, I have the following code:
$(document).ready(function(){
$.ajax({
url: "svc/GetTweetsByUser.php",
type: "POST",
success: function(data) {
alert('success');
},
failure: function(){
alert('fail');
},
data: ({twitter_user : 'AdoboHobo'}),
dataTyp...
I have some popup dialogs on my webpage, in each of this dialogs i have defined some click event with jquery :
$(".links_view").click(function(e){ //code });
But the problem is when i activate one this click event, it will be executed in each dialog...
...
I've got a form that can optionally be pre-populated via facebook connect. Once a user connects, their name and email are automatically filled in. The problem is that this doesn't trigger the remote validation to check if the email already exists.
Is there a way I could call the validation on that field alone? Something like:
$('#e...
Hi I am using jQuery 1.8 and I want to have a custom 'draggable' control that is a child of a jquery dialog. I am encountering lots of problems as I want the draggable control to shrink to its contents size (its a div for now) and be clipped with in the dialog bounds.
If I set the control to position absolute it behaves perfectly but d...
I am working on a classic asp form that has a number of dropdowns. Three of these are cascading, i.e. they rely in the previous dropdown. For almost everything this code works fine, one of them however is not playing nice.
To start off I have a script tag with the following in it:
$(document).ready(function () {
$("#Academ...
i have following format of json in which i want to asscess 0.4 , kem , 2 , 2000 values
but it seems it doesn't have name index so how one can access it in jquery.
when i paste following code in json viewer then i am getting numerical index for 0.4 , kem , 2
"td": [
{
"@attributes": {
"class": "odd"
}...
I am starting with a new site (it's my first one) and I am getting big troubles !
I wrote this code
<?php
include("misc.inc");
$cxn=mysqli_connect($host,$user,$password,$database) or die("couldn't connect to server");
$query="SELECT DISTINCT country FROM stamps";
$result=mysqli_query($cxn,$query) or die ("couldn't execu...
Hey guys,
I've wrote some jquery code with some draggable elements and one droparea.
Unfortunately my droparea can't make a difference between various object.
Here's my code.
<script type="text/javascript">
$(function() {
$("#droparea").droppable({
drop: function(event) {
var $target = $(even...
Hi,
When I bind a mousemove event to an element it is working smoothly with every browser except Internet Explorer. With IE the CPU usage is way too much and some associated things (eg. tooltip) are ugly. Is there any way I could rid of the performance problem? (yeah I know, don't use IE :))
UPDATE: Even if I don't do anything in the e...
Hi,
I'm using SimpleModal plugin (http://www.ericmmartin.com/projects/simplemodal/) for generating a simple modal dialog. Now the application I'm using this in had some previous code that uses Spring MVC - DWR Ajax framework. I believe it uses jQuery internally.
Now when I include the jQuery file in this project and use the plugin, t...
I want to count how many divs with the class .tool that contain the following html by example : <b>Photoshop</b>
<div class="tool"><b>After Effects</b></div>
<div class="tool"><b>Photoshop</b></div>
<div class="tool"><b>Illustrator</b></div>
<div class="tool"><b>Photoshop</b></div>
<div class="tool"><b>Photoshop</b></div>
// This would ...
I have between 1-three checkboxes and by default they are all disabled. In order for the submit button to be active ove checkbox minumum must be selected. Can someone help me with a jquery snippet to achieve this? My markup looks like this and the site used jquery 1.42. Please and thankyou!
<form action="/cart/add" method="post" id="pfo...
I want to disable the default contextMenu when a user right-clicks on an input field so that I can show a custom contextMenu. Generally speaking, its pretty easy to disable the right-click menu by doing something like:
$([whatever]).bind("click", function(e) { e.preventDefault(); });
And in fact, I can do this on just about every ele...
I'm using JQuery. I'm writing this as HTML code:
<li id="toggle">
<a id="open" class="open" href="#">Log In | Register</a>
<a id="close" class="close" style="display: none;" href="#">Close Panel</a>
</li>
and I'm writing a code like that:
$(document).ready(function() {
// Expand Panel
$("#open").click(...
When a Quicktime movie has ended, I want to replace it with a image slideshow. My current approach is to have the .mov file communicate back to the Javascript on the page. Once the end of the movie is reached, an event calls a function.
So my question is: What method can I use to call a Javascript function when a Quicktime movie ends?
...
I'm looking for a JQuery plugin to animate the appearance and disappearance of an overlay div. Something like what Rackspace has here:
http://www.rackspacecloud.com/
After staring at the page for 30 seconds or so, a div comes sliding down from the top asking you whether you want to chat with a rep. If you ignore the div for a perio...
I am using this jquery plugin:
http://www.jankoatwarpspeed.com/post/2009/07/20/Expand-table-rows-with-jQuery-jExpand-plugin.aspx
I have anchors in the code such as:
<a name="art" id="art2"></a> Articles
How can I open that particular row then? In other words, when a user clicks a link from another page to this landing page I would l...
Demo: http://jsfiddle.net/55ucw/1/
In any browser other than Safari or Chrome, I can tab into a set of radio buttons and select one using the arrow keys and the change event will fire.
In Safari or Chrome, I can tab into a radio group, and select a radio button with arrow keys, but the change event never fires.
Am I missing something...
Is it possible to a jquery $.get() to call a servlet and use it to both download a file or update the page without reloading the page? (Or more basically, can I download a file without reloading the page?)
For example, I am using a servlet that either returns a file to download of mimetype "application/octet-stream", or returns text to...
I want to get page_tag information from the page and want to make sure that DOM for this page is already ready before getting the page tag information.
I am doing
$(document).ready(
{
alert("test");
var page_tag : $("head meta[name='page_tag']").attr('content');
page_tag : (page_tag) ? page_tag : '';
}
But it gives me erro...