Re: [jquery-ui] DatePicker restrict certain days?

2010-01-13 Thread Gus Waddell
Hi,

You can use the 'beforeShowDay' option of the datepicker to restrict any day
or day of the week based upon the result of a function.

So - to not allow selection of Sundays try this:

$('#noSundays').datepicker(
{
beforeShowDay: function(date){
 if (date.getDay() == 0){
return [false,''];
} else {
 return [true, ''];
}
}
 }
);

Cheers,
Gus




On Thu, Jan 14, 2010 at 12:50 PM, dustingtaylor wrote:

> Is there anyway to restrict certain days from being picked... for
> example, not allowing Sunday's to be picked?
>
> --
> 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] How to override selectable event handler?

2010-01-13 Thread Maxi326
If you click on one item of a selectable, it will exclude previously
selected items.
But I need to keep them, so I have to override this behavior and other
events too.

I am going to try adding my own event handler and use
event.stopPropagation() to try stopping the default.

sorry, I am a noob, please help me if you know how to override.
-- 
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] can't simulate a tab keydown using jquery.simulate.js : (

2010-01-13 Thread Leeoniya
not sure if i am doing this right, but it doesnt seem to work:

$("#fname").simulate("keydown", {keyCode: 9});

firebug shows the simulated keydown event identical to a real one in
every way. but the cursor does not move to the next tabindex field. am
i missing something?

thanks,
Leon
-- 
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] UI Dialog with embedded iframe - only load once?

2010-01-13 Thread pembo13
I am using the UI Dialog with an  within it, the problem is
that the  gets reloaded every time i ('open') the dialog, even
though i only set the .src the first time. That is every time
i do dialog.('open') the iframe gets loaded, I want it to only load
the iframe on the first ('open') invocation.
-- 
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] DatePicker restrict certain days?

2010-01-13 Thread dustingtaylor
Is there anyway to restrict certain days from being picked... for
example, not allowing Sunday's to be picked?
-- 
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] Re: Droppable: how to work it in a dynamic table?

2010-01-13 Thread Dr Funkenstein
I got it! I wasn't passing the ui as a parameter to the drop function
which is why the call to ui.draggable was failing.

On Jan 13, 3:04 pm, Dr Funkenstein  wrote:
> Actually seems like using $(this).text() gets me the data in the
> destination row but I'd ideally want to know its Id. I've tried using
> ui.draggable.text() to get the content of the dragging row but it
> doesn't seem to work.
>
> On Jan 13, 2:53 pm, Dr Funkenstein  wrote:
>
> > I have another question on the same topic. How can I retrieve the data
> > in the draggred row once it's dropped into adroppablerow? Similarly
> > how can I know which row with what data was it dropped into?
>
> > Thanks!
>
> > On Jan 12, 5:05 pm, "Richard D. Worth"  wrote:
>
> > > See
>
> > >http://api.jquery.com/category/selectors/
>
> > > specifically
>
> > >http://api.jquery.com/class-selector/
>
> > > - Richard
>
> > > On Tue, Jan 12, 2010 at 7:34 PM, Dr Funkenstein  wrote:
> > > > Thanks Jorn. How would I set the class as the selector? I'm very new
> > > > to jQuery so pardon my illiteracy.
>
> > > > On Jan 12, 6:34 am, Jörn Zaefferer 
> > > > wrote:
> > > > > Ids must be unique. Try using a class on each element and specifying 
> > > > > that
> > > > as
> > > > > the selector. With multiple IDs, you'll select just the first one.
>
> > > > > Jörn
>
> > > > > On Fri, Jan 8, 2010 at 9:30 PM, Dr Funkenstein  wrote:
> > > > > > Hi,
>
> > > > > > I have a JavaScript script that creates atabledynamically and
> > > > > > inserts thedroppablediv into each row (with id="droppable"). The
> > > > > > problem is, the draggable item invokes the drop event ONLY on the
> > > > > > first occurance of thedroppable(in the first row of thetable). How
> > > > > > can I make it so that alldroppabledivs accept the drop event?
>
> > > > > > Thanks!
>
> > > > > > --
> > > > > > 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.
-- 
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] Re: Droppable: how to work it in a dynamic table?

