I'm assuming you are submitting via $.ajax() .post. I ran into this
same problem, even using dialog('destroy'). What I found is, you do
destory the dialog, yet the form seems to remain in memory resulting
in two of the same forms submitting. I spent 3 days trying to figure
this out but here is the
Thanks Richard,
Too simple.
On Dec 22, 12:13 pm, "Richard D. Worth" wrote:
> .ui-dialog .ui-dialog-buttonpane { text-align: center; }
> .ui-dialog .ui-dialog-buttonpane button { float: none; }
>
> - Richard
>
>
>
> On Tue, Dec 22, 2009 at 1:44 PM, RobGMiller wrote:
> > What is the easiest way t
Then i think the problem is unique fields.
Thanks for your reply!
On 14 dec, 14:47, MorningZ wrote:
> > "For some reason he rembers the old data"
>
> It's not remembering anything, it's simply reading the values
> again... after you do your save/edit/whatever, use ".val()" and other
> things th
> "For some reason he rembers the old data"
It's not remembering anything, it's simply reading the values
again... after you do your save/edit/whatever, use ".val()" and other
things that set form field values and clear out what is there
Use a global. Makes more sense than my solution. Thanks. I always
forget about globals.
Solved my own problem (again). For anyone else with a similar
question, just add a hidden field to your dialog form:
...
Then, in the click event, add:
$("#id").val(id);
after the dialog('open') line.
The final result is:
var opt = {
autoOpen: false,
modal: true,
b
Example i whipped up quick:
http://jsbin.com/acucu/edit
On Nov 18, 2:05 pm, discern wrote:
> Because I am using the CLASS of the button to open UI Dialog (as
> opposed to the ID), how can I pass it the ID (or any data, for that
> matter)? I need to pass the ID of the button to dialog so I know
Yup
$("#myDiv").dialog("option", { width: newXX, height: newYY });
- Richard
On Thu, May 21, 2009 at 11:46 AM, c.sokun wrote:
>
> cool! I will try that is it possible to call it in just one line?
>
> On May 18, 6:55 pm, "Richard D. Worth" wrote:
> > You can only call .dialog({ width: XX, heig
cool! I will try that is it possible to call it in just one line?
On May 18, 6:55 pm, "Richard D. Worth" wrote:
> You can only call .dialog({ width: XX, height: YY }) once. That's an init.
> After that you can change the width and height by calling dialog's option
> method, specifying the option
You can only call .dialog({ width: XX, height: YY }) once. That's an init.
After that you can change the width and height by calling dialog's option
method, specifying the option you want to change, and the new value:
$("#myDiv").dialog("option", "width", newXX);
$("#myDiv").dailog("option", "heig
On Fri, Apr 3, 2009 at 4:40 AM, ggerri wrote:
>
> Solved! Thanks a lot Richard for your time and help :-)
>
> Would be nice to have two more dialog options title y/n, closer (x) y/
> n in a future release- what do you think?
This has come up before. I'm not convinced it will happen in the dialo
Solved! Thanks a lot Richard for your time and help :-)
Would be nice to have two more dialog options title y/n, closer (x) y/
n in a future release- what do you think?
Take care and regards from sunny Switzerland
Gerald
On Apr 2, 6:08 pm, "Richard D. Worth" wrote:
> You can hide it with css:
thanks Brian, already checked the options, couldnt find this one...
On Apr 2, 5:58 pm, brian wrote:
> http://docs.jquery.com/UI/Dialog#options
>
> On Thu, Apr 2, 2009 at 11:47 AM, ggerri wrote:
>
> > Hi there
>
> > want to show a 'please wait' dialog with UI dialog, but cant figure
> > out how
You can hide it with css:
.ui-dialog-titlebar { display: none; }
If you want to scope it to a specific class of dialogs, rather than all
dialogs, you can combine with the dialogClass option:
http://docs.jquery.com/UI/Dialog#option-dialogClass
.message .ui-dialog-titlebar { display: none; }
...
http://docs.jquery.com/UI/Dialog#options
On Thu, Apr 2, 2009 at 11:47 AM, ggerri wrote:
>
> Hi there
>
> want to show a 'please wait' dialog with UI dialog, but cant figure
> out how to remove the title and the X (close dialog) as the dialog
> should auto-close after the content is loaded...
>
>
Also, which version you are trying to download.
- Richard
On Mon, Feb 9, 2009 at 11:58 AM, Richard D. Worth wrote:
> Can you please provide some more information, such as the steps you're
> taking, the operating system and browser version? Thanks.
>
> - Richard
>
>
> On Mon, Feb 9, 2009 at 7:07
Can you please provide some more information, such as the steps you're
taking, the operating system and browser version? Thanks.
- Richard
On Mon, Feb 9, 2009 at 7:07 AM, rani wrote:
>
> im not able to download the full package of ui dialog.moreover
> while trying to download themes error i
Also will want to compare position of mouse to width of window and if
the difference is less than the width of the dialog then position
tooltip to right, else to the left
Here is the link for the width() property:
http://docs.jquery.com/CSS/width
On Jan 27, 9:45 am, Adam wrote:
> I'd like to op
The position of the mouse is sent as parameter with the click event.
see: http://docs.jquery.com/Tutorials:Mouse_Position
If you want to position the dialog absolute to the link (and not the
mouse pointer) you could use $(link).position to get the position of
your link.
see: http://docs.jquery.co
Also, note: there is a dedicated mailing list for discussion of jQuery UI
plugins[*]:
http://groups.google.com/group/jquery-ui
- Richard
[*] http://rdworth.org/blog/2008/10/jquery-plugins-and-jquery-ui/
On Tue, Jan 6, 2009 at 6:58 AM, Richard D. Worth wrote:
> You could override the draggable
You could override the draggable default before calling .dialog (which in
turn calls .draggable). Like so
$.extend($.ui.draggable.defaults, {
containment: 'window'
});
Also, note that in the latest trunk (after 1.6rc4) dialog has been changed
to default to draggable containment: document. So
[..]
> I made it work by modifying the jQuery UI core, and adding
> containment:'window' as a default option value in _makeDraggable
> method of a dialog widget:
[..]
> however this doesn't really resolve the problem, because it'll be a
> headache if I want to reuse this bundle and have alternativ
This is fixed in current SVN.
On Jul 13, 4:50 pm, Pitrsonek <[EMAIL PROTECTED]> wrote:
> Hi, i have this function:
>
> function showSendMessage(id){
> $('#sendMessage').dialog({modal: true,overlay:{opacity:
> 0.5,background: "black"},title: 'Kontaktovat uživatele'});
> //$('#sendMessage').dialog(
Hi,
Sorry for don´t say the version of IE. The version is 6.
Cheers
On Jul 4, 9:53 pm, "C.Everson" <[EMAIL PROTECTED]> wrote:
> On Fri, 4 Jul 2008 12:18:52 -0700 (PDT), Leandro Vieira Pinho wrote:
> > I´m with problem withUIDialog, and I´m thing it´s abug.
>
> > In thisUIDialog examplehttp://do
On Fri, 4 Jul 2008 12:18:52 -0700 (PDT), Leandro Vieira Pinho wrote:
> I´m with problem with UI Dialog, and I´m thing it´s a bug.
>
> In this UI Dialog example http://docs.jquery.com/UI/Dialog is possible
> to verify.
>
> If you resize the Dialog to right, for example, and then try to resize
>
Okay, I officially feel like an ID10T.
Amazing how important the *^&@^*#$%& tiny details are.
Thanks,
Matt
26 matches
Mail list logo