Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
#!perl -Tw $|=1; use strict; use LWP::Simple; use CGI(); use CGI::Carp qw(fatalsToBrowser); my $q = new CGI; my $cgi = $q->url; my $pm = 'http://www.perlmonks.org'; my $op = $q->param('op') || 'frameset'; my %v; ($v{frameset},$v{talk_button}) = split "\n\n", join '', <DATA>; my $source = $v{$op}; if ($op eq 'chat' ) { my $btag = qq[ <body text =" #007F00" bgcolor =" #000000" link =" #00C600" vlink =" #00A000" > ]; $source = &get("$pm/index.pl?displaytype=raw&node=showchatmessages +") || ''; $source =~ s/target="_new"/target="pm_page_view"/; $source =~ s~\s*</head>~<base href="$pm">\n</head>\n$btag~; } $source =~ s/\$pm/$pm/g; $source =~ s/\$cgi/$cgi/g; print $q->header(), $source; __DATA__ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"> <html> <head> <title>Zedulator</title> <base href="$pm"> </head> <frameset rows="50%,50%"> <frame name="pm_page_view" src="/index.pl?node=Newest%20Nodes"> <frameset cols="80%,20%"> <frameset rows="0,28,*" border="0"> <frame name="hiddenFrame" src="" /> <frame src="$cgi?op=talk_button" marginwidth="2" marginheight="2" scrolling="no"/> <frame src="$cgi?op=chat" /> </frameset> <frameset rows="60,*"> <frame src="/index.pl?displaytype=raw&type=superdoc&node=private +messages" /> <frame src="/index.pl?displaytype=raw&node=showotherusers" + /> </frameset> </frameset> <noframes> <p>No Frames? <a href="/index.pl?displaytype=raw&node=showchatm +essages"> Chat Here</a></p> </noframes> </frameset> </html> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"> <head> <base href="$pm"> <base target="hiddenFrame"> <script language="javascript"> function do_submit(){ document.f1.submit(); document.f1.message.value=''; } </script> </head> <body bgcolor="black"> <form id="f1" name="f1" method="post" action="/index.pl" enctype="appl +ication/x-www-form-urlencoded"> <input type="hidden" name="displaytype" value="raw"><input type="hidde +n" name="node_id" value="3193"><input type="hidden" name="op" value=" +message"> <input type="text" name="message" size=40 maxlength=240 onMouseDown=" +javascript:document.f1.message.value=''" /> <input type="button" valu +e="talk" onClick="do_submit()"></form>

In reply to Zedulator - an integrated chat/page-view for Perlmonks by jZed

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2024-04-23 19:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found