Re: [jquery-ui] Submit prevented form
2010/1/13 Balázs Suhajda > I would suggest using a hidden input or 2. > Using jquery you can easily set them to be disabled and then they will > not submit. > Thanks for the tip Balázs ! Cyril > > > then you could use > $('[name="somename"]').attr('disabled','') to enable > $('[name="somename"]').attr('disabled','disabled') to disable > > When you call submit() on a form, there is no submit button being > clicked, so it doesn't send submit button values. > > On Wed, Jan 13, 2010 at 3:11 PM, Cyril Lopez > wrote: > > Hi, > > > > In a form, there are 2 inputs (type = submit). I prevented the submit in > > order to use a dialog. > > For example, on the input 1 click event : > > > > $('#mySubmit1').click( > > function (e) { > > e.preventDefault(); // prevent the submit action > > [...] > > $dialog.dialog( > > { > > [...] > > buttons: { > > 'Ok': function() { $(this).dialog('close'); > > $('#mySubmit1').closest('form').submit() }, > > 'Cancel': function() { $(this).dialog('destroy'); } > > } > > } > > ); > > } > > ); > > > > If I click submit input 1, I'd like dialog submits my form with input 1. > > If I click submit input 2, I'd like dialog submits my form with input 2 > > (input 1 must not be posted) > > > > In my example code, no one input (type = submit) is posted. > > Is there a way to post the value of the clicked submit input ? > > Many thanks. > > > > Cyril > > > > > > -- > > You received this message because you are subscribed to the Google Groups > > "jQuery UI" group. > > To post to this group, send email to jquery...@googlegroups.com. > > To unsubscribe from this group, send email to > > jquery-ui+unsubscr...@googlegroups.com > . > > For more options, visit this group at > > http://groups.google.com/group/jquery-ui?hl=en. > > > > > > > > -- > Best regards, > Balázs Suhajda > > -- > You received this message because you are subscribed to the Google Groups > "jQuery UI" group. > To post to this group, send email to jquery...@googlegroups.com. > To unsubscribe from this group, send email to > jquery-ui+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/jquery-ui?hl=en. > > > > -- You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery...@googlegroups.com. To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en.
[jquery-ui] Submit prevented form
Hi, In a form, there are 2 inputs (type = submit). I prevented the submit in order to use a dialog. For example, on the input 1 click event : $('#mySubmit1').click( function (e) { e.preventDefault(); // prevent the submit action [...] $dialog.dialog( { [...] buttons: { 'Ok': function() { $(this).dialog('close'); $('#mySubmit1').closest('form').submit() }, 'Cancel': function() { $(this).dialog('destroy'); } } } ); } ); If I click submit input 1, I'd like dialog submits my form with input 1. If I click submit input 2, I'd like dialog submits my form with input 2 (input 1 must not be posted) In my example code, no one input (type = submit) is posted. Is there a way to post the value of the clicked submit input ? Many thanks. Cyril -- You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery...@googlegroups.com. To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en.
Re: [jquery-ui] Re: Sortable - Nested lists problem
2009/10/28 Mean Mike > ohh and I used this too ! > > http://www.b-hind.eu/jquery/ > > hope this helps you > Thanks for your feedback. We'll use it for now. I'd would rather use UI core... I hope in v1.8. Cyril, Nethik -- You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery...@googlegroups.com. To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en.
Re: [jquery-ui] Re: Sortable bug in IE? Any solution
2009/10/29 Titkov Anton > I'm think tah bug connect with that bug > http://dev.jqueryui.com/ticket/4333 > Exactly ! There are few patches on that page. Haven't tested. Milestone : 1.8... -- You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery...@googlegroups.com. To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en.
Re: [jquery-ui] Re: Sortable bug in IE? Any solution
2009/10/20 Tobias Herrmann > > Hi, > > in your example a sub element is also part of a parent. So in IE sorting > a sub element also causes the parent to be sorted. You can avoid this > problem by defining a handle at least on the parent list. You may put > text and link of the parent li into a span and use the option 'handle': > '> span'. > > Greetings, T > Thanks for your response Tobias. Maybe it works with ul>li but not for me. My html : Move Img Move container My handle is '.movTool' and the drag action messes up in IE. Thanks for any help -- Cyril, Nethik > > Cyril Lopez schrieb: > > 2009/10/19 Blunk mailto:djbl...@gmail.com>> > > > > > > Hi everyone, im need some help here with IE compatibility. > > I have a small script that uses sortable jquery ui to sort two > > different UL. > > It works perfectly on Firefox/Safari/Chrome but on IE when you move a > > sub li the "animation" messes up. > > If anyone could take a look at it and tell me if there is any > > solution. > > > > The demo is here: http://blunk.com.ar/dev/sort/ > > Add a Parent with the link, then two or more Subs and try to sort > > those. > > > > Thanks > > > > > > I was about to post this issue. I have exactly the same problem on IE > > 7/8 (6?). > > If anyone knows how to fix it... > > > > Cyril, Nethik > > > > > > > > > --~--~-~--~~~---~--~~ > You received this message because you are subscribed to the Google Groups > "jQuery UI" group. > To post to this group, send email to jquery-ui@googlegroups.com > To unsubscribe from this group, send email to > jquery-ui+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/jquery-ui?hl=en > -~--~~~~--~~--~--~--- > > -- You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery...@googlegroups.com. To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en.
[jquery-ui] Sortable - Nested lists problem
Hi, I'm using sortable() function in order to arrange nested lists. My html : Item 1 Item 2 Item 3 Item 4 My js : $('.parents').sortable( { items: '>li', handle: 'span.anchor', connectWith: '.parents', dropOnEmpty:true, helper:'clone', placeholder: 'holder', delay:0, opacity: 0.4, forcePlaceholderSize:true, update: function(event, ui) { $.post('myUrl.html',$(this). sortable('serialize',{ key: 'positions[]' })); } } ); - When I drag child_4 to parent_0 I have 2 serialized posts, great. - When I drag child_2 to parent_2 I have 3 serialized post, the root ul, and the two others ul which receives or removes elements. - The problem : when I drag child_1 to parent_2 (as child_4 sibling) I have only 1 serialized post, the root ul. But I want parent_2 serialization too ! After hours on Google search I found several plugins like : - http://www.b-hind.eu/jquery/index.php - http://code.google.com/p/nestedsortables/wiki/NestedSortableDocumentation - http://code.google.com/p/nestedsortables/ Does it means my need is impossible with UI sortable/serialize functions ? Thanks for any help -- Cyril, Nethik --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery-ui@googlegroups.com To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~--~~~~--~~--~--~---
[jquery-ui] Re: sortable serialize
2009/10/18 wings > > take a look at this: > http://stackoverflow.com/questions/187073/jquery-sortables > > On Oct 8, 1:55 pm, Bert wrote: > > jQuery(".sortable").sortable({ connectWith: ".sortable" }): > > > > Next I want to have some array (in php) like this: > > > > array( > > 'block_1' => array( > > 0 => 1, > > 1 => 2, > > 2 => 3 > > ), > > 'block_2' => array( > > 0 => 4 > > ), > > 'block_3' => array( > > 0 => 5, > > 1 => 6 > > ) > > ) > > > > Try : $('.sortable').sortable( { [...] update: function(event, ui) { $.post('/url.html',$(this).sortable('serialize'), function(data){ [...] }); } } ); Cyril, Nethik --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery-ui@googlegroups.com To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~--~~~~--~~--~--~---
[jquery-ui] Re: Sortable bug in IE? Any solution
2009/10/19 Blunk > > Hi everyone, im need some help here with IE compatibility. > I have a small script that uses sortable jquery ui to sort two > different UL. > It works perfectly on Firefox/Safari/Chrome but on IE when you move a > sub li the "animation" messes up. > If anyone could take a look at it and tell me if there is any > solution. > > The demo is here: http://blunk.com.ar/dev/sort/ > Add a Parent with the link, then two or more Subs and try to sort > those. > > Thanks I was about to post this issue. I have exactly the same problem on IE 7/8 (6?). If anyone knows how to fix it... Cyril, Nethik --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery-ui@googlegroups.com To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~--~~~~--~~--~--~---
[jquery-ui] Re: onChangeMonthYear and inline datepicker
2009/8/19 Richard D. Worth > > On Wed, Aug 19, 2009 at 5:29 AM, Cyril wrote: > >> 2009/8/18 Jörn Zaefferer >> >>> >>> As a workaround, you could set that option after init: >>> >>> $('#options #date').datepicker({ >>> minDate: 0, >>> maxDate: "+2Y", >>> regional: $('html').attr('lang'), >>> changeMonth: true, >>> changeYear: true, >>> showOtherMonths: true, >>> hideIfNoPrevNext: true, >>> dateFormat: 'yy-mm-dd', >>> defaultDate: new Date($('ul.events li:first span.date').attr >>> ('title')), >>> beforeShowDay: highlightEventDates, >>> onSelect: showEventsOnDate >>> }).datepicker("option", { onChangeMonthYear: showEventsFromMonth }); >>> >> >> >> Hello, >> Why your regional option isn't in the doc ( >> http://jqueryui.com/demos/datepicker/) ? >> > > It looks like we have a demo that shows it > > http://jqueryui.com/demos/datepicker/#localization > > but it's not documented otherwise. Thanks for pointing this out. Ticket > created: > > http://dev.jqueryui.com/ticket/4790 > > - Richard > Thanks for your response Richard. -- Lopez Cyril - Nethik http://www.nethik.fr http://www.blogalwarming.com http://www.libratoi.net --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery-ui@googlegroups.com To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~--~~~~--~~--~--~---