I am using jquery and fullcalendar to schedule activities. When users select a timeslot, a form is shown on the right of the calendar where they can enter additional details.
With the 'select' callback I render a temporary event on the calendar so my users will have visual feedback while filling out the form.
However, when they have mi...
I have created a #logo DIV that consists of a smaller #circle DIV & h1. The #circle acts as the DIV/canvas that my Raphael.js object, a circle, is rendered in. My goal was to make it so when a user hovers over the #logo DIV the Raphael.js circle and h1 will get animated but I ran into some problems.
For some reason my Raphael.js circle...
How can I get the current value of the label elements within function showEditionBlock() and set them to the corresponding input fields? The function will show the "edit" div, but the inputs are not getting the original values of the labels.
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/j...
I need to use some fairly complex Jquery plugins that aren't just a single .js file, but rather need an entire folder that contains css, images, etc.. I am not understanding how to include this using cakephp, I suppose I could do it from the layout in a traditional HTML manner, but it would be nicer to just do it the Cakephp way, the jqu...
I have a list of 8 divs and need to add a sequence of class numbers to them using Jquery to style them individually. Need to add them to the 'content-block' div see example below.
The desired effect will be something like this:
<div class="wrapper">
<div id="content-block" *class="post1"*>
</div></div>
<div class="wrapper">
<div id="c...
I'm using the jQuery autocomplete plugin, NOT the UI autocomplete. I would like to make an unclickable No Results message appear whenever they enter something that has no results from the autocomplete. How can I do that?
...
I am wanting to have autocomplete triggered after a user types a period to do a "code complete" sort of like in Eclipse. I can't begin to glean from the documentation how to go about this. I've searched for similar questions with no luck.
Which functions would I need to override to get this sort of behavior? I don't need AJAX, the pag...
Hi,
I'm new to that subject in ASP .NET, however I had experience in PHP - where whole idea was preety straightfowrad: create page like something.php which returns pure JSON, and call it using $.post (for instance).
Now , in ASP, I walked into another approach (using Web Services + ScriptService attribute + MS library for proxy genera...
Hello everybody !
I try to add dynamically an iframe to a web page using JavaScript. I would like to know if that's possible to set the src attribute of my iframe without using another html file via an URL.
I mean is there a way to "fake" the html for the src attribute file with a JS variable where we I can set my code (which is JS itse...
I'm using jQuery in my current project. I have an list of elements with unique ids. I would like to pick out a particular element and append a new list item after that element. For example, if I have something like:
<ul>
<li id="one">one</li>
<li id="three">three</li>
</ul>
I would like to append <li id="two">two</li> after ...
I'm trying to pass an element's id to storePair
$("#someid").click(storePair($(this).val(),$(this).attr("id"));
using $(this) doesn't work. no value.
Another stackoverflow post suggests that I use an anonymous function as a wrapper for StorePair(val,id), i.e.,
$("#someid").click(function(){storePair($(this).val(),$(this).attr("id")}...
Trying to get jQuery to detect enter input, but space and other keys are detected, enter isn't detected. What's wrong below:
<script>
$("#entersomething").keyup(function(e){alert("up");
var code = (e.keyCode ? e.keyCode : e.which);
if(code==13)e.preventDefault();
if(code==32||code==13||code==188||code==186){
$("#...
Thats pretty much it. Looking for best practice with mobile jQuery caching. Thanks for the help in advance.
...
Hi
i am just trying to make a simple Ajax call using jQuery
this is my JavaScript:
//Starts the game
function startGame() {
$.ajax({
type: "POST",
url: "Default.aspx/StartGame"
});
}
my button:
<input type="image" value="twist..." src="images/play.png" class="playButto...
So far, I'm using
$(this).attr('class');
But I worry about compatibility because I know some browsers do some weird things with class and id attributes. Seems like a great place for jQuery to implement its own method, but I can't find it in the documentation.
Isn't there a bug somewhere that has className and id acting on the same ob...
Hi All,
I'm using MVC 2 and the default view engine to return .ascx partial views using the JQuery Ajax .get() method. The partial views have some javascript in them and I'm finding that the behaviour of the javascript is erratic in that sometimes it executes, while other times it doesn't. I came across a reply from a MS Program Manager...
how can i load autocomplete with jquery on click event???
...
Hey guys, I have a bit of a problem that I can't solve. I'm don't know much about jquery, so i'm hoping you can help me.
Basically I have a quiz script that has questions in divs, I want when a person checks radiobox and presses "next question" button, the present div would fade out, and the next div would fade in.
Here's how html code ...
Is there a better way to concatenate strings that have "'s (such as HTML tag attribute definitions) in jQuery than escaping the quote?
Escapy Example:
$(this).prepend("<label for=\""+$(this).attr("id")+"\">"+"a"+"</label>");
...
Hi
I am new to jQuery.
I use
<script src="test/lib/jquery-1.4.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="test/lib/jquery-ui-1.8.custom.min.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="ui_tabs/css/jquery-ui-1.7.2.custom.css" type="text/css" media="screen" charset="utf-8...