[jQuery] Re: Too much recursion

2009-08-30 Thread FCCS

Hello,

Thank you both. AmitTheKumar solution works fine.

Cheers

On Aug 29, 11:26 pm, AmitTheKumar the...@gmail.com wrote:
 I think you should try just passing the function name as the second
 parameter, instead of adding () after it.  () will cause the function
 to execute right away.  So:

  function visibleFadeIn()
  {
          jQuery('#visible').fadeIn(2000, visibleFadeOut);

  }

  function visibleFadeOut()
  {
          jQuery('#visible').fadeOut(2000, visibleFadeIn);

  }

 // Starts the loop
  visibleFadeIn();

 On Aug 27, 11:16 pm, FCCS brard.pie...@gmail.com wrote:

  Hello,

  I'm trying to build a simple fadeIn - fadeOut loop on a div, but I
  get an infinite recursion the way I do it :

  // + Code
  function visibleFadeIn()
  {
          jQuery('#visible').fadeIn(2000, visibleFadeOut());

  }

  function visibleFadeOut()
  {
          jQuery('#visible').fadeOut(2000, visibleFadeIn());

  }

  // Starts the loop
  visibleFadeIn();
  // - Code

  There must be another way to deal with this, does someone have a
  suggestion ?

  Thank you very much,
  FCCS


[jQuery] Re: Too much recursion

2009-08-29 Thread AmitTheKumar

I think you should try just passing the function name as the second
parameter, instead of adding () after it.  () will cause the function
to execute right away.  So:

 function visibleFadeIn()
 {
 jQuery('#visible').fadeIn(2000, visibleFadeOut);

 }

 function visibleFadeOut()
 {
 jQuery('#visible').fadeOut(2000, visibleFadeIn);

 }

// Starts the loop
 visibleFadeIn();

On Aug 27, 11:16 pm, FCCS brard.pie...@gmail.com wrote:
 Hello,

 I'm trying to build a simple fadeIn - fadeOut loop on a div, but I
 get an infinite recursion the way I do it :

 // + Code
 function visibleFadeIn()
 {
         jQuery('#visible').fadeIn(2000, visibleFadeOut());

 }

 function visibleFadeOut()
 {
         jQuery('#visible').fadeOut(2000, visibleFadeIn());

 }

 // Starts the loop
 visibleFadeIn();
 // - Code

 There must be another way to deal with this, does someone have a
 suggestion ?

 Thank you very much,
 FCCS


[jQuery] Re: Too much recursion

2009-08-28 Thread Mohd.Tareq
On Fri, Aug 28, 2009 at 8:46 AM, FCCS brard.pie...@gmail.com wrote:


 Hello,

 I'm trying to build a simple fadeIn - fadeOut loop on a div, but I
 get an infinite recursion the way I do it :

 // + Code
 function visibleFadeIn()
 {
jQuery('#visible').fadeIn(2000, visibleFadeOut());
 }

 function visibleFadeOut()
 {
jQuery('#visible').fadeOut(2000, visibleFadeIn());
 }

 // Starts the loop
 visibleFadeIn();
 // - Code

 There must be another way to deal with this, does someone have a
 suggestion ?

 Thank you very much,
 FCCS



 jQuery('#visible').fadeIn(2000).fadeOut(2000).fadeIn(2000).fadeOut(2000);

try out this one

cheers

-- 
  Regard
Mohammad.Tareque


[jQuery] Re: “too much recursion” error in JQuer y 1.3.2

2009-03-13 Thread Elias

Sorry about this. It is not a bug. I just didn't fully understand the
new event bubbling behavior. You can see the solution to this problem
in case anyone may find it helpful:

http://stackoverflow.com/questions/639862/too-much-recursion-error-in-jquery-1-3-2


[jQuery] Re: “too much recursion” error in JQuer y 1.3.2

2009-03-12 Thread James

It doesn't look like a bug. You code is essentially asking for
recursive onclick event calls.

Maybe you're trying to do something like:
$(this).children(input:radio).attr('selected', 'selected');

