Kevin,
My CGI.pm is 3.29, which is the latest and CGI::Pretty is included in it, right? That's what I got from cpan site:
http://search.cpan.org/~lds/CGI.pm-3.29/CGI/Pretty.pm
In addition, I just noticed that in order to make my page works with IE7, the doctype has to be:
<!DOCTYPE html...
I have a web page created by CGI::Pretty that only works with IE6, but not with IE7, nor with Firefox. I asked for help at HTML/CSS forum (for details, please refer to here). And I was told that the doctype of my web page is WRONG.
Here is the DOCTYPE:
<?xml version="1.0"...
Thank you, Vragabond.
After I added a title tag, my code past the validation.
With regarding to the doctype, as I said before, it was rendered by CGI::Pretty.pm. I have no control on it. And more importantly, the html page created by CGI::Pretty works <b>FINE</b> with IE, but not working with...
Thank you, traingamer, for your help.
I tried again and fixed a few problems. The following is my updated dhtml code:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html...
Thank you, vacunita, for your inputs.
I did not realize how important the doctype is so I removed it before I posted my codes here. The html page is actually created by perl CGI::Pretty.pm. The relevant perl code is like this:
use CGI::Pretty qw( :html3 );
my $q = new CGI::Pretty;
my $html =...
Hi, Experts,
I am new to css/dhml. I wrote a piece of css/dhml code which works ok with IE (not perfectly, though), but not work at all with firefox.
Here is my css file – mystyle.css:
.outterRow {
background: #996600;
text-align: center;
width: 96%;
margin: 0 auto; /* to center it...
Experts,
I am new to dhtml/css. I have a page which contains a table somewhat like this:
<table border='1' width='90%'>
<tr> <th rowspan=2 colspan=2>Item Name</th><th colspan=5>Check all that apply</th></tr>
<tr>
<td width='10%' align='center'>Box 1</td>
<td width='10%' align='center'>Box...
Experts,
I am rather new to javascript. I want to create an html page which can add rows dynamically based on a user input. I wrote a piece of code below. But I don't know how to correctly implement 'addRows()' to do the job.
Thanks for your help.
<html><head><title>Dynamica Form</title>...
I know what's the problem now.
my $ck = new CGI::Cookie(-name=>$cookieName,-value=>'');
print $q->header(-cookie=>$ck);
The above code still sets a cookie, but with a NULL value. Therefore, I can not use
if(defined($cookies{$cookieName}))
alone to test if a cookie exists. I should...
Thank you, Kevin.
I have modified my code and now it can find the cookie but still can not delete the cookie. Would you or someone else please tell me what I did wrong?
# The following code gets a user input and sets a cookie accordingly.
use strict;
use CGI::Pretty qw( :html3 );
use...
A follow up question.
After the cookie is set by the code above, why can not I see the cookie in the cookie file on my computer. I am using a linux machine and I noticed there is a file called cookies.txt in ~/.mozilla/firefox/.../. I can not see anything changed in cookies.txt before/after...
I wrote a small perl cgi code to test set/read/delete cookie as follows.
use strict;
use CGI::Pretty qw( :html3 );
use CGI::Cookie;
local $| = 1;
my $cookieName = 'ckname';
my $userInput = 'input';
my $q = new CGI::Pretty;
if($q->param('ok') == 1) {
my $val = $q->param($userInput);
my...
Kevin, I must have missed something. I modified test2.pm (test1.pl is identical to your code):
use strict;
require Exporter;
our(@ISA, @EXPORT, @EXPORT_OK, $str);
@ISA = qw(Exporter);
@EXPORT = ();
@EXPORT_OK = qw(getStr);
$str = "Can you see this?";
sub getStr {
return $str;
}
1;
And I...
Thank you, Kevin.
If I understood you right, are you trying to tell me no other way to reach test2::$str w/o calling test2::getStr?
Another question, what is the benefit to use @EXPORT_OK?
Thanks again.
At first, please take a look at the following codes:
File 'test1.pl':
#! /usr/bin/perl
use strict;
use test2;
my $thisStr = &getStr;
print "\$thisStr = $thisStr\n";
print "##$test2::str##\n";
File 'test2.pm':
use strict;
use vars qw(@ISA);
use vars qw(@EXPORT);
require Exporter;
@ISA =...
I did. Many many times.
After so many discussions, now I tend to think this is a CGI::Ajax's bug. Is this a reasonable conclusion? Kevin?
Actually, I wrote an email to the author two days ago. But I have not heard anything from him, yet.
Thank you all very much for your inputs.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.