R
Richard Trahan
Consider this code fragment:
print $q->header(-type => 'application/x-javascript');
print <<'EOF'
some_valid_js_1
some_valid_js_2
EOF
where $q is a CGI object. The above works ok.
Now change it to this:
print $q->header(-type => 'application/x-javascript');
print <<'EOF'
some_valid_js_1
EOF
print <<'EOF'
some_valid_js_2
EOF
In this case, neither line of js code gets to the destination page.
This behavior is the same for NN 7.1 and IE 6.0.
What am I doing wrong here?
print $q->header(-type => 'application/x-javascript');
print <<'EOF'
some_valid_js_1
some_valid_js_2
EOF
where $q is a CGI object. The above works ok.
Now change it to this:
print $q->header(-type => 'application/x-javascript');
print <<'EOF'
some_valid_js_1
EOF
print <<'EOF'
some_valid_js_2
EOF
In this case, neither line of js code gets to the destination page.
This behavior is the same for NN 7.1 and IE 6.0.
What am I doing wrong here?