Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
hi, there is a problem with the html document head part printed out with $query->start_html(); i start a script in a javascript opened window ->
window.open('form.cgi','Registration','width=300,height=450,scrollbars +=yes');
The head that is print out is this->
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US"><head><title>F +UTURA IMMOBILIEN Expose Download</title> <link rel="stylesheet" type="text/css" href="../assets/globalstyle.css +" /> <script type="text/javascript" language="JavaScript"> <!-- Hide script //<![CDATA[ function check_contactForm(contactForm){ HERE IS THE JAVASCRIPT PART } //]]> End script hiding --> </script> </head><body bgcolor="white" leftmargin="10" topmargin="10" onload="se +lf.focus()" marginwidth="10" marginheight="10">
and this is the print $query->start_html =>
print $query->start_html(-title=>'FUTURA IMMOBILIEN Expose Download', -style=>{'src'=>'../assets/globalstyle.cs +s'}, -script=>$jscript, -BGCOLOR=>'white', -topmargin=>'10', -leftmargin=>'10', -marginheight=>'10', -marginwidth=>'10', -onLoad=>'self.focus()');
now the problem: the form that is printed in the body, is longer than the window, but in ie5 the window shows no scrollbars, in nn6 and nn4.7 there are scrollbars...?! if i print out the head in old fashioned style with a print for each row of text , ie5 shows the scrollbars... is it possible that ie5 doesnīt like this part
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
any clue what to do, i just donīt want to use old fashioned style, it is much longer...

In reply to browser specific problem with CGI $query-start_html by pitbull3000

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 examining the Monastery: (6)
As of 2024-04-18 09:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found