2010-01-13 Thread Dr Funkenstein
Actually seems like using $(this).text() gets me the data in the
destination row but I'd ideally want to know its Id. I've tried using
ui.draggable.text() to get the content of the dragging row but it
doesn't seem to work.

On Jan 13, 2:53 pm, Dr Funkenstein  wrote:
> I have another question on the same topic. How can I retrieve the data
> in the draggred row once it's dropped into adroppablerow? Similarly
> how can I know which row with what data was it dropped into?
>
> Thanks!
>
> On Jan 12, 5:05 pm, "Richard D. Worth"  wrote:
>
> > See
>
> >http://api.jquery.com/category/selectors/
>
> > specifically
>
> >http://api.jquery.com/class-selector/
>
> > - Richard
>
> > On Tue, Jan 12, 2010 at 7:34 PM, Dr Funkenstein  wrote:
> > > Thanks Jorn. How would I set the class as the selector? I'm very new
> > > to jQuery so pardon my illiteracy.
>
> > > On Jan 12, 6:34 am, Jörn Zaefferer 
> > > wrote:
> > > > Ids must be unique. Try using a class on each element and specifying 
> > > > that
> > > as
> > > > the selector. With multiple IDs, you'll select just the first one.
>
> > > > Jörn
>
> > > > On Fri, Jan 8, 2010 at 9:30 PM, Dr Funkenstein  wrote:
> > > > > Hi,
>
> > > > > I have a JavaScript script that creates atabledynamically and
> > > > > inserts thedroppablediv into each row (with id="droppable"). The
> > > > > problem is, the draggable item invokes the drop event ONLY on the
> > > > > first occurance of thedroppable(in the first row of thetable). How
> > > > > can I make it so that alldroppabledivs accept the drop event?
>
> > > > > Thanks!
>
> > > > > --
> > > > > 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.
-- 
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] Re: Droppable: how to work it in a dynamic table?

2010-01-13 Thread Dr Funkenstein
I have another question on the same topic. How can I retrieve the data
in the draggred row once it's dropped into a droppable row? Similarly
how can I know which row with what data was it dropped into?

Thanks!

On Jan 12, 5:05 pm, "Richard D. Worth"  wrote:
> See
>
> http://api.jquery.com/category/selectors/
>
> specifically
>
> http://api.jquery.com/class-selector/
>
> - Richard
>
> On Tue, Jan 12, 2010 at 7:34 PM, Dr Funkenstein  wrote:
> > Thanks Jorn. How would I set the class as the selector? I'm very new
> > to jQuery so pardon my illiteracy.
>
> > On Jan 12, 6:34 am, Jörn Zaefferer 
> > wrote:
> > > Ids must be unique. Try using a class on each element and specifying that
> > as
> > > the selector. With multiple IDs, you'll select just the first one.
>
> > > Jörn
>
> > > On Fri, Jan 8, 2010 at 9:30 PM, Dr Funkenstein  wrote:
> > > > Hi,
>
> > > > I have a JavaScript script that creates a table dynamically and
> > > > inserts the droppable div into each row (with id="droppable"). The
> > > > problem is, the draggable item invokes the drop event ONLY on the
> > > > first occurance of the droppable (in the first row of the table). How
> > > > can I make it so that all droppable divs accept the drop event?
>
> > > > Thanks!
>
> > > > --
> > > > 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.
-- 
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] Cross tabs navigation activated by page content.

2010-01-13 Thread Balázs Suhajda

Have you looked at the docs?

http://jqueryui.com/demos/tabs/

to be exact: http://jqueryui.com/demos/tabs/#method-select


On Jan 13, 2010, at 20:43 , David Parker wrote:


I'm using the jQuery .tabs() routines to move from tab to tab.

What events can be added to the panel of the tab, that it either moves
to the "appropriate tab" and/or causes so processing to happen and
then moves to the "appropriate tab"?

Example1: Click on item and causes an event as same as if I clicked
another tab.
Example2: Edit a form and submit. Causes an event as same as if I
clicked another tab where the new data will be shown.

I understand that it is the css styles that are being modified to re-
draw the tabs.
The implementation is four tabs and each goes to a dedicated servlet
that writes the HTML to panel of the tabbed container.



