[jQuery] jQuery Workshop - We Want Your Input!

2009-05-18 Thread Justin Kozuch

Hi Everyone

Apologies for the intrusion, but I'm looking for your input on
something.

We're looking for input on a jQuery Workshop - let us know what's on
your mind! Please fill out our poll at
http://spreadsheets.google.com/viewform?formkey=cnN3VWxKcjNOYkZzX1lCNjgwZ29kNVE6MA
when you have a moment (poll should take you only 15 seconds to
complete).

Thank you for your input!

Sincerely,

Justin Kozuch
Founder, Refresh Events
w: www.refresh-events.ca
e: jus...@refresh-events.ca
t: twitter.com/RefreshEvents


[jQuery] Re: Triggering Validation using a button instead of submit

2008-11-07 Thread Justin Kozuch

No joy there...

Here's my code:

// validate signup form on keyup and submit
  var validator = $("#sourcing").validate();
  $("#submit").click(function() {
validator.triggerHandler('submit');
rules: {

}, // end rules

messages: {
  ...
} // end messages
});
  });
});

I'm not getting any JS errors, so I'm going to assume that everything
is in order. However, validation still isn't occuring... Oh, how I
love Fridays. ;)

- justin
On Nov 7, 10:47 am, mbraybrook <[EMAIL PROTECTED]> wrote:
> Correction:
>   validator.triggerHandler('submit');
> change to
>   $('#formid').triggerHandler('submit');
>
> M
>
> On Nov 7, 3:45 pm, mbraybrook <[EMAIL PROTECTED]> wrote:
>
> > Try using the triggerhandler function:
> > var validator = $("#sourcing").validate();
> > $("#submit").click(function() {
> >         validator.triggerHandler('submit');
>
> > });
>
> > Not tested...
>
> > HTH
> > M
>
> > On Nov 7, 3:41 pm, Justin Kozuch <[EMAIL PROTECTED]> wrote:
>
> > > Hi There,
>
> > > I've been using the validation plug in for a while now and I love it,
> > > but I am stuck on something.
>
> > > I am trying to validate a form using:
>
> > > 
> > > instead of the usual:
>
> > > 
>
> > > I tried using:
>
> > > var validator = $("#sourcing").validate();
> > > $("#submit").click(function() {
> > >         validator.form();
>
> > > });
>
> > > to do the validation but that doesn't do anything at all. Has anyone
> > > been able to figure this out?
>
> > > Thanks,
>
> > > Justin


[jQuery] [validate] Triggering Validation using a button instead of submit

2008-11-07 Thread Justin Kozuch

Hi There,

I've been using the validation plug in for a while now and I love it,
but I am stuck on something.

I am trying to validate a form using:


instead of the usual:



I tried using:

var validator = $("#sourcing").validate();
$("#submit").click(function() {
validator.form();
});

to do the validation but that doesn't do anything at all. Has anyone
been able to figure this out?

Thanks,

Justin


[jQuery] Re: Disabling Textarea, Select

2008-10-20 Thread Justin Kozuch

Nevermind I figured it out.

- Justin

On Oct 20, 2:20 pm, Justin Kozuch <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I've hit a bit of a snag in some code I've repurposed for a form I'm
> creating:
>
> $(document).ready(function() {
> var termsagree = $("#termsagree");
> var inital = termsagree.is(":checked");
> var terms = $("#contractualreqs")[inital ? "removeClass" :
> "addClass"]("gray");
> var termsInputs = terms.find("input").attr("disabled", !inital);
>
> //$("#contractualreqs").hide();
> termsagree.click(function() {
>   //$("#contractualreqs").show();
>   terms[this.checked ? "removeClass" : "addClass"]("gray");
>   termsInputs.attr("disabled", !this.checked);
> });
>
> var reqsagree = $("#reqsagree");
> var inital = reqsagree.is(":checked");
> var reqs = $("#supplierform")[inital ? "removeClass" : "addClass"]
> ("gray");
> var reqsInputs = reqs.find("input").attr("disabled", !inital);
>
> //$("#supplierform").hide();
> reqsagree.click(function() {
>   //$("#supplierform").show();
>   reqs[this.checked ? "removeClass" : "addClass"]("gray");
>   reqsInputs.attr("disabled", !this.checked);
> });
>
> });
>
> What I would like to do is disable ALL input fields, including selects
> and textarea elements, which is something that is not happening right
> now.
>
> Does anyone have any insight on how to accomplish this? I figured
> that
>
> var termsInputs = terms.find("input").attr("disabled", !inital);
>
> would do it, but alas, it was not to be.
>
> Best,
>
> justin


