jquery

jQuery Popup Window Return Value to Parent

How can I accomplish the following using jQuery: Open a popup window that returns a value to the parent window when a link in the child window is clicked, close the child window, and then have the parent automatically submit a form based on the value returned? I realize that the jQuery Dialog is a popular solution, but I require a popu...

jquery modal dialog onclick?

Hello. I want this: http://jqueryui.com/demos/dialog/#modal-message to happend when you click on ClickMe. how to do this? <script type="text/javascript"> $(document).ready(function() { $('div.thedialog').dialog({ autoOpen: false }) $('#thelink').click(function(){ $('div.thedialog').dialog('open'); }); } </script> </head> <body> ...

Scolling list with jQuery

My javascript is not up to scratch at the moment and I am stumped with this! I need to create an animated list with javascript like this one - http://www.fiveminuteargument.com/blog/scrolling-list. What I want is to take a list like so <ul> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> <li>Item 4</li> <li>Item 5...

Use jQuery for find text box in ASP.NET page

I have <asp:TextBox runat="server" ID="lastName" /> on a page and I want to set focus it with jQuery but it is not returning it. My code is like this: $.ready() { var tb = $('lastName').focus(); // don't work, why? } ...

Choosing a W3C valid DOCTYPE and charset combination?

I have a homepage with the following: <DOCTYPE html> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> My choice of the DOCTYPE "html" is based on a recommendation for html pages using jQuery. My choice of charset=utf=8 is based on a recommendation to make my pages readable on most browsers. But these choices may ...

Cannot confirm that element exists on the page when I clearly see it there.

I'm using a function which utilizes jQuery in order to grab information from a JSON feed. The problem here is that from the feed I must pick 10 items that meet the criteria of being within the last year (31 billion milliseconds from the request for argument's sake) and I have to specify how many results I want from the feed with a varia...

How to call a jquery validation function outside of form

Hi guys! So I have a validation script I made a while ago. I can pass the script "this" as the form identifier to get it going on the right element (with(this)). But what if I want to call this validation function from a place other than the form itself, let's say, in an another request that wants to know if the form is valid? functi...

passing a formatted date with jquery datepicker

Hi all, I'm using the jQuery Datepicker (http://keith-wood.name/datepick.html) with custom date range. My problem is that I need the output of the date for the user to be in a readable format such as dd/mm/yyyy but then take that date and pass it into a search form as yyyymmdd. $(function() { $('#startDatepicker,#endDatepicker').datep...

Dynamically generate the content of Drop Down list via jQuery

I am new to Javascript, JSON and jQuery. So please be easy on me. I have a JSP page that contain a drop down list. The contents of the drop down list are populated when the page is loaded. I wrote a Servlet that return the contain of the drop down list in the form of Map, and convert it to JSON string and sent back to the jsp via respons...

Alternative to onChange or onBlur in jQuery dropdownchecklist control

Currently using the jquery dropdownchecklist found here: http://dropdown-check-list.googlecode.com/svn/trunk/src/demo.html I'm doing some pretty heavy processing of a large quantity of data on the client with a number of dropdownlists. Essentially, and put very simply, as each dropdown changes the data in each is filtered. I'm using the...

jquery meio mask with asp.net textbox

I'm trying to use jquery meio mask with asp.net page. it is working ok with input text box but I do not know how to use it it with asp.net text box. when I run my code the html text box is only working. please advice? http://www.meiocodigo.com/projects/meiomask/ here is my code: .......................................... <asp:Cont...

Onchange event using selecttouislider

I am referring to http://www.filamentgroup.com/lab/update_jquery_ui_slider_from_a_select_element_now_with_aria_support and having hard time retrieving the selected value on the slider. Initially I was having a dropdown which had an onchange event associated with it.. and worked like a charm by calling <select id="myselect" onchange...

Using jQuery and the Ajax method call, how do you query CraigsList

I was playing around with this earlier and failed to query craigslist for a page successfully. I would like to return the page from: http://sfbay.craigslist.org/art/ using an ajax call, parse the html and process the results. For the purposes of this question, I am only interested in completing the query and retrieving the html. ...

How to set popup position?

I work on Asp.Net vs08 C# .I want to show popup ** Bottom** of the button .Not on center of page.Here is my syntax . Aspx code: <input id="Button3" type="button" value="Open 1" /> Jquery: <script type="text/javascript"> $(function() { $("#Popup").dialog({ bgiframe: true, autoOpen: false, height:...

jQuery Cycle Plugin: Multiple Pagers for different galleries on same page

Hi guys, I've got a single page which has multiple instances of a thumbnail 'cycle' gallery. Problem is though, the Paging system gets all messed up (it's adding all in one or something). It's probably something very simple for you guys, but this is what I've got: $(function(){ $('div.gallery') .before('<div class="imgSelect">') .each...

Testing jQuery change event using Watij

I have a select list where a change event has been bound to the element using jQuery. Something like this: $("#someId").change(function() {..}); When someone chooses a new option in the select list, another part of the UI will change accordingly. Now this works fine when I use the mouse and click things, however, when using Watij to...

Save a reference to a particular selector

Ok, what I am after is quite simple. I have click handler for multiple radio group sets. Inside the handler I am passing some parameters to a functions parameters references are relative to the group set but their path are the same. So I basically have: $(document).ready(function(){ $("input[name='radioGroup1']").click(function(){ ...

JQuery 1.3.2 with jsTree and draggables in IE

Question...I am using jsTree with JQuery 1.3.2, and have run into an issue when viewing my page in IE8. I have added a jsTree control to my page, and have also used the Draggable behavior from jQueryUI 1.7.2 in an attempt to allow the user to drag a tree entry (leaf node) to another control. I'm not using the draggable feature of jsTre...

Jquery bbq php implementation

Hi, I just finished implementing the history plugin for URL back button functionality and now find out that it doesnt work with IE (great!?#) I wrote this post to explain the problems i was having post So, next up is to try and implement the BBQ jquery plugin which does the same thing, but I cannot find any simple examples of how to im...

Jquery Validation Any one of the fields mandatory

Using the Jquery validation plugin, I was curious to know if there is some sort of in-built functionality to have a "one of the two" is mandatory check. e.g: Email or mobile number is mandatory? ...