i am working on an mvc page that allows users to securely logon via a colorbox modal window. the modal is layed out something like this:
<html>
<body>
<div id="overlay" style="display: block;" class="overlay"> <div>
<div id="colorbox" style="display: block;">
<iframe id="logonIFRAME">
logon form is in this ...
Check if zip is 5 digit number, if not then display 'zip is invalid'. I want to use onBlur event to trigger the display. But it's not working.
<script>
$(function(){
function valid_zip()
{
var pat=/^[0-9]{5}$/;
if ( !pat.test( $('#zip').val() ) )
{$('#zip').after('<p>zip is invalid</p>');}
}
})
</script>
zip (US on...
Can we rotate div using jQuery?
I can rotate image but can't rotate div?
Any solution for that?
...
Hi Guys,
I'm having a problem with the following situation.
I have an ascx which contains a submit button for a search criteria and I am trying to call a validation function in a js file I've used throughout the site (this is the first time I'm using it in an ascx).
Now I've just tried this:
<script type="text/javascript" src="js/jqu...
I want to get month and year value from label. How can i get these using jquery?
<label year="2010" month="6" id="current Month"> June 2010</label>
...
Hi, I'm using the Flowplayer.org Tooltips and I'd like it to disappear after 4 seconds.
Here's the code for it, can anyone help?
$("#search").tooltip({ offset: [45, 170], effect: 'slide' });
Thanks :)
...
$(document).ready(function(){
$('img').click(function(){
var class = $("img").attr("class");
console.log(class);
});
});
Back with another question. I have 3 images each with a different class (image1, image2, image3). If i run the code above the log will only show the class of the first image no...
I have script:
http://jsfiddle.net/NV2uV/
It works, but I do not like.
Cons:
Wrench (edge blocks).
In the transition from one unit to another - animation is performed in two steps (I want a continuous animation).
Script code is not beautiful, very much repetition.
In short - it looks not nice.
How to improve the script to look at...
I have to get all the image tags ids inside a particular div. How can I get that using JQuery?
...
Hi ,
I have an image on which "click to edit" is written now when i click that part i want to show edit box where "Type 1" is written.
I have tried to put edit box but unable to get the click event ...
here is the image
http://www.freeimagehosting.net/image.php?55dd1b316d.png
...
I'm using PHP to json encode a massive multi-dimensional array of events, so i get something like this:
var ents = {"7":{"event_id":"7","nn":"The Whisky Drifters","nn_url":"the-whisky-drifters","venue":"The Grain Barge","date_num":"2010-06-11","date_txt":"Friday 11th June","gig_club":"1","sd":"A New Acoustic String Band...","ven_id":"44...
I have developed a small script with some logic to check to see if an ASP.Net forms values have been updated since page load so that I can display a "You have unsaved changes" type message to the user if they attempt to close the browser window or more to another tab within the browser window.
The only control that I have not been abl...
I am wondering if it is OK to use multiple javascript frameworks for example (jQuery, Raphael) in the same script (handling event & ajax with jQuery and drawing with Raphael) ?
...
I am trying to execute a method in ASP.NET from Jquery
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "MyMessages.aspx?id=66&epslanguage=sv/test",
data: "{}",
dataType: "json",
error: function(xhr, err) {
alert("readyState: " + xhr.readyState + "\nstatu...
I'm working on some kind of gallery. Found cool ready solution but i want to make some modifications, and i'm stuck.
http://www.rareclips.ayz.pl/test/
How i want this to work:
When you click on and image it should change the image on the right and make one of hidden div's visible.
The problem is that i have to hide all the divs on pag...
I have 4 mysql tables and have a single query with JOIN on multiple tables and I am requesting it via jquery ajax, but it takes much too long, from about 1-3 minutes while I want to execute them on average 2-5 seconds.
Is there any special way to execute the queries fast?
...
Hi,
I have to read a file from server side . Obtained its contents stored it in a list and sent it to template
Now, My question is how to access this list so as to display the contents of files line by line .
I am using ajax and jquery to obtain the data on client side
def showfiledata(request):
f = open("/home/tazim/webexam...
Hello All,
The problem I am facing with below code is that whenever I try to select any option from the select box, the mouseout event executed (in IE, Mozilla doing gr8) and option disappear. How can one get over this bug.
<select name="ed" id="ed" dir="ltr" style="width:200px;overflow:hidden;" onMouseOver="this.style.width='auto'" o...
Im using the following function to hide a series of forms on a page:
$('.ask').toggle(function() {
$(this).text('-').next('.addtitle').slideDown('fast');
}, function() {
$(this).text('+').next('.addtitle').slideUp('fast');
});
There can be anything from 0 to 5 forms on the page all with the class .ask
What I want to b...
in jquery accordion control I am displaying one image along with description.but description is coming below the image.I want to display inline with the image.
my code-
<div>
<p>
<!-- avatar -->
<img src="images/manage.jpg" alt="" />
<!-- /av...