[jQuery] Disabling Textarea, Select

2008-10-20 Thread Justin Kozuch

Hi,

I've hit a bit of a snag in some code I've repurposed for a form I'm
creating:

$(document).ready(function() {
var termsagree = $("#termsagree");
var inital = termsagree.is(":checked");
var terms = $("#contractualreqs")[inital ? "removeClass" :
"addClass"]("gray");
var termsInputs = terms.find("input").attr("disabled", !inital);

//$("#contractualreqs").hide();
termsagree.click(function() {
  //$("#contractualreqs").show();
  terms[this.checked ? "removeClass" : "addClass"]("gray");
  termsInputs.attr("disabled", !this.checked);
});

var reqsagree = $("#reqsagree");
var inital = reqsagree.is(":checked");
var reqs = $("#supplierform")[inital ? "removeClass" : "addClass"]
("gray");
var reqsInputs = reqs.find("input").attr("disabled", !inital);

//$("#supplierform").hide();
reqsagree.click(function() {
  //$("#supplierform").show();
  reqs[this.checked ? "removeClass" : "addClass"]("gray");
  reqsInputs.attr("disabled", !this.checked);
});
});

What I would like to do is disable ALL input fields, including selects
and textarea elements, which is something that is not happening right
now.

Does anyone have any insight on how to accomplish this? I figured
that

var termsInputs = terms.find("input").attr("disabled", !inital);

would do it, but alas, it was not to be.

Best,

justin


[jQuery] Toggle Issue - Firefox/Safari Mac

2008-09-25 Thread Justin Kozuch

Hi All,

I have a maddening issue that I cannot seem to get my head around.

I have written a form in which, if you select a certain radio button,
it will toggle additional fields. The code I've written is:

//form40 coapp yes/no toggle function
$(document).ready(function() {
  // hide on DOM load
  $("tr.coapp").hide();

 // shows co-app tr's on YES click
  $("input#COAPPYES").bind("click", function(e) {
$("tr.coapp").toggle();
  });

 // hides co-app tr's on NO click
  $('input#COAPPNO').bind("click", function(e) {
$('tr.coapp').toggle();
  });
});

For some reason that I cannot yet understand, this code only works on
Windows browsers (Firefox, Safari, IE, etc). Thinking that I may have
disabled JavaScript in the Mac browsers, I checked to ensure they were
enabled, and they were in both Firefox and Safari.

This is the second time in less than 12 hours I have seen this issue;
last night, I was working on a POC that only worked in Safari, Firefox
3.0 was behaving VERY oddly. In that case, deleting the jQuery
completely removed the HTML elements from the browser, which is
something that I have NEVER seen before.

Am I the only who is having this problem, or is there something here
that I have overlooked?

Any advice would be greatly appreciated.

Cheers,

justin



[jQuery] Re: Validation plug-in - how to set russian messages for all

2008-09-25 Thread Justin Kozuch

Hey Mateusz,

I've worked with the validation plugin a bit (I'm implementing it for
a bank), so I may be able to assist you.

Do you have a URL I can look at?

- Justin

On Sep 25, 5:12 am, matma <[EMAIL PROTECTED]> wrote:
> Hi,
> I'm using validation plug-in in our application for customers from
> Russia. I need to set russian messages for all customers from all
> places in the world. How can i do that? Messages are in "localzation/
> messages_ru.js".
>
> Regards
> Mateusz Wolsza