Re: [cgiirc-general] Opening Notification Windows
Brought to you by:
dgl
|
From: David L. <dg...@dg...> - 2003-10-13 12:27:39
|
Michael Bond wrote:
> Okay ... I decided against .53pre1, and went with the stable .52.
>
> I added the following to makeline() in
> /interfaces/interfaces-make/main.pm:
>
> $html .= "<script>window.open('/onjoin.html', '\Window1',
> 'resizable,height=130,width=130')</script>" if $info->{type} eq 'join\';
>
>
> This adds the java to the output stream (If i replace all that mess with
> <b><i>foobar</b></i> it prints foobar bold and in italics when someone
> joins the channel... so, its popping out in html fine (when its supposed
> to). It just doesn't seem to be honoring the <script> tags.
>
> Thoughts?
Quote:
--
> even if you did somehow
> manage to get <script> into the output stream it would not work how you
> expect (it would do whatever the script line does every time a new
> line is added (I think)).
--
I'm not sure exactly what you have done, but you need to remember that the
output stream runs inside a hidden iframe, if you add script tags into this
they will be running inside the context of that frame.
I haven't got time to test what works at the moment, but the way I would
do it is add a function into fwindowlist that runs the window.open command
and then call that function from the interface (you call _func_out iirc).
You should be able to call window.open from the stream but I remember problems
with that in the past (I can't remember why though)..
|