[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 example:
1. Go to http://raine.ridevelopement.com/test/i
2. Add an item to cart
3. Checkout
Try to login with no email. password on this page, you will see the
validation is working well

Now if you try to fill in the login fields (whatever you want), you
will see the error right away (the page will redirect really fast
since the ajaxform does not bind)


If I comment out these lines in the file
http://raine.ridevelopement.com/test/includes/templates/YOUR_TEMPLATE/jscript/jquery/jquery.zencart.js

$(selector).ajaxStart(function(){
$(selector + ' .step[title='+currentIndex+'] 
.loader').fadeIn();
});

$(selector).ajaxStop(function(){
$(selector + ' 
.step[title='+(currentIndex-1)+'] .loader').fadeOut
();
});

Then the form will be submitted just fine. But, when the data is
returned we will get the same error jQuery.queue is not a function

I'm puzzled as this works fine with 1.2.6.

Regards

Raine



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

2009-01-19 Thread John Resig

Do you have a URL for your site anywhere?

--John



On Mon, Jan 19, 2009 at 11:45 AM, yellow1912 yellow1...@gmail.com wrote:

 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 John Resig

Also, could you post that URL to the jquery-dev list when you have it? Thanks.
http://groups.google.com/group/jquery-dev

--John



On Mon, Jan 19, 2009 at 11:52 AM, John Resig jere...@gmail.com wrote:
 Do you have a URL for your site anywhere?

 --John



 On Mon, Jan 19, 2009 at 11:45 AM, yellow1912 yellow1...@gmail.com wrote:

 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)

$(selector).ajaxStart(function(){
$(selector + ' .step[title='+currentIndex+'] 
.loader').fadeIn();
});

$(selector).ajaxStop(function(){
$(selector + ' 
.step[title='+(currentIndex-1)+'] .loader').fadeOut
();
});
Note: selector is an id (#some_id), while currentIndex is an integer

Second unless I comment out the code above, the below bind wont
work:
$(selector + ' a:not(.not_step)').livequery(function(){
$(this).bind('click', function(){
$.ajax({
type: GET,
url: $(this).attr('href'),
dataType: 'json',
success: function(data, textStatus){
updateContent(data, textStatus);
}
});
return false;
}
)});

Third:the update content seems to be the one that is causing the
jQuery.queue is not a function , comment it out will stop that error,
below is the content of that function:
function updateContent(response){
// we will loop through and update the content!
jQuery.each(response.content, function(i, val) {
  $(# + i).html(val);
  });
}
Note: my json data is an associate array with the key is the id of
the element i want to update, the value is the content.

Fourth: my form binding stops working as well

$(selector + ' 
form:not(.not_step)').livequery(function() {
$(this).validate({
rules: opts.validateOptions.rules,
messages: 
opts.validateOptions.messages,

submitHandler: function(form) {

$(form).ajaxSubmit(options);
}
})
});

Regards

Raine


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

$(selector + ' .step[title='+currentIndex+'] div.stepContent').fadeOut
(slow);
-- no error, but obviously not producing the effect I want

the html structure is somewhat like this
div id=#selector_id
div class=step title=1
h4 class=stepTitlesometitle/h4
div class=stepContentcontent goes here/div
/div
!-- more steps go here--
/div


[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+'] .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 want

 $(selector + ' .step[title='+currentIndex+'] div.stepContent').fadeOut
 (slow);
 -- no error, but obviously not producing the effect I want

 the html structure is somewhat like this
 div id=#selector_id
 div class=step title=1
 h4 class=stepTitlesometitle/h4
 div class=stepContentcontent goes here/div
 /div
 !-- more steps go here--
 /div


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

2009-01-19 Thread Ricardo Tomasi

Are you sure?

I created a page with your HTML, your selectors and all the mentioned
plugins and didn't get any errors:
http://ff6600.org/j/q/

On Jan 19, 4:23 pm, yellow1912 yellow1...@gmail.com wrote:
 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+'] .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 want

  $(selector + ' .step[title='+currentIndex+'] div.stepContent').fadeOut
  (slow);
  -- no error, but obviously not producing the effect I want

  the html structure is somewhat like this
  div id=#selector_id
  div class=step title=1
  h4 class=stepTitlesometitle/h4
  div class=stepContentcontent goes here/div
  /div
  !-- more steps go here--
  /div


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

2009-01-19 Thread Ariel Flesler

You really need to provide a demo online else we can't figure out the
problem.

--
Ariel Flesler
http://flesler.blogspot.com

On Jan 19, 4:23 pm, yellow1912 yellow1...@gmail.com wrote:
 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+'] .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 want

  $(selector + ' .step[title='+currentIndex+'] div.stepContent').fadeOut
  (slow);
  -- no error, but obviously not producing the effect I want

  the html structure is somewhat like this
  div id=#selector_id
  div class=step title=1
  h4 class=stepTitlesometitle/h4
  div class=stepContentcontent goes here/div
  /div
  !-- more steps go here--
  /div




[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:
 You really need to provide a demo online else we can't figure out the
 problem.

 --
 Ariel Fleslerhttp://flesler.blogspot.com

 On Jan 19, 4:23 pm,yellow1912yellow1...@gmail.com wrote:

  Oops, Im sorry but
  $(selector + ' .step[title='+currentIndex+'] div.stepContent').fadeOut
  (slow);
  --jQuery.queue is not a function

  On Jan 19, 12:22 pm,yellow1912yellow1...@gmail.com wrote:

   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 want

   $(selector + ' .step[title='+currentIndex+'] div.stepContent').fadeOut
   (slow);
   -- no error, but obviously not producing the effect I want

   the html structure is somewhat like this
   div id=#selector_id
   div class=step title=1
   h4 class=stepTitlesometitle/h4
   div class=stepContentcontent goes here/div
   /div
   !-- more steps go here--
   /div


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

2009-01-19 Thread Ricardo Tomasi

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...@gmail.com wrote:
 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:

  You really need to provide a demo online else we can't figure out the
  problem.

  --
  Ariel Fleslerhttp://flesler.blogspot.com

  On Jan 19, 4:23 pm,yellow1912yellow1...@gmail.com wrote:

   Oops, Im sorry but
   $(selector + ' .step[title='+currentIndex+'] div.stepContent').fadeOut
   (slow);
   --jQuery.queue is not a function

   On Jan 19, 12:22 pm,yellow1912yellow1...@gmail.com wrote:

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 want

$(selector + ' .step[title='+currentIndex+'] div.stepContent').fadeOut
(slow);
-- no error, but obviously not producing the effect I want

the html structure is somewhat like this
div id=#selector_id
div class=step title=1
h4 class=stepTitlesometitle/h4
div class=stepContentcontent goes here/div
/div
!-- more steps go here--
/div


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

2009-01-19 Thread yellow1912

Yup, exactly. If you login first, and then go back to the page, you
will also see the forms are not bound correctly. (this code works on
1.2.6)
to save your time, please use this account I created:
user: 12345 at test.com (please replace at by @)
pass: 12345

Thank you very much for checking 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...@gmail.com wrote:

  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:

   You really need to provide a demo online else we can't figure out the
   problem.

   --
   Ariel Fleslerhttp://flesler.blogspot.com

   On Jan 19, 4:23 pm,yellow1912yellow1...@gmail.com wrote:

Oops, Im sorry but
$(selector + ' .step[title='+currentIndex+'] div.stepContent').fadeOut
(slow);
--jQuery.queue is not a function

On Jan 19, 12:22 pm,yellow1912yellow1...@gmail.com wrote:

 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 want

 $(selector + ' .step[title='+currentIndex+'] div.stepContent').fadeOut
 (slow);
 -- no error, but obviously not producing the effect I want

 the html structure is somewhat like this
 div id=#selector_id
 div class=step title=1
 h4 class=stepTitlesometitle/h4
 div class=stepContentcontent goes here/div
 /div
 !-- more steps go here--
 /div


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

2009-01-19 Thread yellow1912

It seems like error with validation plugin is one of the causes of
this, I must have done something wrong, since the demo is working well
with 1.3

I have now replaced the min version by the normal version to better
see the error, it seems to be on this line:
validator.settings[on + event.type]  validator.settings[on +
event.type].call(validator, this[0] );
(line 291 of jquery validation version 1.5.1)

I also found a related post:
http://www.nabble.com/jQuery-Validation-Error-td18425593s27240.html

My current page is xhtml validated though, and I can 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 yellow1...@gmail.com wrote:
 Yup, exactly. If you login first, and then go back to the page, you
 will also see the forms are not bound correctly. (this code works on
 1.2.6)
 to save your time, please use this account I created:
 user: 12345 at test.com (please replace at by @)
 pass: 12345

 Thank you very much for checking 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...@gmail.com wrote:

   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:

You really need to provide a demo online else we can't figure out the
problem.

--
Ariel Fleslerhttp://flesler.blogspot.com

On Jan 19, 4:23 pm,yellow1912yellow1...@gmail.com wrote:

 Oops, Im sorry but
 $(selector + ' .step[title='+currentIndex+'] div.stepContent').fadeOut
 (slow);
 --jQuery.queue is not a function

 On Jan 19, 12:22 pm,yellow1912yellow1...@gmail.com wrote:

  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 want

  $(selector + ' .step[title='+currentIndex+'] 
  div.stepContent').fadeOut
  (slow);
  -- no error, but obviously not producing the effect I want

  the html structure is somewhat like this
  div id=#selector_id
  div class=step title=1
  h4 class=stepTitlesometitle/h4
  div class=stepContentcontent goes here/div
  /div
  !-- more steps go here--
  /div