Hi, I'm trying to create a basic confirmation box which prompts users with a simple confirm/cancel when they click on a link.
This is working fine in FF and IE, however Chrome just seems to ignore it.
Can anyone see why this might not be working?
//Confirm Duplication
$("a[href*=duplicate]").click(function(event){
...
I need to show a reminder as floating popup/alert in my asp.net mvc (C#) application.
When the user has any information from the admin that should be notified at particular time, i need to show it as floating popup/alert in the user's screen.
For ex.: When the admin sets an alert "Payment due last date is 15-Oct-2009" to notify the use...
I'm working on a page that uses jQuery tabs. It's pretty much completed, but I've run into one minor annoyance. If the content of the tab is longer than the available window height, it automatically scrolls down to the start of the content. This makes sense, since behind the screens it's just an tag pointing to the id of the content. Ho...
Using Google Maps API and JQuery I would like to have an Address field that when typing it will autocomplete the address entered there. How this could be achieved?
...
I know its pretty basic but I just can't get it to work. it keeps throwing "Object Expected" error...
$(document).ready(function(){
setTimeout('showMessage()', 1000);
function showMessage() {
alert('abc');
}
});
...
Hello,
I am creating an image banner which has rollover links which change the text and image. What I need to happen is for this to rotate every 5 seconds through the 5 images, but on mouseover it would pause the roation and take you to the image which the user has selected. My Mouseover code is:
$("#main_nav li").mouseover( function...
Is there a way to call a javascript function if a javascript variable changes values using jQuery?
Something to the extend of -
var test = 1;
test = 2; // calls a javascript function
test = 3; // calls a javascript function
This way I wouldn't have to add an onchange event to so many different functions.
...
Hello, I have this:
<div id="inner">
some text <a href="#contacts">link1</a>
</div>
<a href="http://anotherlink.com">link2</a>
And JQuery code:
$('#inner a').click(function(){
console.log( 'achtung' );
});
But when I click at link1, click-handler doesn't call.
And in another situation:
$('a').click(function(){
co...
I rewrote a bit of my code based on that it's not really feasible to check to see if a javascript variable changes. But, how would I do it with a dom element? For instance
<div id='foo'>123</div>
<script>
$('#foo').html('456');
// function gets fired since #foo changed.
</script>
I tried
$("#foo").change(function () {
alert('ch...
Hey everyone,
My knowledge of jquery isn't very vast but what I'm trying to do is allow a user to click a button on a form to add more fields to the form to be submitted to the form itself... Something similar to how gmail used to handle email attachments by adding a bunch of input fields for each file, anyone have some pointers on how ...
I'm using this plugin: http://www.fyneworks.com/jquery/star-rating/
Is it possible to put a click function inside a callback function like this?
$('.auto-submit-star').rating({
callback: function(value, link){
$('.myclass').click(function(){
alert($(this).attr('id'));
});
alert($(this).attr('id'));
}
});
The ...
I'm troubleshooting a jQuery problem which happens when the HTTP requests for a page load include this query string:
GET /Scripts/jquery-1.3.2.min.js?_=1255309685187
Normally, the request has no query string and the response status code is 304:
GET /Scripts/jquery-1.3.2.min.js
However, every so often a query string is appended. ...
Hi All,
I have an asp.net usercontrol that contains a jQuery UI Dialog Control.
All works as expected execpt the grey tranparent overlay (to make the form modal) only appears on the hidden div below the form where the dialog is triggered from.
Is it possible to target this overlay to the parent div? or is this not the right solution.
...
The following markup will have some extra elements injected into it (ie: a div containing some flash for example). How can i dynamically wrap all of the p tags in one div and add a button above it to toggle that newly made div?
<div class="post">
<p>blquehrgéoqihrteoijth</p>
</div>
<div class="post">
<p>blquehrgéoqihrteoijth</p>
...
How do you iterate through a group of selected jQuery objects so that you can perform jQuery functions on each object individually?
<div class="foobar">abc</div>
<div class="foobar">123</div>
<div class="foobar">abc123</div>
I can select the group:
var foobarObjects = jQuery('.foobar')
But how would you go through each jQuer...
Hello, I have a menu with a (links) tags. In Jquery I'm handling click event at the parts of menu (a) and then show down content block. Everything is ok, but now I want to make possibility have links in content into another parts of menu.
<div id="head_menu">
<a href="#order">1</a>
<a href="#portfolio">2</a>
<a href="#contacts"...
I would like to use jQuery Fancybox or Lightbox to load a contact form from a standard link in a web page. I have reviewed the documents at http://fancybox.net/example but the closest option is the iFrame one and it doesn't work with a standard page link.
My heart is not set on using Fancybox so if there is a better way to have the lig...
I have a problem making a request to a server
My simple code is:
<html>
<head>
<script type="text/javascript" src="/Users/t/Desktop/App/etc.../jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="/Users/t/Desktop/App/etc.../json_parse.js"></script>
<script type="text/javascript">
$.getJSON("http://127.0.0.1:8000/search/"...
Which of these two is better/faster?
var a = $('.listItem', $('#myList'));
vs
var a = $('#myList .listItem');
...
For instance if I select a radio button through jQuery code does this fire the onClick event for that particular input?
...