Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: sunw
  • Order by date
  1. sunw

    How to fix doctype rendered by CGI::Pretty.pm

    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...
  2. sunw

    How to fix doctype rendered by CGI::Pretty.pm

    BTW, I also tried to use CGI.pm, which renders the same doctype.
  3. sunw

    How to fix doctype rendered by CGI::Pretty.pm

    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"...
  4. sunw

    Help need in tuning my style sheet.

    You are right, Vragabond. My code only works with IE6, not IE7!! I am going to ask for help at perl forum. Thanks.
  5. sunw

    Help need in tuning my style sheet.

    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...
  6. sunw

    Help need in tuning my style sheet.

    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...
  7. sunw

    Help need in tuning my style sheet.

    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 =...
  8. sunw

    Help need in tuning my style sheet.

    I can not believe that I made so many typos above. I am sorry about that. The help I want the most is to make it work with Firefox. Thanks.
  9. sunw

    Help need in tuning my style sheet.

    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...
  10. sunw

    How to convert conventional html tables into divs

    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...
  11. sunw

    How to create table rows dynamically in JS

    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>...
  12. sunw

    Trouble in set/read/delete cookies using CGI.pm

    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...
  13. sunw

    Trouble in set/read/delete cookies using CGI.pm

    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...
  14. sunw

    Trouble in set/read/delete cookies using CGI.pm

    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...
  15. sunw

    Trouble in set/read/delete cookies using CGI.pm

    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...
  16. sunw

    Ways to reach private variables in another module?

    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...
  17. sunw

    Ways to reach private variables in another module?

    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.
  18. sunw

    Ways to reach private variables in another module?

    Sorry, I had a typo. Wrong: @EXPORT = qw( test ); Should be: @EXPORT = qw( getStr );
  19. sunw

    Ways to reach private variables in another module?

    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 =...
  20. sunw

    Please help in debugging this CGI::Ajax code

    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.

Part and Inventory Search

Back
Top