[Proto-Scripty] Re: Ajax call is not working in MAC(Firefox)

2009-07-21 Thread Mona Remlawi

Not sure if this is related (haven't worked on MAC OS), but I would
double check the use of '../' for relative uri.
Different operating systems might interpret this differently.
You might wanna consider absolute uri's instead : /appcontext/index.php

cheers

--
mona

On Tue, Jul 21, 2009 at 9:13 AM, Atanu Deymratanu...@gmail.com wrote:

 I have a script which executes periodically after each 10 seconds. You
 can see that there is an ajax call which actually updates database for
 me and return 1 or 0 depending of the script execution.

 The problem is, it is working cool in windows platform with firefox
 3.0.11. But not working with the same version of firefox in MAC OS.

 The Script:

 new PeriodicalExecuter(function(){
                var date = new Date();
                //console.log('setOnlineStatus.php?sid='+date.getTime());
                new Ajax.Request('setOnlineStatus.php?sid='+date.getTime(),
 {method:'get', onComplete:function(transport){
                        if(!parseInt(transport.responseText))
                                window.location=../index.php;
                }});
        },10);

 Can anybody has any idea about this? Thanks in advance for your help.

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Ajax call is not working in MAC(Firefox)

2009-07-21 Thread Alex McAuley

What does firebug say ?



- Original Message - 
From: Mona Remlawi mona.reml...@gmail.com
To: prototype-scriptaculous@googlegroups.com
Sent: Tuesday, July 21, 2009 10:37 AM
Subject: [Proto-Scripty] Re: Ajax call is not working in MAC(Firefox)



Not sure if this is related (haven't worked on MAC OS), but I would
double check the use of '../' for relative uri.
Different operating systems might interpret this differently.
You might wanna consider absolute uri's instead : /appcontext/index.php

cheers

--
mona

On Tue, Jul 21, 2009 at 9:13 AM, Atanu Deymratanu...@gmail.com wrote:

 I have a script which executes periodically after each 10 seconds. You
 can see that there is an ajax call which actually updates database for
 me and return 1 or 0 depending of the script execution.

 The problem is, it is working cool in windows platform with firefox
 3.0.11. But not working with the same version of firefox in MAC OS.

 The Script:

 new PeriodicalExecuter(function(){
 var date = new Date();
 //console.log('setOnlineStatus.php?sid='+date.getTime());
 new Ajax.Request('setOnlineStatus.php?sid='+date.getTime(),
 {method:'get', onComplete:function(transport){
 if(!parseInt(transport.responseText))
 window.location=../index.php;
 }});
 },10);

 Can anybody has any idea about this? Thanks in advance for your help.

 





--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Ajax call is not working in MAC(Firefox)

2009-07-21 Thread T.J. Crowder

Hi,

Not working in what way?  Does it...

...do nothing?
...raise an error?
...stop all scripts on the page?
...turn the entire page mauve?
...depress the economies of the western democracies?

You get the idea, there are dozens of things not working could
mean. ;-)
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available


On Jul 21, 8:13 am, Atanu Dey mratanu...@gmail.com wrote:
 I have a script which executes periodically after each 10 seconds. You
 can see that there is an ajax call which actually updates database for
 me and return 1 or 0 depending of the script execution.

 The problem is, it is working cool in windows platform with firefox
 3.0.11. But not working with the same version of firefox in MAC OS.

 The Script:

 new PeriodicalExecuter(function(){
                 var date = new Date();
                 //console.log('setOnlineStatus.php?sid='+date.getTime());
                 new Ajax.Request('setOnlineStatus.php?sid='+date.getTime(),
 {method:'get', onComplete:function(transport){
                         if(!parseInt(transport.responseText))
                                 window.location=../index.php;
                 }});
         },10);

 Can anybody has any idea about this? Thanks in advance for your help.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Ajax call is not working in MAC(Firefox)

2009-07-21 Thread Alex McAuley

LOL @ western democracies !

Wish my scripts could do that
;)

Alex Mcauley
Developer
The Vacancy Market LTD
http://www.thevacancymarket.com

- Original Message - 
From: T.J. Crowder t...@crowdersoftware.com
To: Prototype  script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Tuesday, July 21, 2009 10:51 AM
Subject: [Proto-Scripty] Re: Ajax call is not working in MAC(Firefox)



Hi,

Not working in what way?  Does it...

...do nothing?
...raise an error?
...stop all scripts on the page?
...turn the entire page mauve?
...depress the economies of the western democracies?

You get the idea, there are dozens of things not working could
mean. ;-)
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available