$(function(){
 $('#an_tabs').tabs();
});

--  
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] Cross tabs navigation activated by page content.

2010-01-13 Thread David Parker
I'm using the jQuery .tabs() routines to move from tab to tab.

What events can be added to the panel of the tab, that it either moves
to the "appropriate tab" and/or causes so processing to happen and
then moves to the "appropriate tab"?

Example1: Click on item and causes an event as same as if I clicked
another tab.
Example2: Edit a form and submit. Causes an event as same as if I
clicked another tab where the new data will be shown.

I understand that it is the css styles that are being modified to re-
draw the tabs.
The implementation is four tabs and each goes to a dedicated servlet
that writes the HTML to panel of the tabbed container.



$(function(){
  $('#an_tabs').tabs();
});

-- 
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] Re: Droppable: how to work it in a dynamic table?

2010-01-13 Thread Dr Funkenstein
Great! Thanks.

On Jan 12, 5:05 pm, "Richard D. Worth"  wrote:
> See
>
> http://api.jquery.com/category/selectors/
>
> specifically
>
> http://api.jquery.com/class-selector/
>
> - Richard
>
> On Tue, Jan 12, 2010 at 7:34 PM, Dr Funkenstein  wrote:
> > Thanks Jorn. How would I set the class as the selector? I'm very new
> > to jQuery so pardon my illiteracy.
>
> > On Jan 12, 6:34 am, Jörn Zaefferer 
> > wrote:
> > > Ids must be unique. Try using a class on each element and specifying that
> > as
> > > the selector. With multiple IDs, you'll select just the first one.
>
> > > Jörn
>
> > > On Fri, Jan 8, 2010 at 9:30 PM, Dr Funkenstein  wrote:
> > > > Hi,
>
> > > > I have a JavaScript script that creates a table dynamically and
> > > > inserts the droppable div into each row (with id="droppable"). The
> > > > problem is, the draggable item invokes the drop event ONLY on the
> > > > first occurance of the droppable (in the first row of the table). How
> > > > can I make it so that all droppable divs accept the drop event?
>
> > > > Thanks!
>
> > > > --
> > > > 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.
-- 
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] Submit prevented form

2010-01-13 Thread Cyril Lopez
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] drag and drop javascript weirdness (on Firefox)

2010-01-13 Thread dreamerme
First, let me say that jQuery UI is awesome, it's made my life 1000
times easier, I am having one small issue...

When putting certain javascript inside a droppable object after
dragging it and dropping it it suddenly reloads in an entirely new
page (on Firefox).

Is there an easy way to stop this from happening?

Try putting the following widget in a draggable object and dropping it
(with Firefox) and you'll see what I mean.

Here is the actual script.. not sure what google is going to do to it:
http://voap.weather.com/weather/
oap/91789?
template=GENXH&par=37&unit=0&key=twciweatherwidget">

Here is a link where you can get the widget if the script isn't
visible.
http://www.weather.com/services/oap/weather-widgets.html/91789?dn=Walnut,%20CA&from=weatherwidget_Search
-- 
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] HTML5 Menu Tag and jquery-ui menu toolbar

2010-01-13 Thread slmnhq

What do you guys think is the correct usage of the 'menu' and 'command' tags
in HTML5?

Eg: to display a menu like so:

File -> New, Save, Close
Edit -> Undo, Cut, Copy

is the following mark-up correct?


  
 
 
 
  
  
  
  
  
  


I'm thinking of writing a new jquery menu widget which uses primarily the
same interface described here:
http://wiki.jqueryui.com/Menu
so that it can eventually be merged back into the labs/fg-menu.

Salman
-- 
View this message in context: 
http://old.nabble.com/HTML5-Menu-Tag-and-jquery-ui-menu-toolbar-tp27148131s27240p27148131.html
Sent from the jQuery UI Discussion mailing list archive at Nabble.com.

-- 
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] Re: Don't want first item in Accordian jquery to auto-open

2010-01-13 Thread ferfer
adasdasfsdafgrgvbgrers

