[jQuery] [validate]Trigger validation before form submit?

2009-03-15 Thread yellow1912
I'm using this fantastic validation module: http://bassistance.de/jquery-plugins/jquery-plugin-validation/ and I wonder if there is a way to force validation before form submission. I have a button, which my users have to click first, and if the validation goes through then I will use

[jQuery] Re: [validate]Trigger validation before form submit?

2009-03-15 Thread yellow1912
joern.zaeffe...@googlemail.com wrote: Try this: var form = $(#myform). form.validate(); $(#mybutton).click(function() {   if (form.valid()) {     // do something   } }); Jörn On Mon, Mar 16, 2009 at 12:02 AM, yellow1912 yellow1...@gmail.com wrote: I'm using this fantastic validation

[jQuery] Re: jquery 1.3 n.queue is not a function?

2009-01-22 Thread yellow1912
Just an update: Today I updated to 1.3.1, update validation,form, and livequery plugins to the newest as well. Now the validation works find, which is totally great. However, I still have problem with this error: jQuery.queue is not a function There are many ways to re-produce this error, for

[jQuery] jquery 1.3 n.queue is not a function?

2009-01-19 Thread yellow1912
When I try to use jquery 1.3 on my test site, I get this error: jQuery.queue is not a function [Break on this error] var queue = jQuery.queue( this, type, data ); (firebug) The site is using livequery, form, metadata and validate plugin in, all upgraded for 1.3 support. Weird.

[jQuery] Re: jquery 1.3 n.queue is not a function?

2009-01-19 Thread yellow1912
Hi John, Unfortunately I have it on my localhost now, will try to upload asap. However, I found out a bunch of errors, probably because of my bad jquery *_* First: in the plugin I have these line of codes, working fine in 1.2.6 but in 1.3 they prevent some even binding (see point Second)

[jQuery] Re: jquery 1.3 n.queue is not a function?

2009-01-19 Thread yellow1912
I think I found out something closer to the root cause: $(selector + ' .step[title='+currentIndex+'] .stepContent').fadeOut (slow); --jQuery.queue is not a function $(selector + ' .step[title='+currentIndex+'].stepContent').fadeOut (slow); -- no error, but obviously not producing the effect I

[jQuery] Re: jquery 1.3 n.queue is not a function?

2009-01-19 Thread yellow1912
Oops, Im sorry but $(selector + ' .step[title='+currentIndex+'] div.stepContent').fadeOut (slow); --jQuery.queue is not a function On Jan 19, 12:22 pm, yellow1912 yellow1...@gmail.com wrote: I think I found out something closer to the root cause: $(selector + ' .step[title='+currentIndex

[jQuery] Re: Validating Ajax Loaded Form Problem - Stumped

2009-01-19 Thread yellow1912
1.3 has some problem with selectors as far as I can tell, I would refrain upgrading until those problems are solved, hopefully in 1.3.1 Regards On Jan 19, 1:47 pm, beysk netdinos...@gmail.com wrote: Now that you point that out it seems so obvious - since nothing was happening I assumed it

[jQuery] Re: jquery 1.3 n.queue is not a function?

2009-01-19 Thread yellow1912
Here is the test site: http://raine.ridevelopement.com/test Please add 1 item to cart, checkout, you will get to the checkout page. I have just found out that I have the validator failed as well, must be me doing some bad code Raine On Jan 19, 2:50 pm, Ariel Flesler afles...@gmail.com wrote:

[jQuery] Re: jquery 1.3 n.queue is not a function?

2009-01-19 Thread yellow1912
into this. Raine On Jan 19, 9:42 pm, Ricardo Tomasi ricardob...@gmail.com wrote: Checkout page gives me a validator is undefined error... I could register a new user, but couldn't go past the shipping method page (which also gave me the same error). On Jan 19, 7:59 pm, yellow1912 yellow1

[jQuery] Re: jquery 1.3 n.queue is not a function?

2009-01-19 Thread yellow1912
like that. I must be doing something wrong, maybe I used some type of bad coding which is tolerated by 1.2.6 but not so in 1.3.0 *_* Raine On Jan 19, 9:50 pm, yellow1912 yellow1...@gmail.com wrote: Yup, exactly. If you login first, and then go back to the page, you will also see the forms

[jQuery] Re: Weirdest thing on Firefox 3 on MacOSX

2009-01-14 Thread yellow1912
I still desperately need help for this, since I dont have Mac to test and debug it. If you can help please let me know, I will pay for your time or donate the amount to jquery, whichever method you wants. Thanks so much for your help Regards Raine On Jan 13, 6:01 pm, yellow1912 yellow1

[jQuery] Weirdest thing on Firefox 3 on MacOSX

2009-01-13 Thread yellow1912
I encounter a rather weird problem where my plugin would run on all platforms except Firefox 3 on MacOSX, and since I don't have Mac I can not debug it. (this plugin uses jquery 1.2.6 and jq form, jq validation and livequery plugins.) This is still under development I can not post the link

[jQuery] How to dynamically load/add inline javascript?

2009-01-09 Thread yellow1912
After I submit my form via ajax, I sometimes get back content (json format) with some inline jscript in one of the fields (i.e: result.jscript) I've been trying to do something like this: $('#output').append(result.jscript); It doesn't seem to work, however. (In my case, I can't avoid these

[jQuery] A question regarding jquery object

2009-01-06 Thread yellow1912
Hi all, I have a question regarding jquery object: if I bind my plugin like this: $('#myButton').myplugin(); And inside my plugin, I want to bind ajaxForm listener to all forms inside 'this' current element, what is the best way to do it? I can get the id by using $this.attr('id'), but there

[jQuery] Re: A question regarding jquery object

2009-01-06 Thread yellow1912
this: $this = this; $this.livequery(function() { $this.ajaxForm(options); }); On Jan 6, 10:08 am, Ricardo Tomasi ricardob...@gmail.com wrote: Not sure that this is it, but $.fn.myplugin = function(options) {      return this.find('form').ajaxForm(); }); ? On Jan 6, 1:59 pm, yellow1912

[jQuery] unset an array element? (returned via json)

2009-01-04 Thread yellow1912
First I have to admit I haven't got a clear understand of js object, array and associative array yet. I'm using jquery form to post a form, and I get back some data in json form, which is an array containing several fields (status, content, etc) The 'content' is an associative array which

[jQuery] How can I call a function if I have that function name stored in a string?

2009-01-02 Thread yellow1912
Something like this var func = 'myFunc'; Can I call the function like this for example: $.fn.myplugin.(func)(); (I'm using this in a plugin I'm working on) Thank you very much

[jQuery] Re: How can I call a function if I have that function name stored in a string?

2009-01-02 Thread yellow1912
Thanks Mike, I'm following this tutorial here: http://www.learningjquery.com/2007/10/a-plugin-development-pattern I have several public functions like this: $.fn.response.redirect.default = function (){//something here}; $.fn.response.redirect.type1 = function (){//something here};

[jQuery] Re: How can I call a function if I have that function name stored in a string?

2009-01-02 Thread yellow1912
Hi Mike, I can't thank you enough for taking your time to teach this newbie how to do it right. I really appreciate your help Sincerely Raine On Jan 2, 12:40 pm, Michael Geary m...@mg.to wrote: Don't thank me, Joe, thank Brendan Eich who developed JavaScript. :-) (But thanks for your

[jQuery] Very weird and frustrating IE problems

2008-12-08 Thread yellow1912
I have encountered a really annoying problem with ie6 and 7: When I append an img like this img src=relative/path / The src is automatically changed to the http:// form It doesnt happen on FF though. Anyone knows why this happens? Regards

[jQuery] Re: Very weird and frustrating IE problems

2008-12-08 Thread yellow1912
to the current page, etc. What is it that you want to do with the path once you read it with javascript? JK -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of yellow1912 Sent: Monday, December 08, 2008 11:04 PM To: jQuery (English) Subject

[jQuery] Check if a variable is set?

2008-11-18 Thread yellow1912
I wonder if jquery supports something like this? (like php isset() function) I know I can certainly write a function for it, but I dont want to re- invent the wheel if jquery already supports it Regards