[jQuery] Re: Plugins/Validation/validate is there a way to add css class to wrapper option?

2009-06-12 Thread Gauthier Segay

Jörn, thanks for your answer

I tried your tip and it seems to work showing the items right at first
sight.

There is one flaw nonetheless, when the item is revoved, the wrapper
element is leave present in it's container

About the ticket, I just created one as you proposed:

http://plugins.jquery.com/node/8612

I'm unsure what is the most convinient way for the solution, it could
be either

- support jquery selectors or raw dom strings (picking the one the
most logic according to other optins)

or

- support event handler for attach/detach message or such? (I'm not
used to events defined in most plugins at the moment)

thanks for your help

On Jun 12, 1:47 pm, Jörn Zaefferer 
wrote:
> wrapper: "li class='error'" would work in one place (where the wrapper
> is created), but not in another, where the same option is used as a
> selector.
>
> Could you file an issue for 
> thise?http://plugins.jquery.com/node/add/project-issue/validate
>
> Jörn
>
>
>
> On Fri, Jun 12, 2009 at 7:51 AM, Gauthier Segay 
> wrote:
>
> > I would like to wrap validation messages in  with
> > validate plugin
>
> > is there any event or option I can handle to tweak the element before
> > it is appended?
>
> > I'm unsure if something like that would look ok:
>
> > $('form').validate({wrapper:"li.error"});
>
> > or either
>
> > $('form').validate({wrapper:""});
>
> > Any work around is welcome.
>
> > Best regards


[jQuery] Plugins/Validation/validate is there a way to add css class to wrapper option?

2009-06-11 Thread Gauthier Segay

I would like to wrap validation messages in  with
validate plugin

is there any event or option I can handle to tweak the element before
it is appended?

I'm unsure if something like that would look ok:

$('form').validate({wrapper:"li.error"});

or either

$('form').validate({wrapper:""});

Any work around is welcome.

Best regards


[jQuery] Re: 26 october occuring two times: datepicker bug?

2008-11-06 Thread Gauthier Segay

Thanks a bunch, I'm upgrading :)

On Nov 6, 2:49 am, Dave Methvin <[EMAIL PROTECTED]> wrote:
> Sounds like you ran into this 
> bug:http://groups.google.com/group/jquery-ui/browse_frm/thread/d4f1fb6473...


[jQuery] [datepicker] 26 october occuring two times: datepicker bug?

2008-11-05 Thread Gauthier Segay

Hello,

I've weird thing with datepicker, my dates are offset by one day (13
november 2008 is friday), when checking where the inconsistency come,
I've find that 26 october is occuring twice.

Here is how I instanciate datepicker :

$('myselector').datepicker({dateFormat:'dd/mm/yy'});

Does the fact that the UTC offset changed (daylight saving time) at
this very date is a reason for such bug? any idea how can I workaround
it?

Thanks


[jQuery] Re: jQuery tooltip doesn't work after UpdatePanel update?

2008-05-20 Thread Gauthier Segay

You may need to reattach the tooltip plugin to the dom being
refreshed.

Does your asp.net component support attaching custom javascript on
content refresh?

If it doesn't support that (not very extensible), you may override the
default behaviour by "monkey patching" the javascript function being
call when update pannel is trigged.

On May 20, 10:29 pm, vladv <[EMAIL PROTECTED]> wrote:
> Does jQuery supposed to work with asp.net ajax update panel?
> I used jQuery tooltip  
> :http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/
>
> but after the update panel update every tooltip is reset to default
> tooltip.
>
> how can this be fixed?
>
> Thank you


[jQuery] Re: Passing parameters to callback functions

2008-04-17 Thread Gauthier Segay

in your exemple, you can simply remove the parameter since the
function is declared as a closure that capture your var $id.

In most cases, callback function doesn't have any parameter, unless
explicitely specified in the documentation.

If you need to pre-bind parameters to your callback function, you need
to use currying technique of your choice.

see http://ejohn.org/blog/partial-functions-in-javascript/ as an
exemple to do so.

Hope this helps

On 15 avr, 23:09, Donald J Organ IV <[EMAIL PROTECTED]> wrote:
> Please ignore the fact that the single quotes are being escaped.
>
> Thanks
>
> Donald wrote:
> > Is i possible to pass arguments to callback functions right now I
> > have:
>
> > $(".imagethumb").each(function() {
> > $(this).bind( \'click\', function() {
> > var $id = $(this)[0].id;
> > $("#prodimage").fadeOut("slow",
> > function($id) {
> > $("#prodimage")[0].src = $("#" + id ).attr( \'fullsize
> > \' );
> > $("#prodimage").fadeIn("slow");
> > });
> > }
> > );
> > });
>
> > When it gets to the callback function for fadeOut $id is null.  How do
> > I fix this??


[jQuery] Re: ui.datepicker.js

2008-04-02 Thread Gauthier Segay

Check that the input element have a name attribute

On Apr 1, 6:05 pm, TunaSandwich <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm using the datepicker with jQuery. It works quite nicely.
>
> I'm going a traditional form post (or a get) using a submit button and
> it seems that the content of the text box is left out of the form
> post.
>
> What to do?
>
> Thanks in advance.
>
> Darcy


[jQuery] Re: JSON $Get.Json Silently Failing

2008-04-01 Thread Gauthier Segay

Hello Mike,

your callback handler seems malformed, see here:

http://docs.jquery.com/Ajax/jQuery.getJSON

the callback is expecting only one parameter.

Also, you might want to register a default ajax error callback handler
on your page if you rely on simpler ajax shortcuts like

jQuery.get
jQuery.getJSON
jQuery.post

and so on.

You can register ajax error handler either with

jQuery.ajaxSetup or jQuery.ajaxError

Last thing, when tracing with an http trace tool (or firebug) does the
server respond with 200 or 304 http status and correctly send the json
data you showed to us?

Hope this helps

On Apr 1, 2:55 am, Mike Flair <[EMAIL PROTECTED]> wrote:
> hello,
>
> i have rather frustrating problem with $get.Json silently failing; i
> have a data set that return; but many that fail. after i try and
> serialize the data and send it back to the client; it never return and
> the function $get.Json fails to return
>
> if i place the JSON serialized objects in an data file and call
> $get.Json..everything works. but not from the response.write on the
> fly.
>
> is there a way to format the json serialzed return? is there any
> subtle characters in the json string that could prevent this from
> occuring? ie. escape, /backslash etc.
>
> any help is greatly appriecated!
>
> //page.aspx (Fails to return to $Get.JSON
>
> JavaScriptSerializer jss = new JavaScriptSerializer();
> Response.Write(jss.Serialize(data));
>
> //test.js
>
> function testForm() {
>
> alert("before");
>
> $.getJSON("../json/test.aspx", function(data,textStatus){
>  //$.getJSON("../jsondata/data_Success.js", function(data,textStatus)
> {
>
> alert(textStatus);
> result = data.Result;
>
> });
>
> alert("after");
>
> }
>
> //Json object - can anyone see anything wrong with this?
>
> {"AvailableSlots":2,"BookedPlayers":2,"MaxPlayers":4,"StartingHole":
> 1,"ExtensionData":{},"Comments":"Time Extract
> Successful!","Reason":"Time Extract Successful!","Result":0}