On 12 Ocak, 00:01, ferfer  wrote:
> Not sure if I'm asking this correctly, so let me explain.
> I've got the Accordian script working fine, but I don't want my first
> item to be opened (showing hidden info) when my page loads. I want
> all
> my links hidden info to be closed from the get go, and then only open
> when they're clicked.
> Does that make sense? I just need to know what part of the jquery
> script I need to change in order to make this happen.
>
> its answer is
>
> $("#accordion").accordion({
>         collapsible: true,
>         active: false
>
> });
>
> But i dont know where can i insert this code. ?
-- 
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] Submit prevented form

2010-01-13 Thread 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.


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.




[jquery-ui] Submit prevented form

2010-01-13 Thread Cyril Lopez
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.



[jquery-ui] Re: Jquery UI ui-widget class needs table as part of selector definition

2010-01-13 Thread Scott González
This is not the goal of the jQuery UI CSS Framework. If you want a CSS
framework that will solve generic problems, there are other systems
available, such as Reset CSS and Blueprint. The goal of the jQuery UI
CSS Framework is to build a small framework for UI plugins to be built
on top of and then provide styles, using that framework, for all
plugins available in the jQuery UI suite. Expanding the scope would
create a lot of unnecessary bloat.


On Jan 12, 12:41 pm, fbloggs  wrote:
> Well, I respectfully disagree. I do agree that this is a general CSS
> cascade issue (in fact, I scoured the W3C CSS 2 specs to find where
> tables fit in the cascade rules, with no luck). But it seems to me
> that the jQuery UI CSS framework should handle this inconsistency for
> you, and that the solution is very simple (along the lines of what
> I've shown above.) This is more 'customer-centric' thinking, rather
> than telling the user 'oh, it's a CSS quirk, and you have to fix it
> yourself'. You could use the same argument with cross-browser
> compliance!!! Instead, why not just fix it (ie deal with the quirk) in
> the first place?  It would be a very simple change to the jQuery UI
> CSS framework.
>
> Regards,
>
> Duncan
>
> On Jan 4, 5:33 am, Steven Black  wrote:
>
>
>
> > More generally, you can solve this with
>
> >   table  { font-family: inherit; font-size: 1em; }
>
> > So it's not really a tabs or a jQuery-UI issue, but more generally how
> > table styles are reset, set, and thereafter cascade.
>
> > **--**  Steve
>
> > On Dec 30 2009, 6:46 pm, fbloggs  wrote:
>
> > > I just recently used UI tabs in an application. Within a couple of the
> > > tabs I used tables for content (let's not have a religious debate
> > > about  using tables for layout, please). Anyway, the font size came
> > > out much bigger than for text in a paragraph, for example. I looked at
> > > the custom.css file (generated by themeroller) and found this line:
>
> > > .ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget
> > > button { font-family: Lucida Grande, Lucida Sans, Arial, sans-serif;
> > > font-size: 1em; }
>
> > > - designed to handle form input types.
>
> > > I copied this and added table as a descendant selector, like so:
>
> > > .ui-widget table  { font-family: Lucida Grande, Lucida Sans, Arial,
> > > sans-serif; font-size: 1em; }
>
> > > Problem solved.
-- 
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] HTML tag restriction when using selectable?

2010-01-13 Thread Balázs Suhajda
Here, I made a quick example with your html: http://jsbin.com/exezi/edit

On Wed, Jan 13, 2010 at 10:14 AM, Maxi326  wrote:
> I am new to jQuery, so this maybe stupid. but no answer can be found
> in both demo and doc, so.
>
> the demo shows selectable in this way. I think you all familiar with
> that.
> 
>        $(function() {
>                $("#selectable").selectable();
>        });
>        
> 
>        Item 1
>        Item 2
>        Item 3
>        Item 4
>        Item 5
>        Item 6
>        Item 7
> 
>
> Can I apply selectable to other tag like the following?
> 
>    
>        
>        
>        
>    
>    
>        
>        
>        
>    
>    
>        
>        
>        
>    
> 
>
> I have tried it, it doesn't work. Is that result from my miss using or
> is that just not possible?
> thank you very much.
>
> --
> 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.




[jquery-ui] Re: Accordian and tabs not playing well together.

2010-01-13 Thread Steven Black
Hi Don,

First thing to do is validate your HTML.

92 errors on the first link you provide:
   http://is.gd/6bEXz

