jquery

How do I allow the user to move an absolutely positioned div?

I am using jQuery to create a "dialog" that should show up in the center of the page on top of everything and should remain centered at all times unless the user moves it. It has a header area (like a title bar) and I would like the user to be able to click there and drag the dialog "window" around. It is an absolutely positioned div. W...

How to smooth slide up to fit content height after a slide down in jQuery?

Hi all. I have a question that I'm not too sure about. Here is my scenario. I have a series of list items with links. Whenever a link is clicked, it inserts a "loading" image into a span and slides that down. After some operation is complete, the "loading" image is removed, and the content is put into place. The problem isn't with ...

JQuery JFlow - slideshow - cannot move 'left' 'right' buttons

I use JQuery to show N pictures in slide. So I put everything as needed, have to define two left/right links so user can scroll pictures. Problem is that JQuery engine automatically put those two on lower left and right corner of web page. Is there a way to tell JQuery not to do that, so I can position them where needed? How it looks...

jQuery Ajax - Callback

Im making an ajax login form. When a user logs in with the wrong password login.php will return "Incorrect password". But javascript doesn't seem to be picking it up. $('#login_btn').click(function(){ var username = $('#login_username').val(); var password = $('#login_password').val(); $.post("login.php", { username: u...

Simple Jquery Dialog but now on click

I tried making a dialog using jquery it works but I have no succes at doing it onclick bacuse it should not just popup but only when you click on it. <script type="text/javascript"> $.ui.dialog.defaults.bgiframe = true; $(function() { $("#dialog").dialog(); }); </script> and <div id="dialog" title="Basic dialog"> <p>hi how a...

How can I assign a property to a jQuery object?

Hi, It is in my understanding that referencing any DOM element in jQuery via the dollar sign (like this: $("#mydiv")), returns an object. I am looking to add an additional property to an object as such: $("#mydiv").myprop = "some value"; but this does not seem to work. I am trying to store a value in this object so I can reference it...

How to include two attributes with jQuery

I am new to javascript in general and pretty much have no idea what is going on. Sorry for the super noobie question. I have an accordion being started with the following code: $(function(){ $("#accordion").accordion({header: "h3"}); }); But I have no idea where to include autoHeight: false Any general javascript beginner's guide...

How to solve/hack fading semi-transparent PNG bug in IE8?

As you know, IE6 has bug that can't display semi-transparent PNG file without using non-standard style like filter. In IE7, this problem is fixed. But It still has some bug about PNG file. It can't correctly display fading semi-transparent PNG file. You can clearly see it when you use show/hide function in jQuery with semi-transparent PN...

Ajax/JQuery/JSON Forms

Hi all, I've got a form which I need to post the information to an external site, but for some reason I'm getting an error: Error: [Exception... "Access to restricted URI denied" code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)" location: "jquery.core.1-3-2.min.js Line: 19"] Source File: jquery.core.1-3-2.min.js ...

How to use Sys.Services.AuthenticationService works and what could prevent it from working

Hi, My website uses Sys.Services.AuthenticationService in order to do an ajax style login. Right now it's contained within $(document).ready(function() { }); here's the very beginning of the javascript code... (You can read the full implementation here) alert("1"); var ssa = Sys.Services.AuthenticationService; alert("2"); The fir...

How to add new div tag when check box is checked using jquery

how to add new div tag next to check box when check box is checked and also when two check box is checked the two div tag must to be display. please help and make me to solve this module using jquery ...

jQuery Chain Jumping?

jQuery is pretty much a big selector transversing engine with useful stuff hung on it. With all that power I can't believe there is not a way to jump around a chain. Therefore I'm assuming I am ignorant in the manner of accomplishing this. I want to be able to fork a chain in order to make a modification, and then return to the root cha...

iPhoto-like image resizing using jQuery

Here is the effect that I need: http://www.agilepartners.com/blog/2005/12/07/iphoto-image-resizing-using-javascript/ Is there any jQuery plugin doing the same thing? ...

Writing conditional rule using jQuery validation

Hi I have a simple modal popup which has 3 name fields and 3 e mail fields adjacent to each other. I am new to jQuery so can any one please help me how to write a logic for the following case? The first name field and Email field are mandatory so I kept the class as required fields but the other two name and e-mail fields are optional b...

jQuery plugin public method/function

Hello, I am trying to achieve something like the following but dont know whats wrong: $.a = function() { // some logic here function abc(id) { alert('test'+id); } } $.a.abc('1'); I tried using the return function, but that doesnt seem to work either. Can someone please help. Thank you for your time. ...

How to use jQuery to read/write the values of an elements externally defined css class?

I have a div in an html file defined as follows: <div id="rangeTabAll"></div> In an externally defined style sheet I define the following style. #rangeTabAll{ top:45px; left:124px; width:186px; height:114px; display:none; background:#ffffff url(../images/rangetab0.jpg) no-repeat; } How do i read/write the ba...

how to skip one label having same class name of other in jquery

How to skip one label having same class name of other in jquery <label for="myCb1">test1</label> <label for="myCb1">test</label> <input type="checkbox" id="myCb1" value="1" /> when i try to invoke the label of myCb1 both are display so please help how to skip one label using jquery ...

add eventhandler to jquery UI datepicker after its creation

I have the following scenario: In my masterpage I have: $(".datepicker").datepicker({ changeYear: true, changeMonth: true, dateFormat: "dd/mm/yy", duration: 'fast' }); With this, every input field that I assign the class "datepicker" to, shows the jquery UI datepicker when clicked. Now I have a datepicker on a page t...

how to use if rule in jquery

Hi I have a simple modal popup which has 3 name fields and 3 e mail fields adjacent to each other. I am new to jQuery so can any one please help me how to write a logic for the following case? The first name field and Email field are mandatory so I kept the class as required fields but the other two name and e-mail fields are optional b...

How to make a modal confirmation dialog before submitting a form?

Hi all, I am a beginner in web/javascript programming and wonder if anyone can give me a kick start simple example of a modal confirm dialog just before a form with multiple submit buttons being submitted using a pre-defined button? I stumbled upon jQuery and SimpleModal and wonder if it would fit my ASP MVC project. I ended up in the f...