Wrox Programmer Forums
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 8th, 2006, 10:59 PM
Registered User
 
Join Date: Apr 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to arunmohanmp
Default Favico Prob

Hi,

I got favico.ico in my website's root directory. http://nss.nitc.ac.in/favico.ico But in Firefox 1.0.5 when i use multiple tabs it is not shown on the tab's title even though it is shown in the address bar. Can anyone gimme a solution?



Thanks and Regards,
Arun Mohan M P
 
Old April 9th, 2006, 12:34 AM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

I'm sure most browsers automatically look for the shortcut icon in the root directory, but to gaurantee it will show up add the following between the <head> and </head> tags.

<link rel='shortcut icon' href='/favicon.ico' type='image/x-icon' />

HTH!

Regards,
Rich

--
Author,
Beginning CSS: Cascading Style Sheets For Web Design
CSS Instant Results

http://www.catb.org/~esr/faqs/smart-questions.html
 
Old April 9th, 2006, 12:42 AM
Registered User
 
Join Date: Apr 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to arunmohanmp
Default

Another Problem
---------------

Hi All,

I got a cgi script http://nss.nitc.ac.in/cgi-bin/counter.cgi
When i run this link directly it works. But if i try in one of my html pages (http://nss.nitc.ac.in/html/title.html) it is not showing anything. How can i show the counter in the webpage?

The CGI code am using is

#!/usr/bin/perl
#
# txcounter cgi
# © 2000 Jackie Hamilton - http://www.cgi101.com/
#
# this cgi increments a counter in a file, then prints out a line like
# "You are visitor number XXX."
# HTML code to call this:
#
#
#
# this requires server-side includes. You may need to rename your HTML
# file to a .shtml extension to make it work.
#
# note: be sure that the counter file is set WRITABLE by the httpd
# daemon owner or group. in Unix you'll need to 'chmod 775 countfile'
# or possibly 'chmod 777 countfile'.

$countfile = "/home/nss/web/html/counter";

$count = `cat $countfile`;
chop($count);
$count = $count + 1;
open(INF,">$countfile");
print INF "$count\n";
close(INF);

print "Content-type:text/html\n\n";
print "Visitor: $count.<p>\n";

# the end.

Please suggest a solution...


Thanks and Regards,
Arun Mohan M P
 
Old April 9th, 2006, 12:46 AM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

I'm sorry but that's not on topic for the HTML forum, and you're unlikely to get a response to a Perl question here. Please submit your question to the Perl language forum located here: http://p2p.wrox.com/forum.asp?FORUM_ID=193

Regards,
Rich

--
Author,
Beginning CSS: Cascading Style Sheets For Web Design
CSS Instant Results

http://www.catb.org/~esr/faqs/smart-questions.html
 
Old April 9th, 2006, 12:47 AM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Actually nevermind, I moved your question to that forum. ;)

Regards,
Rich

--
Author,
Beginning CSS: Cascading Style Sheets For Web Design
CSS Instant Results

http://www.catb.org/~esr/faqs/smart-questions.html





Similar Threads
Thread Thread Starter Forum Replies Last Post
validationsummary prob leo_vinay ASP.NET 1.0 and 1.1 Basics 1 October 7th, 2005 12:39 PM
prob in retrieving abhit_kumar MySQL 1 December 24th, 2004 09:03 AM
updation prob.......... abhit_kumar JSP Basics 0 December 14th, 2004 08:07 AM
updation prob.......... abhit_kumar MySQL 0 December 14th, 2004 08:06 AM
prob........ abhit_kumar Java Databases 3 December 4th, 2004 03:21 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.