ok, brand new to this... i downloaded the file, but can''t figure out how to display the result.. and also, would this refresh that data every five seconds? thanks for any help you can give me.. <html> <head> <title></title> <SCRIPT LANGUAGE="JavaScript" SRC="prototype.js"> new Ajax.PeriodicalUpdater(''whoNum'', ''who.php3? display_user_number=true'', { method: ''get'', frequency: 5 }); </SCRIPT> </head> <body onload=get_who_num();> <div id="whoNum">Loading Who''s Online....</div> </body> </html> --~--~---------~--~----~------------~-------~--~----~ 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, i pasted the code with the conload call to aq function that doesnt exist.... new code is... <html> <head> <title></title> <SCRIPT LANGUAGE="JavaScript" SRC="prototype.js"> new Ajax.PeriodicalUpdater(''whoNum'', ''who.php3? display_user_number=true'', { method: ''get'', frequency: 5 }); </SCRIPT> </head> <body> <div id="whoNum">Loading Who''s Online....</div> </body> </html> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hey there, First off, you''re not supposed to use both the src= attribute and inline contents in a <script> block... http://www.w3.org/TR/html4/interact/scripts.html#h-18.2.1 Does your inline code even get run? The spec says it should be ignored since there is an src= attribute. You should use two <script> elements: the first one with src= to load Prototype, the second one with your inline script (actually, it would be best to put your script in an external file too, for unobstrusive JS reasons, but that''s not a tech requirement). Second, the proper way to pass get arguments for your A.R is to use the "parameters" option (although A.R is smart enough to detect existing parameters in your URL argument). ''HTH -- Christophe Porteneuve aka TDD tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
ok, i added the inline script tag, and this is the error the debbugger gave me... Ajax is not defined [Break on this error] new Ajax.PeriodicalUpdater(''whoNum'', ''gwho.php? display_user_number=true'', { me... any ideas on whats wrong? --~--~---------~--~----~------------~-------~--~----~ 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 got it working, thanks for your help... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---