I would like to display different tooltip content for each of the areas defined in an image-map. Are there any jQuery plug-ins that have an API well-suited to use with image-maps? I would like it also be be flexible with regard to where the tooltip content comes from, e.g. the content might be contained in an anchor element of an invisib...
Hey there,
I have a group of 4 divs and I'm looking to use jQuery to animate them once, then have a delay using delay(), and then run another set of animations on them, putting the divs back to their original configuration. Here's the code that I have:
//only selectors called 'option1' are affected by delay, and not 'option1 img' or ...
Live demo here <- http://webcallonline.exoflux.co.uk/html/
$(function() {
var url = $(this).attr("href");
$("nav").delegate("a", "click", function(event) {
event.preventDefault();
window.location.hash = $(this).attr('href');
$("#main").slideUp('slow', function(){
$("#main").load(url + " #main", fun...
Essentially I want to have a script execute when the contents of a DIV change. Since the scripts are separate (content script in chrome extension & webpage script), I need a way simply observe changes in DOM state. I could set up polling but that seems sloppy.
...
$(".hidee2").click(function() {
var type = $(".st").val();
}
<form action="" method="POST"><input type="hidden" class="st" value="st"><div class="button">Room Status : Accepting Reservation <br /><span><span><a class="hidee2">Book Now!</a></span></span></div></form>
<form action="" method="POST"><input type="hidden" class="st" valu...
I have a table with row which cab be hidden by user. It's implemented this way:
Markup:
<table>
<tr>
<td>
<table style="margin-left: auto; text-align: right;">
<tr>
<td class="stats-hide">
<a href="#" onclick="hideStats();">Hide</a>
</td>
<td c...
i have the value polled from the db and if the user want to change it - i want the calendar to be set first to the date already in the field
im using asp
and this picker
http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/
...
Is there any API or a jQuery plugin that allow me to highlight a code on my website?
For example
<pre code="c#">
var x = new StringBuilder();
var complex = new Complex();
</pre>
<script type="text/javascript">
$("pre[code]").codehighlight({ language: "c#" });
</script>
Something like that?
...
hi im tryin to use the return from a jquery ajax call in my own function, but it keeps returning undefined.
function checkUser2(asdf) {
$.ajax({
type: "POST",
async: false,
url: "check_user.php",
data: { name: asdf },
success: function(data){
return data;
//alert(d...
I'm trying to create an ASP.NET MVC master page so the site navigation on it will look like this:
Main Menu:Home | About | News
Sub Menu: Home_Page1 | Home_Page2
The Sub Menu section should always show sub-menu for the currently selected Main Menu page (on the example above 'Home' page is selected) unless a user hovers the mouse o...
Hi
I am using the DataTable.net plugin and I am wondering how can I add dynamically a row to a existing table?
http://datatables.net/examples/api/add_row.html
I am looking at this example and they have it like this
/* Global variable for the DataTables object */
var oTable;
/* Global var for counter */
var giCount = 2;
$(document)....
I would like my images that I open in colorbox to be displayed fullsize with no resizing applied to them and then apply scrollbars to allow for viewing the larger images. Some of my images are quite tall and things get pixelated when resized down.
Currently colorbox just resizes my images down to the size of the available height/width....
Hi all,
I am learning JQuery, and I have checked out that JQUery has got a validation plugin.
http://docs.jquery.com/Plugins/Validation#Validate_forms_like_you.27ve_never_been_validating_before.21
To use it, users have to include another script file in the Head tag in HTML.
I am thinking if this will cause any code collisions to the co...
Trying to fire off (trigger) a click event. Its easy to do in jQuery, but cannot figure out how to set the coordinates of the event and send them along.
Essentially, I need to trigger a click at a specific location (which is calculated prior to the trigger() call).
Any way to do this (in jQuery or otherwise)?
Thanks -
...
Is there a way for a jQuery function to "skip" an li? Such as Having 3 list items, you click on the 1st one, it calls a next() function, and skips the 2nd li and goes to the 3rd.
Current code is here:
$('ul.gallery li').click(function() {
$(window).scrollTo($(this).next('li'), 800, {easing:'easeOutCirc', axis:'x', offset:-50 } );
}...
I have the following code, which causes Chrome and Safari to crash (Aw Snap in Chrome)
jQuery(".filetree").treeview({
animated: "fast",
collapsed: true,
unique: true,
persist: "cookie",
toggle: function() { }
});
If I change it to this:
jQuery(".filetree").treeview({
animated: "fast",
toggle: function() { ...
i have a javascript object, obj, that gets passed to an mvc action via a $.post() like so:
var obj = {
Items: [{ Text: "", Value: { Property1: "", Property2: "" },
{ Text: "", Value: { Property1: "", Property2: "" }]
};
$.post('MyAction', obj, function() {});
the action signature looks like this:
public ActionResult M...
Has anyone found an easy way to get the awesome galleria gallery to auto play?
I'm really stuck on this one.
Any help would be great!
Thx Paul
...
Hey guys, I've got what I imagine is a simple question, but for some reason, I can't get it working right.
Expected Behavior:
I type characters into a field, and, through a function, those characters are translated into the value of the name HTML attribute.
Actual Behavior:
Reflected in Firebug, the value doesn't change or update.
Th...
I've noticed that when using $.post() in jquery that the default contentType is application/x-www-form-urlencoded - when my asp.net mvc code needs to have contentType=application/json
(See this question for why I must use application/json: http://stackoverflow.com/questions/2792603/aspnet-mvc-why-is-modelstate-isvalid-false-the-x-field-...