On Jul 21, 8:13 am, Atanu Dey mratanu...@gmail.com wrote:
 I have a script which executes periodically after each 10 seconds. You
 can see that there is an ajax call which actually updates database for
 me and return 1 or 0 depending of the script execution.

 The problem is, it is working cool in windows platform with firefox
 3.0.11. But not working with the same version of firefox in MAC OS.

 The Script:

 new PeriodicalExecuter(function(){
 var date = new Date();
 //console.log('setOnlineStatus.php?sid='+date.getTime());
 new Ajax.Request('setOnlineStatus.php?sid='+date.getTime(),
 {method:'get', onComplete:function(transport){
 if(!parseInt(transport.responseText))
 window.location=../index.php;
 }});
 },10);

 Can anybody has any idea about this? Thanks in advance for your help.



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Ajax call is not working in MAC(Firefox)

2009-07-21 Thread Atanu Dey

Thanks a lot for your replies. I was not on my machine so got late to
reply here

You can see that there is a commented code:

//console.log('setOnlineStatus.php?sid='+date.getTime());

I cannot see that log and also there is no ajax call taking place.
there is no javascript error found in the firebug.

what I can see that it is not getting inside the function for
periodical executer...

not sure why but, this is working properly in windows with the same
version of firefox...

On Jul 21, 2:57 pm, Alex McAuley webmas...@thecarmarketplace.com
wrote:
 LOL @ western democracies !

 Wish my scripts could do that
 ;)

 Alex Mcauley
 Developer
 The Vacancy Market LTDhttp://www.thevacancymarket.com

 - Original Message -
 From: T.J. Crowder t...@crowdersoftware.com
 To: Prototype  script.aculo.us prototype-scriptaculous@googlegroups.com
 Sent: Tuesday, July 21, 2009 10:51 AM
 Subject: [Proto-Scripty] Re: Ajax call is not working in MAC(Firefox)

 Hi,

 Not working in what way?  Does it...

 ...do nothing?
 ...raise an error?
 ...stop all scripts on the page?
 ...turn the entire page mauve?
 ...depress the economies of the western democracies?

 You get the idea, there are dozens of things not working could
 mean. ;-)
 --
 T.J. Crowder
 tj / crowder software / com
 Independent Software Engineer, consulting services available

 On Jul 21, 8:13 am, Atanu Dey mratanu...@gmail.com wrote:
  I have a script which executes periodically after each 10 seconds. You
  can see that there is an ajax call which actually updates database for
  me and return 1 or 0 depending of the script execution.

  The problem is, it is working cool in windows platform with firefox
  3.0.11. But not working with the same version of firefox in MAC OS.

  The Script:

  new PeriodicalExecuter(function(){
  var date = new Date();
  //console.log('setOnlineStatus.php?sid='+date.getTime());
  new Ajax.Request('setOnlineStatus.php?sid='+date.getTime(),
  {method:'get', onComplete:function(transport){
  if(!parseInt(transport.responseText))
  window.location=../index.php;
  }});
  },10);

  Can anybody has any idea about this? Thanks in advance for your help.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Ajax call is not working in MAC(Firefox)

2009-07-21 Thread Alex McAuley

try changing date to d or something in var date=.. incase FF on MAC 
might reserve the word or mistake the case of it for Date and 
re-variablise the class

Alex Mcauley
Developer
The Vacancy Market LTD
http://www.thevacancymarket.com


- Original Message - 
From: Atanu Dey mratanu...@gmail.com
To: Prototype  script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Tuesday, July 21, 2009 11:05 AM
Subject: [Proto-Scripty] Re: Ajax call is not working in MAC(Firefox)



Thanks a lot for your replies. I was not on my machine so got late to
reply here

You can see that there is a commented code:

//console.log('setOnlineStatus.php?sid='+date.getTime());

I cannot see that log and also there is no ajax call taking place.
there is no javascript error found in the firebug.

what I can see that it is not getting inside the function for
periodical executer...

not sure why but, this is working properly in windows with the same
version of firefox...

