Hi all, I have this simple javascript function that should work without problems: http://pastie.org/142089 Unfortunately all I get is my params alert and loading alert, nothing else. I use Firebug with Firefox and I can not see any AJAX calls in the firebug console and no javascript errors either. What can cause this, how can I debug it? I only have this problem on one page where I have some YUI library scripts too. Thank you, Marius --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
This is definitely a bug in Prototype. But unfortunately I can not figure out how to fix it. I had to do the AJAX calls in plain javascript, but all the other functionality that prototype offers like $F(''field'') is working just fine Marius On Jan 22, 3:17 pm, Marius <tomar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi all, > > I have this simple javascript function that should work without > problems:http://pastie.org/142089 > > Unfortunately all I get is my params alert and loading alert, nothing > else. I use Firebug with Firefox and I can not see any AJAX calls in > the firebug console and no javascript errors either. What can cause > this, how can I debug it? > > I only have this problem on one page where I have some YUI library > scripts too. > > Thank you, > Marius--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Can you add to the callbacks ... onExeption: function(){console.info(arguments);} See if that helps. On 24/01/2008, Marius <tomarius-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > This is definitely a bug in Prototype. But unfortunately I can not > figure out how to fix it. > I had to do the AJAX calls in plain javascript, but all the other > functionality that prototype offers like $F(''field'') is working just > fine > > Marius > > > On Jan 22, 3:17 pm, Marius <tomar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hi all, > > > > I have this simple javascript function that should work without > > problems:http://pastie.org/142089 > > > > Unfortunately all I get is my params alert and loading alert, nothing > > else. I use Firebug with Firefox and I can not see any AJAX calls in > > the firebug console and no javascript errors either. What can cause > > this, how can I debug it? > > > > I only have this problem on one page where I have some YUI library > > scripts too. > > > > Thank you, > > Marius > > >-- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!" --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Sorry, typo. onException: function(){console.info(arguments);} On 24/01/2008, Richard Quadling <rquadling-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> Can you add to the callbacks ... > > onExeption: function(){console.info(arguments);} > > See if that helps. > > On 24/01/2008, Marius <tomarius-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > This is definitely a bug in Prototype. But unfortunately I can not > > figure out how to fix it. > > I had to do the AJAX calls in plain javascript, but all the other > > functionality that prototype offers like $F(''field'') is working just > > fine > > > > Marius > > > > > > On Jan 22, 3:17 pm, Marius <tomar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi all, > > > > > > I have this simple javascript function that should work without > > > problems:http://pastie.org/142089 > > > > > > Unfortunately all I get is my params alert and loading alert, nothing > > > else. I use Firebug with Firefox and I can not see any AJAX calls in > > > the firebug console and no javascript errors either. What can cause > > > this, how can I debug it? > > > > > > I only have this problem on one page where I have some YUI library > > > scripts too. > > > > > > Thank you, > > > Marius > > > > > > > > > -- > ----- > Richard Quadling > Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 > "Standing on the shoulders of some very clever giants!" >-- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!" --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
This is what I got: [Object options=Object transport=XMLHttpRequest, [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIXMLHttpRequest.setRequestHeader]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: http://localhost/js/prototype.js :: anonymous :: line 1289" data: no]] Marius On Jan 24, 10:00 am, "Richard Quadling" <rquadl...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> Sorry, typo. > > onException: function(){console.info(arguments);} > > On 24/01/2008, Richard Quadling <rquadl...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > > > > > Can you add to the callbacks ... > > > onExeption: function(){console.info(arguments);} > > > See if that helps. > > > On 24/01/2008, Marius <tomar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > This is definitely a bug in Prototype. But unfortunately I can not > > > figure out how to fix it. > > > I had to do the AJAX calls in plain javascript, but all the other > > > functionality that prototype offers like $F(''field'') is working just > > > fine > > > > Marius > > > > On Jan 22, 3:17 pm, Marius <tomar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Hi all, > > > > > I have this simple javascript function that should work without > > > > problems:http://pastie.org/142089 > > > > > Unfortunately all I get is my params alert and loading alert, nothing > > > > else. I use Firebug with Firefox and I can not see any AJAX calls in > > > > the firebug console and no javascript errors either. What can cause > > > > this, how can I debug it? > > > > > I only have this problem on one page where I have some YUI library > > > > scripts too. > > > > > Thank you, > > > > Marius > > > -- > > ----- > > Richard Quadling > > Zend Certified Engineer :http://zend.com/zce.php?c=ZEND002498&r=213474731 > > "Standing on the shoulders of some very clever giants!" > > -- > ----- > Richard Quadling > Zend Certified Engineer :http://zend.com/zce.php?c=ZEND002498&r=213474731 > "Standing on the shoulders of some very clever giants!"--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Try lowercase on the method. On 24/01/2008, Marius <tomarius-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > This is what I got: > > [Object options=Object transport=XMLHttpRequest, [Exception... > "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) > [nsIXMLHttpRequest.setRequestHeader]" nsresult: "0x80070057 > (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: http://localhost/js/prototype.js > :: anonymous :: line 1289" data: no]] > > > Marius > > > > On Jan 24, 10:00 am, "Richard Quadling" <rquadl...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> > wrote: > > Sorry, typo. > > > > onException: function(){console.info(arguments);} > > > > On 24/01/2008, Richard Quadling <rquadl...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > > > > > > > > > Can you add to the callbacks ... > > > > > onExeption: function(){console.info(arguments);} > > > > > See if that helps. > > > > > On 24/01/2008, Marius <tomar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > This is definitely a bug in Prototype. But unfortunately I can not > > > > figure out how to fix it. > > > > I had to do the AJAX calls in plain javascript, but all the other > > > > functionality that prototype offers like $F(''field'') is working just > > > > fine > > > > > > Marius > > > > > > On Jan 22, 3:17 pm, Marius <tomar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > Hi all, > > > > > > > I have this simple javascript function that should work without > > > > > problems:http://pastie.org/142089 > > > > > > > Unfortunately all I get is my params alert and loading alert, nothing > > > > > else. I use Firebug with Firefox and I can not see any AJAX calls in > > > > > the firebug console and no javascript errors either. What can cause > > > > > this, how can I debug it? > > > > > > > I only have this problem on one page where I have some YUI library > > > > > scripts too. > > > > > > > Thank you, > > > > > Marius > > > > > -- > > > ----- > > > Richard Quadling > > > Zend Certified Engineer :http://zend.com/zce.php?c=ZEND002498&r=213474731 > > > "Standing on the shoulders of some very clever giants!" > > > > -- > > ----- > > Richard Quadling > > Zend Certified Engineer :http://zend.com/zce.php?c=ZEND002498&r=213474731 > > "Standing on the shoulders of some very clever giants!" > > >-- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!" --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Changed it to lowercase get but still no request in console :(, and the same output for exception On Jan 24, 10:44 am, "Richard Quadling" <rquadl...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> Try lowercase on the method. > > On 24/01/2008, Marius <tomar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > This is what I got: > > > [Object options=Object transport=XMLHttpRequest, [Exception... > > "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) > > [nsIXMLHttpRequest.setRequestHeader]" nsresult: "0x80070057 > > (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame ::http://localhost/js/prototype.js > > :: anonymous :: line 1289" data: no]] > > > Marius > > > On Jan 24, 10:00 am, "Richard Quadling" <rquadl...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> > > wrote: > > > Sorry, typo. > > > > onException: function(){console.info(arguments);} > > > > On 24/01/2008, Richard Quadling <rquadl...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > > > > > Can you add to the callbacks ... > > > > > onExeption: function(){console.info(arguments);} > > > > > See if that helps. > > > > > On 24/01/2008, Marius <tomar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > This is definitely a bug in Prototype. But unfortunately I can not > > > > > figure out how to fix it. > > > > > I had to do the AJAX calls in plain javascript, but all the other > > > > > functionality that prototype offers like $F(''field'') is working just > > > > > fine > > > > > > Marius > > > > > > On Jan 22, 3:17 pm, Marius <tomar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > Hi all, > > > > > > > I have this simple javascript function that should work without > > > > > > problems:http://pastie.org/142089 > > > > > > > Unfortunately all I get is my params alert and loading alert, nothing > > > > > > else. I use Firebug with Firefox and I can not see any AJAX calls in > > > > > > the firebug console and no javascript errors either. What can cause > > > > > > this, how can I debug it? > > > > > > > I only have this problem on one page where I have some YUI library > > > > > > scripts too. > > > > > > > Thank you, > > > > > > Marius > > > > > -- > > > > ----- > > > > Richard Quadling > > > > Zend Certified Engineer :http://zend.com/zce.php?c=ZEND002498&r=213474731 > > > > "Standing on the shoulders of some very clever giants!" > > > > -- > > > ----- > > > Richard Quadling > > > Zend Certified Engineer :http://zend.com/zce.php?c=ZEND002498&r=213474731 > > > "Standing on the shoulders of some very clever giants!" > > -- > ----- > Richard Quadling > Zend Certified Engineer :http://zend.com/zce.php?c=ZEND002498&r=213474731 > "Standing on the shoulders of some very clever giants!"--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Can you try this ... function ShowLogs(params) { Dialog.info(''Testing'', {className: "alphacube", width: 275, closable: true, okLabel:" Cancel ", title: "Change Application Status"}); } It may be that Dialog isn''t known and this causes an exception inside the Ajax execution which can be trapped by onException(). And if Dialog IS known, it might be generating an error further down the line. On 24/01/2008, Marius <tomarius-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Changed it to lowercase get but still no request in console :(, and > the same output for exception > > > > On Jan 24, 10:44 am, "Richard Quadling" <rquadl...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> > wrote: > > Try lowercase on the method. > > > > On 24/01/2008, Marius <tomar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > > > > > > This is what I got: > > > > > [Object options=Object transport=XMLHttpRequest, [Exception... > > > "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) > > > [nsIXMLHttpRequest.setRequestHeader]" nsresult: "0x80070057 > > > (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame ::http://localhost/js/prototype.js > > > :: anonymous :: line 1289" data: no]] > > > > > Marius > > > > > On Jan 24, 10:00 am, "Richard Quadling" <rquadl...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> > > > wrote: > > > > Sorry, typo. > > > > > > onException: function(){console.info(arguments);} > > > > > > On 24/01/2008, Richard Quadling <rquadl...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > > > > > > > Can you add to the callbacks ... > > > > > > > onExeption: function(){console.info(arguments);} > > > > > > > See if that helps. > > > > > > > On 24/01/2008, Marius <tomar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > This is definitely a bug in Prototype. But unfortunately I can not > > > > > > figure out how to fix it. > > > > > > I had to do the AJAX calls in plain javascript, but all the other > > > > > > functionality that prototype offers like $F(''field'') is working just > > > > > > fine > > > > > > > > Marius > > > > > > > > On Jan 22, 3:17 pm, Marius <tomar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > Hi all, > > > > > > > > > I have this simple javascript function that should work without > > > > > > > problems:http://pastie.org/142089 > > > > > > > > > Unfortunately all I get is my params alert and loading alert, nothing > > > > > > > else. I use Firebug with Firefox and I can not see any AJAX calls in > > > > > > > the firebug console and no javascript errors either. What can cause > > > > > > > this, how can I debug it? > > > > > > > > > I only have this problem on one page where I have some YUI library > > > > > > > scripts too. > > > > > > > > > Thank you, > > > > > > > Marius > > > > > > > -- > > > > > ----- > > > > > Richard Quadling > > > > > Zend Certified Engineer :http://zend.com/zce.php?c=ZEND002498&r=213474731 > > > > > "Standing on the shoulders of some very clever giants!" > > > > > > -- > > > > ----- > > > > Richard Quadling > > > > Zend Certified Engineer :http://zend.com/zce.php?c=ZEND002498&r=213474731 > > > > "Standing on the shoulders of some very clever giants!" > > > > -- > > ----- > > Richard Quadling > > Zend Certified Engineer :http://zend.com/zce.php?c=ZEND002498&r=213474731 > > "Standing on the shoulders of some very clever giants!" > > >-- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!" --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I commented the Dialog call from my onSuccess, and added an alert instead. But the problem is: because I have no AJAX call, it never gets into the onSuccess stage. I have the loading alert from onLoading and the exception, nothing else I use the same code on a different page, but where I have no YUI, scripts and is working fine there. Marius On Jan 24, 11:18 am, "Richard Quadling" <rquadl...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> Can you try this ... > > function ShowLogs(params) { > Dialog.info(''Testing'', {className: "alphacube", width: 275, > closable: true, okLabel:" Cancel ", title: "Change Application > Status"}); > > } > > It may be that Dialog isn''t known and this causes an exception inside > the Ajax execution which can be trapped by onException(). > > And if Dialog IS known, it might be generating an error further down the line. >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I don''t use YUI, so I can''t say for sure, but it looks like there is a conflict between them. Can you put a URL to the full page? On 24/01/2008, Marius <tomarius-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > I commented the Dialog call from my onSuccess, and added an alert > instead. But the problem is: because I have no AJAX call, it never > gets into the onSuccess stage. I have the loading alert from onLoading > and the exception, nothing else > > I use the same code on a different page, but where I have no YUI, > scripts and is working fine there. > > Marius > > On Jan 24, 11:18 am, "Richard Quadling" <rquadl...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> > wrote: > > Can you try this ... > > > > function ShowLogs(params) { > > Dialog.info(''Testing'', {className: "alphacube", width: 275, > > closable: true, okLabel:" Cancel ", title: "Change Application > > Status"}); > > > > } > > > > It may be that Dialog isn''t known and this causes an exception inside > > the Ajax execution which can be trapped by onException(). > > > > And if Dialog IS known, it might be generating an error further down the line. > > > > >-- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!" --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---