Once your HTML is proper things will go much smoother.

**--**  Steve


On Jan 12, 9:29 pm, dondmcg  wrote:
> I hope someone can help because I have been desperately trying to
> figure this out on my own but I am being overwelmed with how many
> sources there are for plugins how many versions and how many
> discussion groups.  It is very hard to follow along with the
> development of this framework.
>
> I have created a page that requires the use of an accordian on the
> same page as multiple instance of tabs.
>
> Independently they work but when I put them together they blow each
> other up.
>
> Here are the development sample pages:
>
> http://conted.nybg.org:8080/WebModule/jsp/ddm/test_profile_bugs5wacco...http://conted.nybg.org:8080/WebModule/jsp/ddm/test_profile_bugs5wtabs...http://conted.nybg.org:8080/WebModule/jsp/ddm/test_profile_bugs4.html
>
> When I put them together I get one error in firebug and they both
> don't work, the error is $ui.accordian is not a constructor in Firefox
> on a PC.(http://conted.nybg.org:8080/WebModule/jsp/ddm/
> test_profile_bugs4.html)
>
> When I put the accordian jquery call in the external js:
> conted_new2.js above the tabs call and comment out the
> jquery.ui.core.js reference the accordian works but the tabs do not
> and I get two errors "$widget is not a function" and "uncaught
> exception [Exception... "Could not convert JavaScript argument arg 0"
> nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS
> frame ::http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
> :: anonymous :: line 12" data: no]" in Firefox on a PC. (http://
> conted.nybg.org:8080/WebModule/jsp/ddm/test_profile_bugs5waccord.html)
>
> When I have all external js files available and the accordian jquery
> call in the external js file: conted_new2.js below the tabs call the
> accordian does not work but the tabs do.  And I get one error
> $.ui.accordion is not a constructor, again in Firefox on a PC. (http://
> conted.nybg.org:8080/WebModule/jsp/ddm/test_profile_bugs5wtabs.html)
>
> So I think I can tell two things:
> 1. Something in the jquery.ui.core.js is conflicting with the
> accordian code because when it runs (not below tabs) ui.core seems to
> prevent either from working until this reference is removed.  And
> because the tabs are dependant on ui.core the tabs malfunction.
> 2. For some reason the tabs code will not run if it is below the
> accordian script and vise versa.
>
> The jquery files are derived from these 3 sources:
>
> 1.
> The ACCORDIAN I am using was derived from
> * jQuery UI Accordion 1.6
>  *
>  * Copyright (c) 2007 Jörn Zaefferer
>  *
>  *http://docs.jquery.com/UI/Accordion
>  *
>  * Dual licensed under the MIT and GPL licenses:
>  *  http://www.opensource.org/licenses/mit-license.php
>  *  http://www.gnu.org/licenses/gpl.html
>  *
>  * Revision: $Id: jquery.accordion.js 4876 2008-03-08 11:49:04Z
> joern.zaefferer $
>  *
>
> 2.
> The TABS UI CORE file is derived from here:
> /*
>  * jQuery UI @VERSION
>  *
>  * Copyright (c) 2008 Paul Bakaus (ui.jquery.com)
>  * Dual licensed under the MIT (MIT-LICENSE.txt)
>  * and GPL (GPL-LICENSE.txt) licenses.
>  *
>  *http://docs.jquery.com/UI
>  */
>
> 3.
> and the TABS file is derived from here:
>  * jQuery UI Tabs @VERSION
>  *
>  * Copyright (c) 2007, 2008 Klaus Hartl (stilbuero.de)
>  * Dual licensed under the MIT (MIT-LICENSE.txt)
>  * and GPL (GPL-LICENSE.txt) licenses.
>  *
>  *http://docs.jquery.com/UI/Tabs
>  *
>  * Depends:
>  *  ui.core.js
>  */
>
> Thanks for your time.
> Don
-- 
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] HTML tag restriction when using selectable?

2010-01-13 Thread Balázs Suhajda
Hi!

I think the issue is that you are setting the selectable on the table,
but - if I understand correctly - want to have the divs as selectees
(to be selected).
The table has quite a few child elements, but since you only want the
divs with class 'ui-widget-content' to be selectees, you should use
the filter option: http://jqueryui.com/demos/selectable/#option-filter

