(Citing source at: http://jqueryui.com/demos/dialog/#modal-form)
As an example, this works great but each time the form is subsequently opened the user entered values remain. How can I stop this behavior? (the form will be used multiple times on the same page.
<style type="text/css">
body { font-size: 62.5%; }
label...
The problem that I am having is that when the user opens the calendar to the jquery datepicker, and they change the year. If they then change the month, it will revert the year to what it was before.
The problem seems to be with my custom validator methods, if I remove them, then everything works again.
Here is some simplified code th...
I've been searching all over the place and just don't see anyone doing it - Is it possible to have some kind of spinner/loader with a jQuery UI Autocomplete? (1.8) while data is being fetched?
...
In a jquery modal dialog, is there a way to select a button as the default action (action to execute when the user presses enter)?
Example of jquery web site:
jquery dialog modal message
In the example above the dialog closes when the user presses Esc. I would like the "Ok" button action to be called when the user presses Enter.
...
I have a div element which is made jquery Resizable. It has alsoResize option set, so other elements resize simultaneously.
What I want to do, is to set size of this Resizable div element programmatically in such way, that all Resizable logic is triggered (especially this alsoResize option is taken into account).
How can I achieve that...
I would like to create a custom version of the sortable widget. I have been searching for documentation, but could not find something really accurate. The best information I found was : http://jqueryui.pbworks.com/Widget-factory.
I tried :
$.widget("ui.customsortable", $.extend($.ui.sortable, {
_init: function() {
$.widget.protot...
Is it possible to add icons to the buttons on a jQuery UI Dialog? I've tried doing it this way:
$("#DeleteDialog").dialog({
resizable: false,
height:150,
modal: true,
buttons: {
'Delete': function() {
/* Do stuff */
$(this).dialog('close');
},
Cancel: function() {
...
Hi all,
I'm trying to use the following code at my FF extension with no success:
$('#duck').position({
of: '#zebra',
my: "left top",
at: "left top"
});
(the Position manual is at http://docs.jquery.com/UI/Position)
I also tried:
var doc = gBrowser.selectedBrowser.contentDocument;
$('#duck', doc).position({
of: $('#z...
I'm a bit of a n00b with jquery so this one is probably an RTFM question:
I'm writing an application to create a somewhat complex record for my client. Building the record requires doing a couple of server side searches inside a dialog.
Right now I have everything framed up in 1 file (asp.net) and it's ok. But I can see as I add th...
$(".sectionHeader").click(function() {
var row = $(this).parent();
while (row.next().length != 0) {
row = row.next();
if (row.children().first().is('th')) return;
row.toggle();
}
});
...
Since I updated jQueryUI to 1.8 I found a couple of issues in our implementations and I could fix it myself without waiting for a fix on their end if I could find out how to subclass a specific method of the datepicker widget so I call the parent code and then execute my code.
I was reading on $.widget but I just can't wrap my head arou...
I'm trying to use JQuery UI Accordion as a menu, but I can't figure out how to prevent some tabs from expanding.
My JS:
$("#sidebar").accordion({
collapsible: true,
changestart: function(event, ui) {
switch ($(ui.newHeader).attr("id")) {
case "sidebar_grades":
return false;
break;
...
Using jquery UI 1.8's autocomplete, is there any known way to take the results and return them to a different div element on the page, or to customize how they look upon return? I want to have the results show up in a list that can be interacted with, essentially.
...
The team talks about one new effect released in jQUery UI 1.8. Which one is that and where can i read?
...
I've set up a jQuery sortable list but I need to be able to keep some items in the sortable 'fixed' in place and for the other items to sort around them. I thought that there would be built in methods to achieve this, alas this is not the case.
I'm able to set up the list and not include the items in question:
<ul id="fruit">
<li c...
Hi
I'm trying to create a bookmarklet which will use the jquery-ui - what steps must I take to do this? My bookmarklet loads a remote script and appends it to the page. This script includes jquery and jquery-ui, but getting the stylesheets and images is turning into a nightmare. Do I have to edit all the CSS to point images to their loc...
I'm working on my first very complex JQuery based application.
A single web page can contain hundreds of JQuery related code for example to JQueryUI dialogs.
Now I want to organize code in separated files.
For example I'm moving all initialization dialogs code $("#dialog-xxx").dialog({...}) in separated files and due to reuse I wrap t...
Hi,
I know how to move up and down an element in jQuery.
$("#div").animate({"left": "+=100"}, 1000); //move 100px to the right
But I have no idea to move in diagonal movement. I'm doing chess board and I don't know how to move Bishop with effect. Please have a look at following URL http://chess.diem-project.org/
I did like this... bu...
Hi! I'm doing a chess game. In there, I want to move an element with effect and then append it to new div. Following is my code.
//--> #p70 is just ablove #p80
//--> each square is 64px
$('#p80').animate({bottom:'+=64px'},500); //--> move one square above
$('#b70').append($('#p80')); //--> append the animated element to...
I want to use a autocomplete combobox http://jqueryui.com/demos/autocomplete/#combobox within a modal dialog. However whenever I click on the down arrow (of the combobox) it causes a refresh that results in my modal window closing.
How do I stop the refresh from occuring? (I am still new to jQuery)
I am using UI 1.8 and jQuery 1.4....