I am trying to extend DOMWindow example 6 to anchor to various elements at the page. As it is, the syntax implies that selector needs to be static, be it class name or id, both work. What I'd like to do, however, is assign the id of the clicked element as a selector, but it doesn't seem to work. A simple example:
$(function() {
...
Here's my problem: I'm writing a WordPress plugin that helps budding CSS authors see how css applies to their theme in real time. It's got a numer of nifty features, except one, which is pretty crucial in my mind.
I want to allow them to click an element, see the full selector path to that element (that part is done), and then show th...
if i call a ajax request using jquery to an asp.net mvc controller action and inside that action an exception gets thrown, what is the best way to capture that and show something to the user.
right now my loading image just goes on forever . . . .
here is an example of my controller code:
public ActionResult BatchAdd(int[] sharepoin...
hi guys i have a html form where i have a textfield which is having capabilities to enter two digits the first digit is autopopulated to be 0 and i donot want users to change that hows that possible using javascript or jQuery or anything else.
...
I'm currently using a read more function on the frontpage of my site to load in larger sections of articles. It loads from a seperate html file a div with the id mainarticle. It makes use of the jQuery function .load() but the lightbox within this section does not work.
I know it is something to do with .live() but I am unable to pinp...
Is there a way when using jQuery.Post to discover the content-type of the response?
I have a form in a modal window and the idea is that if the form is not valid then an HTML snippet is sent and the contents of the modal are replaced with this snippet, if it is valid I want a simple string with the content for a flash notification (of t...
I have a href link is as below
<a href="#" class="add_encounter">Add</a>
on $(document).ready i run this function is as below
$('.add_encounter').click(function(event) {
add_encounter(encounters);
event.preventDefault();
});
on add_encounter function i changed class name of ahref from add_encounter to encounter encounterS...
Hi,
I am using a script by CSS-Tricks, which is pretty straightforward except my scenario includes a little tricky area :)
The script:
$(".myBox").click(function(){
window.location=$(this).find("a").attr("href");
return false;
});
This works perfectly except inside my DIV I have a span containing an icon that needs to trigger a...
Hi,
Im trying to show a jQuery menu that is built from and ajax call to a xml file and then an event handler is attached to all the li objects that has submenus. My problem is that it dosnt work. If I press a subcategory that should expand and show a submenu, this is done but the top node in my tree also cahnges its hide/show value? So ...
I want a container inside the page to take the whole width of the page and overlayed on everything else, when active. This is what I have currently and its not working as I want:
$(function() {
$('.main a').click( function() {
var href = $(this).attr('href');
$(href).animate({
width: [940, 'swing'],
...
I am using jquery jqplot plugin for displaying graphs.
Using php,i retrieved json data like this:
for($i = 0; $i < $result_count; $i++)
{
$data_array[$i][0] = "some value";
}
echo json_encode($data_array);
Then,i get the data using jquery:
$jquery.ajax({
type: 'POST',
url: "server url",
d...
Hi I'm looking to make a modal div appear on a page using a bounce effect like seen on the iPhone for its pop-up messages.
By bounce I mean like scale bigger than normal and then become the actual size in an elasticated way whilst fading into view.
Any ideas on where to start with this?
...
Hi,
I have a span which contains 2 radio buttons and 2 labels. When a user selects a specific value from a drop down list it is not applicable to have the radio buttons showing so I fade them out. Again when a different value is selected I fade them back in.
When I fadeOut the span which contains them the text input box on the right ...
Firstly, I'm a real novice with debugging JavaScript/jQuery so please pardon any naivety on my part.
I'm trying to replicate a similar end product as is outlined within the following tutorial: http://jqueryfordesigners.com/coda-slider-effect/
The problem I am getting is when I attempt to reference $.localScroll(scrollOptions); but when...
hi,
i want to load a page after a textbox looses its focus.But it not working. What is wrong in it?
$(function() {
$("#txtBox").blur(function() {
$('#LoadPage').load("Defult.aspx");
});
});
...
I need to pass 300 or less strings from anchors of tags on page to jquery's:
var availableTags = [
"my tag",
"my tag1"
];
Taglist
Server gives me a taglist only of a certain format were the number of tags is 300 (or less). Every anchor is put in the div. That div has a static class "tagItem":
<div class="tagItem">
<a href="/search/...
Hi I written a two jquery functions for a simple fading menu, it basically splits the screen in half and allows you go to one of two sites. How can I set a delay of say 2 seconds before these function work? Here's my code:
$('#retailNav').bind({
mouseenter: function() {
$('#retailFull:not(:animated)').fadeIn('slow');
...
I have this simple attacched code, I can get right text on the first debug alert but the search and if condition doesn't work, what is wrong in my code? Or there is a better way to do the same?
thanks in advance
ciao
h
$.post("./php/piattaforma.php",
{azione:"valida_pia", contratto:contratto},
function(xml)
{
$(xml).find("sel_mess"...
I have a navigation menu which contain sub menus. On hover I want the sub menus to show after a second delay. Menu items marked with a class of "more" contain sub menus.
Problem is that one of my functions called hoverCheck() is coming back as undefined when it's called. But I can't figure out why.
Here's my code:
$(document).ready...
I want to convert a date string to a date object in jQuery, and the code below works fine for Chrome and Firefox, but not in Internet Explorer:
<script type="text/javascript" charset="utf-8">
//Validate if the followup date is now or passed:
jQuery.noConflict();
var now = new Date();
jQuery(".FollowUpDate").each(function () ...