Hope that helps!

On Wed, Jan 13, 2010 at 10:14 AM, Maxi326  wrote:
> I am new to jQuery, so this maybe stupid. but no answer can be found
> in both demo and doc, so.
>
> the demo shows selectable in this way. I think you all familiar with
> that.
> 
>        $(function() {
>                $("#selectable").selectable();
>        });
>        
> 
>        Item 1
>        Item 2
>        Item 3
>        Item 4
>        Item 5
>        Item 6
>        Item 7
> 
>
> Can I apply selectable to other tag like the following?
> 
>    
>        
>        
>        
>    
>    
>        
>        
>        
>    
>    
>        
>        
>        
>    
> 
>
> I have tried it, it doesn't work. Is that result from my miss using or
> is that just not possible?
> thank you very much.
>
> --
> 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.




[jquery-ui] HTML tag restriction when using selectable?

2010-01-13 Thread Maxi326
I am new to jQuery, so this maybe stupid. but no answer can be found
in both demo and doc, so.

the demo shows selectable in this way. I think you all familiar with
that.

$(function() {
$("#selectable").selectable();
});


Item 1
Item 2
Item 3
Item 4
Item 5
Item 6
Item 7


Can I apply selectable to other tag like the following?


















I have tried it, it doesn't work. Is that result from my miss using or
is that just not possible?
thank you very much.
-- 
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: Problem using multiple datePicker instances and renaming fields

2010-01-13 Thread Arturo Fuentes Magán
It helped a lot, it solved my problem.

Thank you.

2010/1/12 Nick Knickerbocker 

> I ran into this issue myself and found two things that cause "inst is
> undefined".  Both situations typically result from using the jquery
> clone() method either directly or as a side effect of some jquery
> library:
>
> 1. If you initialize datepicker on an element that already has class
> "hasDatepicker", datepicker will think the initialization has already
> happened.
> 2. If you initialize datepicker on an element that has the same id as
> another element on the page, datepicker is prone to grab the
> uninitialized element by id while operating on the initialized
> element.
>
> Hope that helps,
> Nick
>
>
> On Dec 20 2009, 10:27 pm, Shaaa  wrote:
> > I also have the same issue...
> >
> > When i create new datepicker element with append() datepicker works
> > fine. But when i chose the date for new element it affects in the
> > first element.
> >
> > Any solutions will be appreciated.
> >
> > On Dec 8, 3:46 am, "k...@beza"  wrote:
> >
> > > I'musinga jQuery plugin dynamic form that allows me to add and
> > > remove fields to the form dynamically
> >
> > > I have a group of fields. One of these fields is a jQueryUIdatePicker.
> When I clone the group, its fields are renamed so when I
> > > post I receive all field groups as arrays
> >
> > > 
> > > How can I make all thedatePickerfields to work and not loose
> > > instance when the field names are renamed? How can I assure that every
> > > field keeps its instance so I don't get
> > > 
> >
> > >instisundefined
> > > uncaught exception: Missing instance data for thisdatepicker
> >
> > > I run this each time i add or remove a group, but doesn't work. some
> > > fields still give me the errors
> >
> > > jQuery(".datefieldclass").each(function() {
> > > jQuery(this).datepicker();
> >
> > > });
>
> --
> 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.
>
>
>
>


-- 
AVISO LEGAL:
A información que puidese conter esta comunicación é privada e confidencial,
e en todo o que concerne a datos persoais, non poderá ser utilizada para un
fin distinto do que a orixinou e deberá estar sometida á máis absoluta
confidencialidade, quedando prohibida a calquera persoa a súa revelación,
copia ou distribución, todo iso de acordo á Lei Orgánica 15/1999 de
Protección de Datos de Carácter Persoal. Se vostede non é o destinatario
orixinal desta mensaxe e por este medio puido acceder a devandita
información por favor elimine a mensaxe.

A transmisión de e-mails non garante que o correo electrónico sexa seguro ou
libre de erro. Por conseguinte, non manifestamos que esta información sexa
completa ou precisa. Toda información esta suxeita a alterarse sen previo
aviso.
-- 

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.