Re: [cgiirc-general] Opening Notification Windows
Brought to you by:
dgl
|
From: Michael B. <mb...@th...> - 2003-10-10 00:21:53
|
is there a way to have the formats in /cgiirc/formats (default, gothic,
etc ...) print straight HTML?
I tried adding a {open_window} tot he join line and creating a
"open_window =3D <script>foo()</script>" but it only printed it to the
screen. it did not get sent as html.
On Wed, 2003-10-08 at 12:56, Michael Bond wrote:
> last question for a while, promise ;-)
>=20
> In the previous version of CGI:IRC that I was using the formats file had
> a hash for different events (in this case Join). I modified it to look
> like this:
>=20
> 'join' =3D> sub {
> my($remotenick,$remotehost,$channels,$channel) =3D @_;
> prefixecho('enter');
> print "<script>WindowOpen1()</script>\r\n";
> html(ccode(10)."$remotenick has joined $channel");
> },
>=20
> the javascript function "WindowOpen1() was below in the header that was
> printed from the same file.=20
>=20
> Basically, all this did was create a popup window when someone entered
> the chat room. Unfortunately, not all the computers using the service
> will have sound cards so I need a visual queue for people that will not
> be wathcing the cgi:irc window.
>=20
> The new format files look nothing like this ... so I am wondering where
> I can stick these so that we have the same basic affect.
>=20
> Thanks.
|