Hi Justin,
thank you very much -- I have discovered the warning about ports @
http://www.prototypejs.org/learn/introduction-to-ajax an hour or so
ago :) I guess it should be repeated at documentation chapters for
relevant functions (Request, Update, PeriodicalUpdater) as well...
Actually I now battle another problem. When I have something this:
new Ajax.PeriodicalUpdater('chat', 'http://localhost:4567/listen',
{ asynchronous:true,
frequency: 1,
method: 'get',
insertion: Insertion.Top }
);
and the server responses with simple:
<p>Message</p>,
it is repeated four times... When I don't specify insertion param,
then it overwrites the content (which is correct), but this preferred
method for *updating* the contents does not work for me... Maybe I am
again overseeing something basic... Thanks for any help or kick
again...
Cheers,
Karel
On Jan 22, 4:53 pm, "Justin Perkins" <[EMAIL PROTECTED]> wrote:
> On Jan 22, 2008 4:22 AM, Karel Minarik <[EMAIL PROTECTED]> wrote:
>
> > I am playing with PeriodicalUpdater an it seems, that it doesn't like
> > port specified in URL.
>
> With Ajax requests, you do not specify a port or a hostname.
> Everything is relative to the URL in the address bar. This is
> explicitly disallowed as part of the Ajax "standard".
>
> -justin
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---