On Mar 12, 8:24 am, Elias mikez...@gmail.com wrote:
 I am trying to make a form with some dynamic behavior. Specifically, I
 have my inputs in divs, and I would like to make it so when the user
 clicks anywhere in the div, the input is selected. I was using JQuery
 1.2.6 and everything worked fine.

 However, I upgraded to JQuery 1.3.2 and I am getting some strange
 behavior. When I click on any of the inputs, I get a delay before it
 is selected. My Firefox error console gives me several too much
 recursion errors, from within the JQuery library. I tried the page in
 Internet Explorer 7 and got an error saying Object doesn't support
 this property or method.

 Am I doing something wrong, or is this a bug in JQuery? Does anyone
 know a way to fix this behavior, without going back to the old
 version? I am using Firefox 3.0.7 in case that matters. Here is a
 simple example I made to illustrate the problem:

 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN 
 http://www.w3.org/TR/html4/loose.dtd;
 htmlhead
 meta http-equiv=Content-Type content=text/html; charset=UTF-8
 titlequiz test/title
 script type=text/javascript src=jquery-1.3.2.min.js/script
 /head
 body
 div class='question'Favorite soda?
     divinput type='radio' name='q' value='A' id='a'label
 for='a'Coke/label/div
     divinput type='radio' name='q' value='B' id='b'label
 for='b'Pepsi/label/div
     /div
 script type=text/javascript
 $(function() {
     $(.question div).click(function() {
         $(this).children(input).click();
     });});

 /script
 /body/html


[jQuery] Re: Too much recursion error with jQuery 1.2.6 and blockUI 2.07

2008-06-11 Thread Mike Alsup

  Firebug spits out

  ///
  too much recursion
  [Break on this error] jQuery.globalEval(elem.text||
  elem.textCo...Query.browser.msie)script.text=data;else

 Change this:

 $('.jqmClose').click($.unblockUI);

 to this:

 $('.jqmClose').click(function() {
     $.unblockUI();
     return false;

 });


The latest version of blockUI fixes this bug.

http://www.malsup.com/jquery/block/jquery.blockUI.js?v2.08


[jQuery] Re: too much recursion in newest droppable - jQueryUI

2007-09-11 Thread John Resig

You should post this to the jQuery UI group, where this is discussed:
http://groups.google.com/group/jquery-ui/

Or, reply to the thread that you linked to.

--John

On 9/11/07, PragueExpat [EMAIL PROTECTED] wrote:


 I've posted a problem that I'm having with droppables and jQuery here:

 http://groups.google.com/group/jquery-ui/browse_thread/thread/f63eec69a7a0afe8

 It is still a problem in 1.2  - There is an example html page in the
 discussion. Using firebug, you will see a recursion timeout after you drop a
 red square onto a green square.

 The problem is that the drop function is repeatedly being called until
 timeout.

 Remove the absolute positioning from the parent div, and the problem goes
 away. However, I need the parent to be absolutely positioned for this app.

 Any ideas?
 --
 View this message in context: 
 http://www.nabble.com/%22too-much-recursion%22-in-newest-droppable---jQueryUI-tf4422296s15494.html#a12613689
 Sent from the JQuery mailing list archive at Nabble.com.




[jQuery] Re: too much recursion in newest droppable - jQueryUI

2007-09-11 Thread Prague Expat


John, I have posted there several times with no response, so I thought I 
would try here. The problem is a show-stopper for a large application.


- Original Message - 
From: John Resig [EMAIL PROTECTED]

To: jquery-en@googlegroups.com
Sent: Tuesday, September 11, 2007 2:43 PM
Subject: [jQuery] Re: too much recursion in newest droppable - jQueryUI




You should post this to the jQuery UI group, where this is discussed:
http://groups.google.com/group/jquery-ui/

Or, reply to the thread that you linked to.

--John

On 9/11/07, PragueExpat [EMAIL PROTECTED] wrote:



I've posted a problem that I'm having with droppables and jQuery here:

http://groups.google.com/group/jquery-ui/browse_thread/thread/f63eec69a7a0afe8

It is still a problem in 1.2  - There is an example html page in the
discussion. Using firebug, you will see a recursion timeout after you 
drop a

red square onto a green square.

The problem is that the drop function is repeatedly being called until
timeout.