On Jul 21, 2:57 pm, Alex McAuley webmas...@thecarmarketplace.com
wrote:
 LOL @ western democracies !

 Wish my scripts could do that
 ;)

 Alex Mcauley
 Developer
 The Vacancy Market LTDhttp://www.thevacancymarket.com

 - Original Message -
 From: T.J. Crowder t...@crowdersoftware.com
 To: Prototype  script.aculo.us 
 prototype-scriptaculous@googlegroups.com
 Sent: Tuesday, July 21, 2009 10:51 AM
 Subject: [Proto-Scripty] Re: Ajax call is not working in MAC(Firefox)

 Hi,

 Not working in what way? Does it...

 ...do nothing?
 ...raise an error?
 ...stop all scripts on the page?
 ...turn the entire page mauve?
 ...depress the economies of the western democracies?

 You get the idea, there are dozens of things not working could
 mean. ;-)
 --
 T.J. Crowder
 tj / crowder software / com
 Independent Software Engineer, consulting services available

 On Jul 21, 8:13 am, Atanu Dey mratanu...@gmail.com wrote:
  I have a script which executes periodically after each 10 seconds. You
  can see that there is an ajax call which actually updates database for
  me and return 1 or 0 depending of the script execution.

  The problem is, it is working cool in windows platform with firefox
  3.0.11. But not working with the same version of firefox in MAC OS.

  The Script:

  new PeriodicalExecuter(function(){
  var date = new Date();
  //console.log('setOnlineStatus.php?sid='+date.getTime());
  new Ajax.Request('setOnlineStatus.php?sid='+date.getTime(),
  {method:'get', onComplete:function(transport){
  if(!parseInt(transport.responseText))
  window.location=../index.php;
  }});
  },10);

  Can anybody has any idea about this? Thanks in advance for your help.



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Ajax call is not working in MAC(Firefox)

2009-07-21 Thread T.J. Crowder

@Alex:

 try changing date to d or something in var date=.. incase FF on MAC
 might reserve the word or mistake the case of it for Date and
 re-variablise the class

That would be a truly massive bug in FF, I doubt it would get out of
beta.

@Atanu:

Firebug[1] works on the Mac, I'd suggest walking through the code in
the debugger (the script panel).

[1] http://getfirebug.com/

HTH,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available


On Jul 21, 11:14 am, Alex McAuley webmas...@thecarmarketplace.com
wrote:
 try changing date to d or something in var date=.. incase FF on MAC
 might reserve the word or mistake the case of it for Date and
 re-variablise the class

 Alex Mcauley
 Developer
 The Vacancy Market LTDhttp://www.thevacancymarket.com



 - Original Message -
 From: Atanu Dey mratanu...@gmail.com
 To: Prototype  script.aculo.us prototype-scriptaculous@googlegroups.com
 Sent: Tuesday, July 21, 2009 11:05 AM
 Subject: [Proto-Scripty] Re: Ajax call is not working in MAC(Firefox)

 Thanks a lot for your replies. I was not on my machine so got late to
 reply here

 You can see that there is a commented code:

 //console.log('setOnlineStatus.php?sid='+date.getTime());

 I cannot see that log and also there is no ajax call taking place.
 there is no javascript error found in the firebug.

 what I can see that it is not getting inside the function for
 periodical executer...

 not sure why but, this is working properly in windows with the same
 version of firefox...

 On Jul 21, 2:57 pm, Alex McAuley webmas...@thecarmarketplace.com
 wrote:
  LOL @ western democracies !

  Wish my scripts could do that
  ;)

  Alex Mcauley
  Developer
  The Vacancy Market LTDhttp://www.thevacancymarket.com

  - Original Message -
  From: T.J. Crowder t...@crowdersoftware.com
  To: Prototype  script.aculo.us
  prototype-scriptaculous@googlegroups.com
  Sent: Tuesday, July 21, 2009 10:51 AM
  Subject: [Proto-Scripty] Re: Ajax call is not working in MAC(Firefox)

  Hi,

  Not working in what way? Does it...

  ...do nothing?
  ...raise an error?
  ...stop all scripts on the page?
  ...turn the entire page mauve?
  ...depress the economies of the western democracies?

  You get the idea, there are dozens of things not working could
  mean. ;-)
  --
  T.J. Crowder
  tj / crowder software / com
  Independent Software Engineer, consulting services available

  On Jul 21, 8:13 am, Atanu Dey mratanu...@gmail.com wrote:
   I have a script which executes periodically after each 10 seconds. You
   can see that there is an ajax call which actually updates database for
   me and return 1 or 0 depending of the script execution.

   The problem is, it is working cool in windows platform with firefox
   3.0.11. But not working with the same version of firefox in MAC OS.

   The Script:

   new PeriodicalExecuter(function(){
   var date = new Date();
   //console.log('setOnlineStatus.php?sid='+date.getTime());
   new Ajax.Request('setOnlineStatus.php?sid='+date.getTime(),
   {method:'get', onComplete:function(transport){
   if(!parseInt(transport.responseText))
   window.location=../index.php;
   }});
   },10);

   Can anybody has any idea about this? Thanks in advance for your help.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---