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

2009-03-15 Thread yellow1912
0 pm, Jörn Zaefferer 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:0

[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 window:prin

[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 ex

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

2009-01-19 Thread yellow1912
an not find duplicated id or something 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 wrote: > Yup, exactly. If you login first, and then go back to the page, you > wil

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

2009-01-19 Thread yellow1912
this. Raine On Jan 19, 9:42 pm, Ricardo Tomasi 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 

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

2009-01-19 Thread yellow1912
eed to provide a demo online else we can't figure out the > problem. > > -- > Ariel Fleslerhttp://flesler.blogspot.com > > On Jan 19, 4:23 pm,yellow1912 wrote: > > > Oops, Im sorry but > > $(selector + ' .step[title='+currentIndex+'] div.stepCont

[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 wrote: > Now that you point that out it seems so obvious - since nothing was > happening I assumed it wasn't actually working

[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 wrote: > I think I found out something closer to the root cause: > > $(selector + &#

[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 effec

[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] 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: 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 wrote: >

[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 direct

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

2009-01-09 Thread yellow1912
Update: append() the script to head or any where on the page does give the desired effect. I dont know why it did not work when I tried before. I hope this helps someone else. And Thanks Mike and Josh, you really helped me out Best regards Raine On Jan 9, 4:15 pm, yellow1912 wrote: > I

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

2009-01-09 Thread yellow1912
irebug: > > Eval("<script>alert('hello');");  FAIL > > Eval("alert('hello')"); SUCCEED > > -- Josh > > -Original Message- > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On > > Behalf Of yellow1912

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

2009-01-09 Thread yellow1912
I actually did, I put a very simple line alert("testing"); No error, no effect, weird. Regards Raine On Jan 9, 3:35 pm, MorningZ wrote: > "I wonder if eval will work correctly in this case? " > > Did you simply just try it? > > On Jan 9, 4:01 pm, y

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

2009-01-09 Thread yellow1912
Thanks Mike, These inline script always come with When I use firebug to check the json data returned, it looks like this: (I just post part of the code here) "jscript_inline":"

[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 inl

[jQuery] Re: A question regarding jquery object

2009-01-06 Thread yellow1912
Inside the plugin I try this: $this = this; $this.livequery(function() { $this.ajaxForm(options); }); On Jan 6, 10:08 am, Ricardo Tomasi wrote: > Not sure that this is it, but > > $.fn.myplugin = function(options) { >      return this.find('form').ajaxForm(

[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 i

[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 ca

[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" wrote: > Don't thank me, Joe, thank Brendan Eich who developed JavaScript. :-) > > (But thanks for your comment the

[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}; $.fn.respons

[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: Very weird and frustrating IE problems

2008-12-08 Thread yellow1912
ping out the domain, > making the path relative 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 > > Behal

[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 The src is automatically changed to the http:// form It doesnt happen on FF though. Anyone knows why this happens? Regards

[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