Remove the absolute positioning from the parent div, and the problem goes
away. However, I need the parent to be absolutely positioned for this 
app.


Any ideas?
--
View this message in context: 
http://www.nabble.com/%22too-much-recursion%22-in-newest-droppable---jQueryUI-tf4422296s15494.html#a12613689

Sent from the JQuery mailing list archive at Nabble.com.








[jQuery] Re: too much recursion in newest droppable - jQueryUI

2007-09-11 Thread John Resig

Well, we've also been working hard on jQuery 1.2 and on trying to get
jQuery UI ready - so we're a little backlogged. But that's the right
place to post UI posts, not here.

--John

On 9/11/07, Prague Expat [EMAIL PROTECTED] wrote:

 John, I have posted there several times with no response, so I thought I
 would try here. The problem is a show-stopper for a large application.

 - Original Message -
 From: John Resig [EMAIL PROTECTED]
 To: jquery-en@googlegroups.com
 Sent: Tuesday, September 11, 2007 2:43 PM
 Subject: [jQuery] Re: too much recursion in newest droppable - jQueryUI


 
  You should post this to the jQuery UI group, where this is discussed:
  http://groups.google.com/group/jquery-ui/
 
  Or, reply to the thread that you linked to.
 
  --John
 
  On 9/11/07, PragueExpat [EMAIL PROTECTED] wrote:
 
 
  I've posted a problem that I'm having with droppables and jQuery here:
 
  http://groups.google.com/group/jquery-ui/browse_thread/thread/f63eec69a7a0afe8
 
  It is still a problem in 1.2  - There is an example html page in the
  discussion. Using firebug, you will see a recursion timeout after you
  drop a
  red square onto a green square.
 
  The problem is that the drop function is repeatedly being called until
  timeout.
 
  Remove the absolute positioning from the parent div, and the problem goes
  away. However, I need the parent to be absolutely positioned for this
  app.
 
  Any ideas?
  --
  View this message in context:
  http://www.nabble.com/%22too-much-recursion%22-in-newest-droppable---jQueryUI-tf4422296s15494.html#a12613689
  Sent from the JQuery mailing list archive at Nabble.com.
 
 
 




[jQuery] Re: too much recursion (sound PopUp)

2007-07-12 Thread tlob

anyone?

On 11 Jul., 09:26, tlob [EMAIL PROTECTED] wrote:
 I just found out, that it is not working in IE7 I dont know where
 the problem is, FF seems ok

 THX in advance!
 tom

 On 10 Jul., 17:21, tlob [EMAIL PROTECTED] wrote:

  Hello

  I finaly managed to finish my job. Only with your help.

 http://siggibucher.com/preview/soundtest.html

  But when I click the sound on link, Firebug is complaining about
  too much recursion window.focus();
  I have no idea, was this is, or should I change something?

  THX in advance!
  tom



[jQuery] Re: too much recursion (sound PopUp)

2007-07-12 Thread Sean Catchpole

The problem is with this line:
sound=window.open(url,'soundbumbam','height=50,width=150');

Try declaring sound at the top of the script
var sound;

~Sean


[jQuery] Re: too much recursion (sound PopUp)

2007-07-11 Thread tlob

anyone?

On 10 Jul., 17:21, tlob [EMAIL PROTECTED] wrote:
 Hello

 I finaly managed to finish my job. Only with your help.

 http://siggibucher.com/preview/soundtest.html

 But when I click the sound on link, Firebug is complaining about
 too much recursion window.focus();
 I have no idea, was this is, or should I change something?

 THX in advance!
 tom



[jQuery] Re: too much recursion (sound PopUp)

2007-07-11 Thread tlob

I just found out, that it is not working in IE7 I dont know where
the problem is, FF seems ok

THX in advance!
tom

On 10 Jul., 17:21, tlob [EMAIL PROTECTED] wrote:
 Hello

 I finaly managed to finish my job. Only with your help.

 http://siggibucher.com/preview/soundtest.html

 But when I click the sound on link, Firebug is complaining about
 too much recursion window.focus();
 I have no idea, was this is, or should I change something?

 THX in advance!
 tom