jquery

jQuery Login modal popup for ASP.NET 2.o Page

Dear All, I have an ASP.NET web page(Not MVC ) (HomePage.aspx) and another page (PRiceList.aspx).I have a login feature in my Home page.So when a user logged in the site, They can go to the pricelist.aspx page easily using a link in homepage.If some one is entering the page with out logging in , I want to show a modal login box (backgro...

jquery form validation with two validation messages.

Client side form validation becomes easiest by using jQuery. I tried all validators and they are so simple! But in date, number and range validators; I need to add two validators in sequence 1) Required 2) Date so is it possible. Another common requirement is to reset the Form Fiels. Is is possible using jQuery without writing too ...

Jquery: draggable clone

Hello. When I make a draggable clone and drop it in a droppable I cannot drag it again. How do I do that. Secondly I can only figure out how to us .append to add the clone to the droppable. But then it snap to the top most left corner after any exsisting element and not the drop position. $(document).ready(function() { $("#containe...

Creating a div element in JQuery

Hi, How to create a div element in JQuery?? ...

How to load a js file with javascript

I want to get over a nasty problem that shows up yesterday during a demo to a client. We're using jquery, loading it from google api. But yesterday, our ISP begin to cause some problems, and didn't load jq.js properly. So, what I really want is to load a local file from the server if google api has an extrange behaviour (not that it's ...

How do i limit the amount of LI in using jquery

I'm using the Jquery UI to develop a drag and drop favourites UI, i want to limit the amount of LI's (limited to 5) dropped in a specific region, and replace current ones if a user drop one over the other. How can this be done? I'm currently using a modified version of the photomanager on the jquery ui site. ...

Checking for http authorization in mvc before ajax form post

In building a content management system that incorporates jquery ajax into it's GUI I have come across a hurdle. It seems that some customers spend too long thinking about what they are going to write and therefore the server session logs them out, naturally being the web they have no idea about this. When they attempt to submit the chan...

Combining and Compressing multiple JavaScript files in php

Hello, I am working on a PHP app that requires eight javascript files (hello web2.0). I am wondering what the best way combine and compress all of the files dynamically. Am I phrasing the question correctly? The end result is that I would include one .js file in the header, and that .js file would include of the .js files in my "incl...

Submit jQuery UI dialog on <Enter>

I have a jQuery UI dialog box with a form. I would like to simulate a click on one of the dialog's buttons so you don't have to use the mouse or tab over to it. In other words, I want it to act like a regular GUI dialog box where simulates hitting the "OK" button. I assume this might be a simple option with the dialog, but I can't fin...

Ajax - How refresh <DIV> after submit

Hi, How refresh part of page ("DIV") after my application release a submit? I'm use JQuery with plugin ajaxForm. I set my target with "divResult", but the page repeat your content inside the "divResult". Sources: $(document).ready(function() { $("#formSearch").submit(function() { var options = { ...

Binding function to multiple elements with Jquery

Hi, I have this small problem with jquery: I need to do something like this: $(document).ready(function(){ links = {}; links.a = "Link a"; links.b = "Link b"; links.c = "Link c"; for (x in links){ $("#" + x).css("border","1px solid #000"); $("#" + x).click(function(){ alert(x); }); } }); </s...

Getting ASP.NET Cookieless Sessions and JQuery AJAX to play together nicely

I have a web site that uses JQuery AJAX. With this JQuery code $.post("/ajax/getsomedata.aspx", {'id': id }, function(data) { dosomething(data); } ); When I run this with cookieless="false", id shows up in Request.Form. When I set cookieless="true", id is no longer in Request.Form. UPDATE, What I did I added...

Does the jquery load method provide ajax functionality equivalent to the Rails replace_html method?

The jquery load method loads HTML from a remote file and injects it into the DOM. For example, to load the feeds.html file into the div with the ID of feeds, you would do this: $("#feeds").load("feeds.html"); Is this an alternative to calling a partial with the Rails replace_html method or is the functionality slightly different? pag...

jquery dialog with rounded corners

Hi, I am having trouble implementing this, I have tried several variations of the corner() function from jquery.corner.js. Can someone please paste a sample of what the code would look like, and where it should reside, in the page which is calling the dialog or the dialog itself? Thanks, Natasha ...

JQUERY find top parent and get divs in it except this

Hi, 1) when i clicked to any checkbox, a) i want to select radio in the same div b) unselect the other radios with their checkboxes. 2) When i click to radio, a) select all checkboxes in the same div. b) uncheck the other radios 3) is there any way to get parents without its first parent div? How can i do that? <div cl...

need help making tabs to be used by jquery tabs plugin

I am completely new to CSS and can not get around making tabs. We currently have tabs like this However, these tabs are made using a bad looking <table> tag Below is the code that produced the image in above link <table name="incomesummarytable" cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td colspan="4"> ...

Passing Parameters to jQuery Delete Button Click EventHandler

I have the following jQuery $('#btnDelete').click( function() {//Do the delete here via jquery post}); In my table I have numerous rows with the following <a id="btnDelete">Delete</a> How I do I pass parameters to the click event to post an ID to delete something ...

Change dropdownlist CSS when clicked or hover ?

Hi! Inspired by http://stackoverflow.com/questions/624102/enable-a-currently-disabled-dropdown-list-when-clicking-the-dropdown-list I tried something and I added some grey background to disabled selection. The problem is that when I click on some selection (which radio button was disabled) the background of the dropdown list remains gr...

how to set radio option checked onload with jQuery

How to set radio option checked onload with jQuery? Need to check if no default is set and then set a default ...

Forcing page content to change through Javascript

I'd like to show some visual progress to a user during an ajax request. E.g when he clicks a 'process' button which makes an AJAX request to a server-side script, he will see a 'loading...' message and a graphic, but I also want to show him some progress of how much processing is done. E.g 5/10 processed, 6/10 processed... and so on. Is...